Skip to content

Commit d37cc0e

Browse files
authored
Updating javaparser parent 3.28.0
2 parents cf4b81b + f6a9efe commit d37cc0e

193 files changed

Lines changed: 8284 additions & 770 deletions

File tree

Some content is hidden

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

.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: javaparser
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/create_github_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v5.0.0
16+
uses: actions/checkout@v6.0.1
1717

1818
- name: Create Release
1919
id: create_release

.github/workflows/formatting_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Checkout latest code
34-
uses: actions/checkout@v5.0.0
34+
uses: actions/checkout@v6.0.1
3535
with:
3636
fetch-depth: "0"
3737
- name: Set up JDK 11
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Checkout latest code
50-
uses: actions/checkout@v5.0.0
50+
uses: actions/checkout@v6.0.1
5151
with:
5252
fetch-depth: "0"
5353
- name: Set up JDK 11

.github/workflows/maven_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
steps:
5959
## Checkout the current version of the code from the repo.
6060
- name: Checkout latest code
61-
uses: actions/checkout@v5.0.0
61+
uses: actions/checkout@v6.0.1
6262
with:
6363
fetch-depth: "0"
6464

@@ -77,7 +77,7 @@ jobs:
7777
## Use a cache to reduce the build/test times (avoids having to download dependencies on EVERY run).
7878
### https://help.github.com/en/actions/language-and-framework-guides/building-and-testing-java-with-maven#caching-dependencies
7979
- name: Cache Maven packages
80-
uses: actions/cache@v4
80+
uses: actions/cache@v5
8181
with:
8282
path: ~/.m2
8383
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
@@ -97,7 +97,7 @@ jobs:
9797

9898

9999
- name: CodeCov - JavaParser Core
100-
uses: codecov/codecov-action@v5.5.1
100+
uses: codecov/codecov-action@v5.5.2
101101
timeout-minutes: 10
102102
with:
103103
files: javaparser-core-testing/target/site/jacoco/jacoco.xml,javaparser-core-testing-bdd/target/site/jacoco/jacoco.xml
@@ -107,7 +107,7 @@ jobs:
107107
env_vars: OS,JDK
108108

109109
- name: CodeCov - JavaParser Symbol Solver
110-
uses: codecov/codecov-action@v5.5.1
110+
uses: codecov/codecov-action@v5.5.2
111111
timeout-minutes: 10
112112
with:
113113
file: javaparser-symbol-solver-testing/target/site/jacoco/jacoco.xml

.github/workflows/prepare_release_changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
# Check out current repository
1717
- name: Fetch Sources
18-
uses: actions/checkout@v5.0.0
18+
uses: actions/checkout@v6.0.1
1919

2020
# Setup Java 11 environment for the next steps
2121
- name: Setup Java
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
distributionType=only-script
2-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
2+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip

