Skip to content

Commit 5534835

Browse files
committed
Merge tag 'javaparser-parent-3.27.1'
# By renovate[bot] (40) and others # Via GitHub (22) and jlerbsc (1) * tag 'javaparser-parent-3.27.1': (76 commits) Migration to Central Publisher Portal 3 - Adding required properties Migration to Central Publisher Portal 3 - Plugin declaration issue Migration to Central Publisher Portal 3 - Artifact exclusion issues (try another configuration) Migration to Central Publisher Portal 3 - Artifact exclusion issues Migration to Central Publisher Portal 3 - Configuration issues Migration to Central Publisher Portal 3 - excludes artifacts and resolves maven-deploy-plugin configuration issues Migration to Central Publisher Portal 2 Migration to Central Publisher Portal [maven-release-plugin] prepare release javaparser-parent-3.27.1 update readme Update changelog chore(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.9.0 (javaparser#4863) fix(deps): update dependency org.checkerframework:checker-qual to v3.51.1 (javaparser#4862) Fix: Adjusts the range limits of lambda expression parameters to ignore brackets. fix(deps): update dependency org.junit:junit-bom to v5.14.0 (javaparser#4858) chore(deps): update dependency org.codehaus.mojo:exec-maven-plugin to v3.6.0 (javaparser#4857) Spotless Fix test Fix 4846 chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v2.2.1 (javaparser#4854) ... # Conflicts: # .github/workflows/maven_tests.yml # javaparser-core-generators/pom.xml # javaparser-core-metamodel-generator/pom.xml # javaparser-core-serialization/pom.xml # javaparser-core-testing-bdd/pom.xml # javaparser-core-testing/pom.xml # javaparser-core/pom.xml # javaparser-core/src/main/java/com/github/javaparser/ast/expr/NormalAnnotationExpr.java # javaparser-core/src/main/java/com/github/javaparser/ast/type/PrimitiveType.java # javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElementCalculator.java # javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalDifferenceCalculator.java # javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinter.java # javaparser-core/src/main/java/com/github/javaparser/resolution/logic/MethodResolutionLogic.java # javaparser-symbol-solver-core/pom.xml # javaparser-symbol-solver-testing/pom.xml # pom.xml # readme.md
2 parents 6c50232 + b87bb5d commit 5534835

File tree

50 files changed

+1534
-357
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1534
-357
lines changed

.github/workflows/create_github_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v4.2.2
18+
uses: actions/checkout@v5.0.0
1919

2020
- name: Create Release
2121
id: create_release

.github/workflows/formatting_check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Checkout latest code
34-
uses: actions/checkout@v4.2.2
34+
uses: actions/checkout@v5.0.0
3535
with:
3636
fetch-depth: "0"
3737
- name: Set up JDK 11
38-
uses: actions/setup-java@v4
38+
uses: actions/setup-java@v5
3939
with:
4040
java-version: '11'
4141
distribution: 'zulu'
@@ -47,11 +47,11 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Checkout latest code
50-
uses: actions/checkout@v4.2.2
50+
uses: actions/checkout@v5.0.0
5151
with:
5252
fetch-depth: "0"
5353
- name: Set up JDK 11
54-
uses: actions/setup-java@v4
54+
uses: actions/setup-java@v5
5555
with:
5656
java-version: '11'
5757
distribution: 'zulu'

.github/workflows/prepare_release_changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717

1818
# Check out current repository
1919
- name: Fetch Sources
20-
uses: actions/checkout@v4.2.2
20+
uses: actions/checkout@v5.0.0
2121

2222
# Setup Java 11 environment for the next steps
2323
- name: Setup Java
24-
uses: actions/setup-java@v4
24+
uses: actions/setup-java@v5
2525
with:
2626
distribution: zulu
2727
java-version: 11
Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,2 @@
1-
# Licensed to the Apache Software Foundation (ASF) under one
2-
# or more contributor license agreements. See the NOTICE file
3-
# distributed with this work for additional information
4-
# regarding copyright ownership. The ASF licenses this file
5-
# to you under the Apache License, Version 2.0 (the
6-
# "License"); you may not use this file except in compliance
7-
# with the License. You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing,
12-
# software distributed under the License is distributed on an
13-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
# KIND, either express or implied. See the License for the
15-
# specific language governing permissions and limitations
16-
# under the License.
17-
wrapperVersion=3.3.2
181
distributionType=only-script
19-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.10/apache-maven-3.9.10-bin.zip
2+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip

changelog.md