changelog.md

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
Next Release (Version 3.27.2-snapshot)
2+
Next Release (Version 3.28.1-snapshot)
33
--------------------------------------
4-
[issues resolved](https://github.com/javaparser/javaparser/milestone/214?closed=1)
4+
[issues resolved](https://github.com/javaparser/javaparser/milestone/215?closed=1)
55

66
### Added
77
### Changed
@@ -10,6 +10,64 @@ Next Release (Version 3.27.2-snapshot)
1010
### Fixed
1111
### Security
1212

13+
Version 3.28.0
14+
--------------
15+
[issues resolved](https://github.com/javaparser/javaparser/milestone/214?closed=1)
16+
17+
### Added
18+
19+
* [JEP 512] Add support for compact source files (PR [#4940](https://github.com/javaparser/javaparser/pull/4940) by [@johannescoetzee](https://github.com/johannescoetzee))
20+
* [JEP 513] Add support for flexible constructor bodies (PR [#4919](https://github.com/javaparser/javaparser/pull/4919) by [@johannescoetzee](https://github.com/johannescoetzee))
21+
* [JEP 511] Module Import Declarations (PR [#4910](https://github.com/javaparser/javaparser/pull/4910) by [@johannescoetzee](https://github.com/johannescoetzee))
22+
* [JEP 467] Add support for MarkdownComments (PR [#4899](https://github.com/javaparser/javaparser/pull/4899) by [@johannescoetzee](https://github.com/johannescoetzee))
23+
* Refactor comment hierarchy in preparation for MarkdownComments (PR [#4885](https://github.com/javaparser/javaparser/pull/4885) by [@johannescoetzee](https://github.com/johannescoetzee))
24+
* Add support for match-all patterns (PR [#4867](https://github.com/javaparser/javaparser/pull/4867) by [@johannescoetzee](https://github.com/johannescoetzee))
25+
26+
### Changed
27+
28+
* Improves issue 4188 resolution (PR [#4934](https://github.com/javaparser/javaparser/pull/4934) by [@jlerbsc](https://github.com/jlerbsc))
29+
* Add support for Java 23 and Java 24 (PR [#4901](https://github.com/javaparser/javaparser/pull/4901) by [@rpx99](https://github.com/rpx99))
30+
* Improved the code by removing code duplication from the method used to obtain methods declared in a class/interface/enumeration (PR [#4883](https://github.com/javaparser/javaparser/pull/4883) by [@jlerbsc](https://github.com/jlerbsc))
31+
32+
### Fixed
33+
34+
* Fix: issue 4890 Method call resolution fails for variadic reference-type parameters with primitive arguments (PR [#4943](https://github.com/javaparser/javaparser/pull/4943) by [@jlerbsc](https://github.com/jlerbsc))
35+
* Fix: issue 4941 Type variables are not correctly mapped when inheriting between generic interfaces (PR [#4942](https://github.com/javaparser/javaparser/pull/4942) by [@jlerbsc](https://github.com/jlerbsc))
36+
* Fix: issue 4188 UnsolvedSymbolException resolving MethocCallExpr using MethodReferenceExpr (PR [#4931](https://github.com/javaparser/javaparser/pull/4931) by [@jlerbsc](https://github.com/jlerbsc))
37+
* Fix grammar ambiguities causing crashes when using `assert` and `module` as names (PR [#4929](https://github.com/javaparser/javaparser/pull/4929) by [@johannescoetzee](https://github.com/johannescoetzee))
38+
* Fix: issue #3916 Method 'valueOf' cannot be resolved in context MyEnum.One.valueOf("") (PR [#4916](https://github.com/javaparser/javaparser/pull/4916) by [@jlerbsc](https://github.com/jlerbsc))
39+
* Adds the ability to use the word 'assert' prior to Java version 1.4 (PR [#4915](https://github.com/javaparser/javaparser/pull/4915) by [@jlerbsc](https://github.com/jlerbsc))
40+
* Fix: Simplify code and possibly improve the resolution of extended interfaces when using qualified names (PR [#4882](https://github.com/javaparser/javaparser/pull/4882) by [@jlerbsc](https://github.com/jlerbsc))
41+
* test: improve SourceRoot coverage and apply spotless formatting #4795 (PR [#4881](https://github.com/javaparser/javaparser/pull/4881) by [@Joyce-5](https://github.com/Joyce-5))
42+
* Fix #4864: Correct toString() output in ReflectionRecordDeclaration (PR [#4879](https://github.com/javaparser/javaparser/pull/4879) by [@ChenduanZhang](https://github.com/ChenduanZhang))
43+
* Include source file path in failed ParseResult when parsing via SourceRoot #4786 (PR [#4874](https://github.com/javaparser/javaparser/pull/4874) by [@JIN-RUI-LIU](https://github.com/JIN-RUI-LIU))
44+
* Fixes unchecked warnings when calling Mockito.mock(Class) (PR [#4413](https://github.com/javaparser/javaparser/pull/4413) by [@matthieu-vergne](https://github.com/matthieu-vergne))
45+
46+
### Developer Changes
47+
48+
* fix(deps): update byte-buddy.version to v1.18.2 (PR [#4906](https://github.com/javaparser/javaparser/pull/4906) by [@renovate[bot]](https://github.com/apps/renovate))
49+
* chore(deps): update actions/checkout action to v6 (PR [#4900](https://github.com/javaparser/javaparser/pull/4900) by [@renovate[bot]](https://github.com/apps/renovate))
50+
* chore(deps): update actions/checkout action to v5.0.1 (PR [#4892](https://github.com/javaparser/javaparser/pull/4892) by [@renovate[bot]](https://github.com/apps/renovate))
51+
* fix(deps): update dependency net.bytebuddy:byte-buddy-agent to v1.18.1 (PR [#4889](https://github.com/javaparser/javaparser/pull/4889) by [@renovate[bot]](https://github.com/apps/renovate))
52+
* fix(deps): update dependency org.checkerframework:checker-qual to v3.52.0 (PR [#4886](https://github.com/javaparser/javaparser/pull/4886) by [@renovate[bot]](https://github.com/apps/renovate))
53+
54+
### Uncategorised
55+
56+
* Add UnaryExpr, BinaryExpr, and some record/enum tests to improve overall test coverage (PR [#4930](https://github.com/javaparser/javaparser/pull/4930) by [@johannescoetzee](https://github.com/johannescoetzee))
57+
58+
### :heart: Contributors
59+
60+
Thank You to all contributors who worked on this release!
61+
62+
* [@rpx99](https://github.com/rpx99)
63+
* [@JIN-RUI-LIU](https://github.com/JIN-RUI-LIU)
64+
* [@Joyce-5](https://github.com/Joyce-5)
65+
* [@johannescoetzee](https://github.com/johannescoetzee)
66+
* [@matthieu-vergne](https://github.com/matthieu-vergne)
67+
* [@jlerbsc](https://github.com/jlerbsc)
68+
* [@ChenduanZhang](https://github.com/ChenduanZhang)
69+
70+
1371
Version 3.27.1
1472
--------------
1573
[issues resolved](https://github.com/javaparser/javaparser/milestone/213?closed=1)

javaparser-core-generators/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>javaparser-parent</artifactId>
55
<groupId>com.github.javaparser</groupId>
6-
<version>3.27.1</version>
6+
<version>3.28.0</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99

javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/NoCommentEqualsVisitorGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected void generateVisitMethodBody(
4848

4949
if (!(node.equals(JavaParserMetaModel.lineCommentMetaModel)
5050
|| node.equals(JavaParserMetaModel.blockCommentMetaModel)
51-
|| node.equals(JavaParserMetaModel.javadocCommentMetaModel))) {
51+
|| node.equals(JavaParserMetaModel.traditionalJavadocCommentMetaModel))) {
5252

5353
body.addStatement(f("final %s n2 = (%s) arg;", node.getTypeName(), node.getTypeName()));
5454

javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/NoCommentHashCodeVisitorGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected void generateVisitMethodBody(
5252
final List<PropertyMetaModel> propertyMetaModels = node.getAllPropertyMetaModels();
5353
if (node.equals(JavaParserMetaModel.lineCommentMetaModel)
5454
|| node.equals(JavaParserMetaModel.blockCommentMetaModel)
55-
|| node.equals(JavaParserMetaModel.javadocCommentMetaModel)
55+
|| node.equals(JavaParserMetaModel.traditionalJavadocCommentMetaModel)
5656
|| propertyMetaModels.isEmpty()) {
5757
builder.append("0");
5858
} else {

0 commit comments

Comments
 (0)