Lines changed: 74 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
2-
Next Release (Version 3.27.1-snapshot)
1+
Next Release (Version 3.27.2-snapshot)
32
--------------------------------------
4-
[issues resolved](https://github.com/javaparser/javaparser/milestone/213?closed=1)
3+
[issues resolved](https://github.com/javaparser/javaparser/milestone/214?closed=1)
54

65
### Added
76
### Changed
@@ -10,6 +9,78 @@ Next Release (Version 3.27.1-snapshot)
109
### Fixed
1110
### Security
1211

12+
Version 3.27.1
13+
--------------
14+
[issues resolved](https://github.com/javaparser/javaparser/milestone/213?closed=1)
15+
16+
### Changed
17+
18+
* fix: switch expression improvement (PR [#4823](https://github.com/javaparser/javaparser/pull/4823)
19+
by [@seokjun7410](https://github.com/seokjun7410))
20+
21+
### Fixed
22+
23+
* Fix: Adjusts the range limits of lambda expression parameters to ignore brackets. (
24+
PR [#4860](https://github.com/javaparser/javaparser/pull/4860) by [@jlerbsc](https://github.com/jlerbsc))
25+
* Fix issue 4846 (PR [#4855](https://github.com/javaparser/javaparser/pull/4855)
26+
by [@PiTheGuy](https://github.com/PiTheGuy))
27+
* Revert checkstyle plugin upgrade (PR [#4836](https://github.com/javaparser/javaparser/pull/4836)
28+
by [@jlerbsc](https://github.com/jlerbsc))
29+
* Fix: issue 4832 Resolving type of fully qualified varargs invocation throws IndexOutOfBoundsException (
30+
PR [#4835](https://github.com/javaparser/javaparser/pull/4835) by [@jlerbsc](https://github.com/jlerbsc))
31+
* Fix: Issue 4829 Infinite loop in DifferenceElementCalculator when calling setPermittedTypes (
32+
PR [#4834](https://github.com/javaparser/javaparser/pull/4834) by [@jlerbsc](https://github.com/jlerbsc))
33+
* XmlPrinter: fix duplicate attribute name in generated xml (
34+
PR [#4806](https://github.com/javaparser/javaparser/pull/4806) by [@sgqy](https://github.com/sgqy))
35+
* Use lambda parameter counts and block bodies for improved resolution (
36+
PR [#4796](https://github.com/javaparser/javaparser/pull/4796)
37+
by [@johannescoetzee](https://github.com/johannescoetzee))
38+
* Fix issue #4791 (PR [#4792](https://github.com/javaparser/javaparser/pull/4792)
39+
by [@bannmann](https://github.com/bannmann))
40+
41+
### Developer Changes
42+
43+
* fix(deps): update dependency org.checkerframework:checker-qual to v3.51.1 (
44+
PR [#4862](https://github.com/javaparser/javaparser/pull/4862) by [@renovate[bot]](https://github.com/apps/renovate))
45+
* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.12.0 (
46+
PR [#4843](https://github.com/javaparser/javaparser/pull/4843) by [@renovate[bot]](https://github.com/apps/renovate))
47+
* fix(deps): update dependency com.google.guava:guava to v33.5.0-jre (
48+
PR [#4839](https://github.com/javaparser/javaparser/pull/4839) by [@renovate[bot]](https://github.com/apps/renovate))
49+
* chore(deps): update codecov/codecov-action action to v5.5.1 (
50+
PR [#4827](https://github.com/javaparser/javaparser/pull/4827) by [@renovate[bot]](https://github.com/apps/renovate))
51+
* fix(deps): update dependency org.checkerframework:checker-qual to v3.50.0 (
52+
PR [#4825](https://github.com/javaparser/javaparser/pull/4825) by [@renovate[bot]](https://github.com/apps/renovate))
53+
* chore(deps): update actions/setup-java action to v5 (PR [#4822](https://github.com/javaparser/javaparser/pull/4822)
54+
by [@renovate[bot]](https://github.com/apps/renovate))
55+
* chore(deps): update actions/checkout action to v5 (PR [#4811](https://github.com/javaparser/javaparser/pull/4811)
56+
by [@renovate[bot]](https://github.com/apps/renovate))
57+
* chore(deps): update dependency com.puppycrawl.tools:checkstyle to v11 (
58+
PR [#4808](https://github.com/javaparser/javaparser/pull/4808) by [@renovate[bot]](https://github.com/apps/renovate))
59+
* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.4 (
60+
PR [#4701](https://github.com/javaparser/javaparser/pull/4701) by [@renovate[bot]](https://github.com/apps/renovate))
61+
62+
### Uncategorised
63+
64+
* Improves documentation on LexicalPreservingPrinter (PR [#4820](https://github.com/javaparser/javaparser/pull/4820)
65+
by [@jlerbsc](https://github.com/jlerbsc))
66+
* Improves documentation on the raw langage level (PR [#4819](https://github.com/javaparser/javaparser/pull/4819)
67+
by [@jlerbsc](https://github.com/jlerbsc))
68+
* Fix javadoc of Name class (PR [#4789](https://github.com/javaparser/javaparser/pull/4789)
69+
by [@bannmann](https://github.com/bannmann))
70+
* Fix NormalAnnotationExpr Javadoc (PR [#4784](https://github.com/javaparser/javaparser/pull/4784)
71+
by [@bannmann](https://github.com/bannmann))
72+
73+
### :heart: Contributors
74+
75+
Thank You to all contributors who worked on this release!
76+
77+
* [@seokjun7410](https://github.com/seokjun7410)
78+
* [@bannmann](https://github.com/bannmann)
79+
* [@sgqy](https://github.com/sgqy)
80+
* [@johannescoetzee](https://github.com/johannescoetzee)
81+
* [@PiTheGuy](https://github.com/PiTheGuy)
82+
* [@jlerbsc](https://github.com/jlerbsc)
83+
1384
Version 3.27.0
1485
--------------
1586
[issues resolved](https://github.com/javaparser/javaparser/milestone/212?closed=1)

javaparser-core-generators/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<parent>
44
<artifactId>jmlparser-parent</artifactId>
55
<groupId>io.github.jmltoolkit</groupId>
6-
<version>3.27.0-b7-SNAPSHOT</version>
6+
<version>3.27.1-b7-SNAPSHOT</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99

1010
<artifactId>jmlparser-core-generators</artifactId>
11+
<name>${project.groupId}:${project.artifactId}</name>
12+
<url>https://github.com/jmltoolkit</url>
1113
<description>A code generator framework, and the generators for javaparser-core</description>
1214

1315
<dependencies>

javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/PropertyGenerator.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2007-2010 Júlio Vilmar Gesser.
3-
* Copyright (C) 2011, 2013-2024 The JavaParser Team.
3+
* Copyright (C) 2011, 2013-2025 The JavaParser Team.
44
*
55
* This file is part of JavaParser.
66
*
@@ -114,7 +114,11 @@ private void generateSetter(
114114

115115
// Check if the new value is the same as the old value
116116
String returnValue = CodeUtils.castValue("this", setter.getType(), nodeMetaModel.getTypeName());
117-
body.addStatement(f("if (%s == this.%s) { return %s; }", name, name, returnValue));
117+
if (property.getType().equals(String.class)) {
118+
body.addStatement(f("if (%s.equals(this.%s)) { return %s; }", name, name, returnValue));
119+
} else {
120+
body.addStatement(f("if (%s == this.%s) { return %s; }", name, name, returnValue));
121+
}
118122

119123
body.addStatement(f("notifyPropertyChange(ObservableProperty.%s, this.%s, %s);", observableName, name, name));
120124
if (property.isNode()) {

javaparser-core-metamodel-generator/pom.xml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<parent>
44
<artifactId>jmlparser-parent</artifactId>
55
<groupId>io.github.jmltoolkit</groupId>
6-
<version>3.27.0-b7-SNAPSHOT</version>
6+
<version>3.27.1-b7-SNAPSHOT</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99

1010
<artifactId>jmlparser-core-metamodel-generator</artifactId>
11+
<name>${project.groupId}:${project.artifactId}</name>
12+
<url>https://github.com/jmltoolkit</url>
1113
<description>The tool that generates the code in the javaparser-metamodel module</description>
1214

1315
<dependencies>
@@ -18,19 +20,6 @@
1820
</dependency>
1921
</dependencies>
2022

21-
<build>
22-
<plugins>
23-
<plugin>
24-
<groupId>org.apache.maven.plugins</groupId>
25-
<artifactId>maven-deploy-plugin</artifactId>
26-
<configuration>
27-
<!-- no need to release this module -->
28-
<skip>true</skip>
29-
</configuration>
30-
</plugin>
31-
</plugins>
32-
</build>
33-
3423
<profiles>
3524
<profile>
3625
<id>run-generators</id>

javaparser-core-serialization/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
<parent>
33
<artifactId>jmlparser-parent</artifactId>
44
<groupId>io.github.jmltoolkit</groupId>
5-
<version>3.27.0-b7-SNAPSHOT</version>
5+
<version>3.27.1-b7-SNAPSHOT</version>
66
</parent>
77
<modelVersion>4.0.0</modelVersion>
88

99
<artifactId>jmlparser-core-serialization</artifactId>
10+
<name>${project.groupId}:${project.artifactId}</name>
11+
<url>https://github.com/jmltoolkit</url>
1012
<description>Serializers for the JavaParser AST.</description>
1113

1214
<licenses>

javaparser-core-testing-bdd/pom.xml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
<parent>
44
<artifactId>jmlparser-parent</artifactId>
55
<groupId>io.github.jmltoolkit</groupId>
6-
<version>3.27.0-b7-SNAPSHOT</version>
6+
<version>3.27.1-b7-SNAPSHOT</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99

1010
<artifactId>jmlparser-core-testing-bdd</artifactId>
11-
<description>The BDD test suite for javaparser-core</description>
11+
<name>${project.groupId}:${project.artifactId}</name>
12+
<url>https://github.com/jmltoolkit</url>
13+
<description>The BDD test suite for jmlparser-core</description>
1214

1315
<licenses>
1416
<license>
@@ -30,14 +32,6 @@
3032
<groupId>org.jacoco</groupId>
3133
<artifactId>jacoco-maven-plugin</artifactId>
3234
</plugin>
33-
<plugin>
34-
<groupId>org.apache.maven.plugins</groupId>
35-
<artifactId>maven-deploy-plugin</artifactId>
36-
<configuration>
37-
<!-- no need to release this module -->
38-
<skip>true</skip>
39-
</configuration>
40-
</plugin>
4135
<plugin>
4236
<groupId>org.apache.maven.plugins</groupId>
4337
<artifactId>maven-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)