diff --git a/.github/workflows/prepare_release_changelog.yml b/.github/workflows/prepare_release_changelog.yml index 4947bec1d8..2dd8d1b9a4 100644 --- a/.github/workflows/prepare_release_changelog.yml +++ b/.github/workflows/prepare_release_changelog.yml @@ -21,7 +21,7 @@ jobs: # Setup Java 11 environment for the next steps - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: zulu java-version: 11 diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index eacdc9ed17..346d645fd0 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -14,5 +14,5 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar diff --git a/changelog.md b/changelog.md index dff67ae58d..82df6170f9 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ -Next Release (Version 3.25.7-snapshot) + +Next Release (Version 3.25.9-snapshot) -------------------------------------- -[issues resolved](https://github.com/javaparser/javaparser/milestone/203?closed=1) +[issues resolved](https://github.com/javaparser/javaparser/milestone/205?closed=1) ### Added ### Changed @@ -9,49 +10,126 @@ Next Release (Version 3.25.7-snapshot) ### Fixed ### Security +Version 3.25.8 +-------------- +[issues resolved](https://github.com/javaparser/javaparser/milestone/204?closed=1) + +### Added + +* feat: creates cache statistics and moves Cache interface to javaparser-core (PR [#4278](https://github.com/javaparser/javaparser/pull/4278) by [@jlerbsc](https://github.com/jlerbsc)) +* feat: Add parseArrayInitializerExpr to JavaParser API (PR [#4276](https://github.com/javaparser/javaparser/pull/4276) by [@iMashtak](https://github.com/iMashtak)) +* feat: A visitor looking for a node by its position in an AST (PR [#4258](https://github.com/javaparser/javaparser/pull/4258) by [@jlerbsc](https://github.com/jlerbsc)) + +### Changed + +* fix: Partial removal of the use of instanceof in favour of the use of the API (PR [#4280](https://github.com/javaparser/javaparser/pull/4280) by [@jlerbsc](https://github.com/jlerbsc)) +* [GHA] Run on java 18 (PR [#4252](https://github.com/javaparser/javaparser/pull/4252) by [@hazendaz](https://github.com/hazendaz)) + +### Fixed + +* fix: issue 4240 Calling resolve on catch block parameter throws exception (PR [#4279](https://github.com/javaparser/javaparser/pull/4279) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue 4270 Exception when resolving ObjectCreationExpr with nested varargs (PR [#4273](https://github.com/javaparser/javaparser/pull/4273) by [@jlerbsc](https://github.com/jlerbsc)) +* add Java_18 to yieldSupport (PR [#4262](https://github.com/javaparser/javaparser/pull/4262) by [@Kimmmey](https://github.com/Kimmmey)) +* fix: issue #4245 UnsupportedOperationException with LexicalPreservingPrinter when removing a sealed modified (PR [#4253](https://github.com/javaparser/javaparser/pull/4253) by [@jlerbsc](https://github.com/jlerbsc)) +* [ci] Fix change log released version as 3.25.7 (PR [#4251](https://github.com/javaparser/javaparser/pull/4251) by [@hazendaz](https://github.com/hazendaz)) +* Fix: issue 3278 Lazy types cause stack overflow when trying to find the least upper bound type (PR [#4246](https://github.com/javaparser/javaparser/pull/4246) by [@jlerbsc](https://github.com/jlerbsc)) + +### Developer Changes + +* chore(deps): bump com.google.guava:guava from 32.1.3-jre to 33.0.0-jre (PR [#4264](https://github.com/javaparser/javaparser/pull/4264) by [@dependabot[bot]](https://github.com/apps/dependabot)) + +### Uncategorised + +* Revert "Refactoring: Move cache features to javaparser-core" (PR [#4274](https://github.com/javaparser/javaparser/pull/4274) by [@jlerbsc](https://github.com/jlerbsc)) + +### :heart: Contributors + +Thank You to all contributors who worked on this release! + +* [@hazendaz](https://github.com/hazendaz) +* [@iMashtak](https://github.com/iMashtak) +* [@jlerbsc](https://github.com/jlerbsc) +* [@Kimmmey](https://github.com/Kimmmey) + +Version 3.25.7 +-------------- +[issues resolved](https://github.com/javaparser/javaparser/milestone/203?closed=1) + +### Added + +* [GHA] Remove old comment that is no longer valid around jdks and add jdk 17 (PR [#4226](https://github.com/javaparser/javaparser/pull/4226) by [@hazendaz](https://github.com/hazendaz)) +* Fix: issue 3833 No enum constant com.github.javaparser.ParserConfiguration.LanguageLevel.JAVA_18 (PR [#4221](https://github.com/javaparser/javaparser/pull/4221) by [@jlerbsc](https://github.com/jlerbsc)) + +### Changed + +* Refactoring: Move cache features to javaparser-core (PR [#4238](https://github.com/javaparser/javaparser/pull/4238) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: removes reference to coveralls plugin which is not useful because codecov is used to track code coverage (PR [#4235](https://github.com/javaparser/javaparser/pull/4235) by [@jlerbsc](https://github.com/jlerbsc)) +* Uses jakarta.json api, upgrades jakarta.json-api to the latest version & uses new default Eclipse Parsson (PR [#4234](https://github.com/javaparser/javaparser/pull/4234) by [@jlerbsc](https://github.com/jlerbsc)) +* Move mockito to 4.11.0 and handle byte buddy consistently as well as properly define its agent in argLine for surefire (PR [#4228](https://github.com/javaparser/javaparser/pull/4228) by [@hazendaz](https://github.com/hazendaz)) +* Cleanup poms, use jakarta provided (javax namespace), hamcrest follow up, and switch coveralls plugin - Fixes #4111 (PR [#4225](https://github.com/javaparser/javaparser/pull/4225) by [@hazendaz](https://github.com/hazendaz)) +* [pom] Switch from hamcrest-library (deprecated) to hamcrest (PR [#4200](https://github.com/javaparser/javaparser/pull/4200) by [@hazendaz](https://github.com/hazendaz)) +* Putting code in the .orElse that has a side effect that can affect performance (PR [#4199](https://github.com/javaparser/javaparser/pull/4199) by [@jlerbsc](https://github.com/jlerbsc)) + +### Fixed + +* Fix: issue 3650 unreproducible MAVEN_BUILD_TIMESTAMP (PR [#4243](https://github.com/javaparser/javaparser/pull/4243) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue 3972 StackOverflowError when resolving type of scope of a MethodCall (PR [#4236](https://github.com/javaparser/javaparser/pull/4236) by [@jlerbsc](https://github.com/jlerbsc)) +* [fix] Jdk 18 enum stub was extended off java 16 post processor not java17 (PR [#4227](https://github.com/javaparser/javaparser/pull/4227) by [@hazendaz](https://github.com/hazendaz)) +* Fix: issue #4047 Symbol Solver mixes name with type (PR [#4206](https://github.com/javaparser/javaparser/pull/4206) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix grammar (PR [#4203](https://github.com/javaparser/javaparser/pull/4203) by [@mernst](https://github.com/mernst)) +* Minor changes : corrupted format, useless cast, javadoc (PR [#4198](https://github.com/javaparser/javaparser/pull/4198) by [@jlerbsc](https://github.com/jlerbsc)) + +### Developer Changes + +* chore(deps): update actions/setup-java action to v4 (PR [#4241](https://github.com/javaparser/javaparser/pull/4241) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): bump org.codehaus.mojo:build-helper-maven-plugin from 3.4.0 to 3.5.0 (PR [#4223](https://github.com/javaparser/javaparser/pull/4223) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* Adds sponsor link to help the project live and grow (PR [#4204](https://github.com/javaparser/javaparser/pull/4204) by [@jlerbsc](https://github.com/jlerbsc)) +* chore(deps): bump org.codehaus.mojo:templating-maven-plugin from 1.0.0 to 3.0.0 (PR [#4195](https://github.com/javaparser/javaparser/pull/4195) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update junit5 monorepo to v5.10.1 (PR [#4193](https://github.com/javaparser/javaparser/pull/4193) by [@renovate[bot]](https://github.com/apps/renovate)) + +### Uncategorised + +* Added unit tests for visitors (PR [#4239](https://github.com/javaparser/javaparser/pull/4239) by [@4everTheOne](https://github.com/4everTheOne)) +* Unit tests for class GenericListVisitorAdapter (PR [#4237](https://github.com/javaparser/javaparser/pull/4237) by [@4everTheOne](https://github.com/4everTheOne)) +* Update readme.md (PR [#4222](https://github.com/javaparser/javaparser/pull/4222) by [@jlerbsc](https://github.com/jlerbsc)) + +### :heart: Contributors + +Thank You to all contributors who worked on this release! + +* [@hazendaz](https://github.com/hazendaz) +* [@jlerbsc](https://github.com/jlerbsc) +* [@mernst](https://github.com/mernst) +* [@4everTheOne](https://github.com/4everTheOne) + + Version 3.25.6 -------------- [issues resolved](https://github.com/javaparser/javaparser/milestone/202?closed=1) ### Changed -* reformat javaconcept take 2 (PR [#4167](https://github.com/javaparser/javaparser/pull/4167) - by [@JimmyGan437](https://github.com/JimmyGan437)) -* Using JAXP on XMLPrinter implementation (PR [#4166](https://github.com/javaparser/javaparser/pull/4166) - by [@lcbarcellos](https://github.com/lcbarcellos)) -* replace deprecated methond calls to their replacements (PR [#4157](https://github.com/javaparser/javaparser/pull/4157) - by [@JimmyGan437](https://github.com/JimmyGan437)) -* feat(#4075): Improve the validation error messages (PR [#4116](https://github.com/javaparser/javaparser/pull/4116) - by [@volodya-lombrozo](https://github.com/volodya-lombrozo)) +* reformat javaconcept take 2 (PR [#4167](https://github.com/javaparser/javaparser/pull/4167) by [@JimmyGan437](https://github.com/JimmyGan437)) +* Using JAXP on XMLPrinter implementation (PR [#4166](https://github.com/javaparser/javaparser/pull/4166) by [@lcbarcellos](https://github.com/lcbarcellos)) +* replace deprecated methond calls to their replacements (PR [#4157](https://github.com/javaparser/javaparser/pull/4157) by [@JimmyGan437](https://github.com/JimmyGan437)) +* feat(#4075): Improve the validation error messages (PR [#4116](https://github.com/javaparser/javaparser/pull/4116) by [@volodya-lombrozo](https://github.com/volodya-lombrozo)) ### Fixed -* Fix: issue #2751 new HashSet()" != "new HashSet<>() (PR [#4183](https://github.com/javaparser/javaparser/pull/4183) - by [@lcbarcellos](https://github.com/lcbarcellos)) -* Fixes #2625 Add messages to thrown exceptions (PR [#4177](https://github.com/javaparser/javaparser/pull/4177) - by [@oannhpham](https://github.com/oannhpham)) -* Fix: issue 4163 Calling MethodDeclaration.getDeclarationAsString leads to MethodDelaration.getComment returning no - comment (PR [#4165](https://github.com/javaparser/javaparser/pull/4165) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: issue 3673 isAssignableBy method StackOverflowError ( - PR [#4156](https://github.com/javaparser/javaparser/pull/4156) by [@jlerbsc](https://github.com/jlerbsc)) -* fix: issue 3184 Unable to get the resolved type of class ResolvedReferenceType from T ( - PR [#4147](https://github.com/javaparser/javaparser/pull/4147) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: issue #3269 Test resources containing included interfaces do not compile ( - PR [#4139](https://github.com/javaparser/javaparser/pull/4139) by [@jlerbsc](https://github.com/jlerbsc)) -* CalculateResolvedType Type error (PR [#4138](https://github.com/javaparser/javaparser/pull/4138) - by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: issue #4036 LeastUpperBoundLogic.lub returns null when matches ConditionalExpr ( - PR [#4137](https://github.com/javaparser/javaparser/pull/4137) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: issue #2484 SymbolResolver on MethodCallExpr fails if method parameter is of kind Class ( - PR [#4136](https://github.com/javaparser/javaparser/pull/4136) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue #2751 new HashSet()" != "new HashSet<>() (PR [#4183](https://github.com/javaparser/javaparser/pull/4183) by [@lcbarcellos](https://github.com/lcbarcellos)) +* Fixes #2625 Add messages to thrown exceptions (PR [#4177](https://github.com/javaparser/javaparser/pull/4177) by [@oannhpham](https://github.com/oannhpham)) +* Fix: issue 4163 Calling MethodDeclaration.getDeclarationAsString leads to MethodDelaration.getComment returning no comment (PR [#4165](https://github.com/javaparser/javaparser/pull/4165) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue 3673 isAssignableBy method StackOverflowError (PR [#4156](https://github.com/javaparser/javaparser/pull/4156) by [@jlerbsc](https://github.com/jlerbsc)) +* fix: issue 3184 Unable to get the resolved type of class ResolvedReferenceType from T (PR [#4147](https://github.com/javaparser/javaparser/pull/4147) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue #3269 Test resources containing included interfaces do not compile (PR [#4139](https://github.com/javaparser/javaparser/pull/4139) by [@jlerbsc](https://github.com/jlerbsc)) +* CalculateResolvedType Type error (PR [#4138](https://github.com/javaparser/javaparser/pull/4138) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue #4036 LeastUpperBoundLogic.lub returns null when matches ConditionalExpr (PR [#4137](https://github.com/javaparser/javaparser/pull/4137) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue #2484 SymbolResolver on MethodCallExpr fails if method parameter is of kind Class (PR [#4136](https://github.com/javaparser/javaparser/pull/4136) by [@jlerbsc](https://github.com/jlerbsc)) ### Developer Changes -* chore(deps): bump com.google.guava:guava from 32.1.2-jre to 32.1.3-jre ( - PR [#4154](https://github.com/javaparser/javaparser/pull/4154) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update actions/checkout action to v4 (PR [#4141](https://github.com/javaparser/javaparser/pull/4141) - by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): bump com.google.guava:guava from 32.1.2-jre to 32.1.3-jre (PR [#4154](https://github.com/javaparser/javaparser/pull/4154) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update actions/checkout action to v4 (PR [#4141](https://github.com/javaparser/javaparser/pull/4141) by [@renovate[bot]](https://github.com/apps/renovate)) ### :heart: Contributors @@ -63,61 +141,44 @@ Thank You to all contributors who worked on this release! * [@jlerbsc](https://github.com/jlerbsc) * [@oannhpham](https://github.com/oannhpham) + + Version 3.25.5 -------------- [issues resolved](https://github.com/javaparser/javaparser/milestone/201?closed=1) ### Added -* fix: issue 4115 ResolvedUnionType should give access to a list of resolved types ( - PR [#4119](https://github.com/javaparser/javaparser/pull/4119) by [@jlerbsc](https://github.com/jlerbsc)) -* Support getting more annotation default values using reflection ( - PR [#4103](https://github.com/javaparser/javaparser/pull/4103) by [@freya022](https://github.com/freya022)) +* fix: issue 4115 ResolvedUnionType should give access to a list of resolved types (PR [#4119](https://github.com/javaparser/javaparser/pull/4119) by [@jlerbsc](https://github.com/jlerbsc)) +* Support getting more annotation default values using reflection (PR [#4103](https://github.com/javaparser/javaparser/pull/4103) by [@freya022](https://github.com/freya022)) ### Changed -* Minor refactoring: Simplifies how to group deleted tokens by extracting a method into an independent class ( - PR [#4134](https://github.com/javaparser/javaparser/pull/4134) by [@jlerbsc](https://github.com/jlerbsc)) -* Replace deprecated command with environment file (PR [#4122](https://github.com/javaparser/javaparser/pull/4122) - by [@70825](https://github.com/70825)) -* Fixes missing named constructor in Modifier.java (PR [#4092](https://github.com/javaparser/javaparser/pull/4092) - by [@Auties00](https://github.com/Auties00)) +* Minor refactoring: Simplifies how to group deleted tokens by extracting a method into an independent class (PR [#4134](https://github.com/javaparser/javaparser/pull/4134) by [@jlerbsc](https://github.com/jlerbsc)) +* Replace deprecated command with environment file (PR [#4122](https://github.com/javaparser/javaparser/pull/4122) by [@70825](https://github.com/70825)) +* Fixes missing named constructor in Modifier.java (PR [#4092](https://github.com/javaparser/javaparser/pull/4092) by [@Auties00](https://github.com/Auties00)) ### Fixed -* Fix: issue 4133 Top-level class containerType() throws an exception instead of Optional.empty() ( - PR [#4135](https://github.com/javaparser/javaparser/pull/4135) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: apply multiline strings (PR [#4130](https://github.com/javaparser/javaparser/pull/4130) - by [@70825](https://github.com/70825)) -* Fix: issue 3976 Issue resolving implicit generic types (PR [#4128](https://github.com/javaparser/javaparser/pull/4128) - by [@jlerbsc](https://github.com/jlerbsc)) -* Add unit test for PR 4091 Fixed missing permits in pretty printer ( - PR [#4126](https://github.com/javaparser/javaparser/pull/4126) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: issue 4124 UnsupportedOperationException: 'T' is thrown in MethodCallExpr resolve ( - PR [#4125](https://github.com/javaparser/javaparser/pull/4125) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: issue 4051 Switched upperBounds and lowerBounds on ResolvedTypeP… ( - PR [#4123](https://github.com/javaparser/javaparser/pull/4123) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix failing test on JDK 17 (PR [#4121](https://github.com/javaparser/javaparser/pull/4121) - by [@mahesh-hegde](https://github.com/mahesh-hegde)) -* Fix: issue 3673 isAssignableBy method StackOverflowError ( - PR [#4118](https://github.com/javaparser/javaparser/pull/4118) by [@jlerbsc](https://github.com/jlerbsc)) -* Orphan comment added when using lexical preservation is not printed ( - PR [#4114](https://github.com/javaparser/javaparser/pull/4114) by [@jlerbsc](https://github.com/jlerbsc)) -* Fixed missing permits in pretty printer (PR [#4091](https://github.com/javaparser/javaparser/pull/4091) - by [@Auties00](https://github.com/Auties00)) +* Fix: issue 4133 Top-level class containerType() throws an exception instead of Optional.empty() (PR [#4135](https://github.com/javaparser/javaparser/pull/4135) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: apply multiline strings (PR [#4130](https://github.com/javaparser/javaparser/pull/4130) by [@70825](https://github.com/70825)) +* Fix: issue 3976 Issue resolving implicit generic types (PR [#4128](https://github.com/javaparser/javaparser/pull/4128) by [@jlerbsc](https://github.com/jlerbsc)) +* Add unit test for PR 4091 Fixed missing permits in pretty printer (PR [#4126](https://github.com/javaparser/javaparser/pull/4126) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue 4124 UnsupportedOperationException: 'T' is thrown in MethodCallExpr resolve (PR [#4125](https://github.com/javaparser/javaparser/pull/4125) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue 4051 Switched upperBounds and lowerBounds on ResolvedTypeP… (PR [#4123](https://github.com/javaparser/javaparser/pull/4123) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix failing test on JDK 17 (PR [#4121](https://github.com/javaparser/javaparser/pull/4121) by [@mahesh-hegde](https://github.com/mahesh-hegde)) +* Fix: issue 3673 isAssignableBy method StackOverflowError (PR [#4118](https://github.com/javaparser/javaparser/pull/4118) by [@jlerbsc](https://github.com/jlerbsc)) +* Orphan comment added when using lexical preservation is not printed (PR [#4114](https://github.com/javaparser/javaparser/pull/4114) by [@jlerbsc](https://github.com/jlerbsc)) +* Fixed missing permits in pretty printer (PR [#4091](https://github.com/javaparser/javaparser/pull/4091) by [@Auties00](https://github.com/Auties00)) ### Developer Changes -* chore(deps): update actions/checkout action to v3.6.0 (PR [#4127](https://github.com/javaparser/javaparser/pull/4127) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): bump com.google.guava:guava from 32.1.1-jre to 32.1.2-jre ( - PR [#4109](https://github.com/javaparser/javaparser/pull/4109) - by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update actions/checkout action to v3.6.0 (PR [#4127](https://github.com/javaparser/javaparser/pull/4127) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): bump com.google.guava:guava from 32.1.1-jre to 32.1.2-jre (PR [#4109](https://github.com/javaparser/javaparser/pull/4109) by [@dependabot[bot]](https://github.com/apps/dependabot)) ### Uncategorised -* Fix: issue 4104 LPP doesn't handle new switch entries well ( - PR [#4106](https://github.com/javaparser/javaparser/pull/4106) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue 4104 LPP doesn't handle new switch entries well (PR [#4106](https://github.com/javaparser/javaparser/pull/4106) by [@jlerbsc](https://github.com/jlerbsc)) ### :heart: Contributors @@ -129,64 +190,39 @@ Thank You to all contributors who worked on this release! * [@jlerbsc](https://github.com/jlerbsc) * [@70825](https://github.com/70825) + Version 3.25.4 -------------- [issues resolved](https://github.com/javaparser/javaparser/milestone/200?closed=1) ### Changed -* Nested 'if' statements should be simplified (PR [#4085](https://github.com/javaparser/javaparser/pull/4085) - by [@jlerbsc](https://github.com/jlerbsc)) -* BDD tests: migarte to JBehave 5 (PR [#4028](https://github.com/javaparser/javaparser/pull/4028) - by [@valfirst](https://github.com/valfirst)) +* Nested 'if' statements should be simplified (PR [#4085](https://github.com/javaparser/javaparser/pull/4085) by [@jlerbsc](https://github.com/jlerbsc)) +* BDD tests: migarte to JBehave 5 (PR [#4028](https://github.com/javaparser/javaparser/pull/4028) by [@valfirst](https://github.com/valfirst)) ### Fixed -* Fix: issue 4077 After building JavaParser (with tests) on MacOS multi… ( - PR [#4086](https://github.com/javaparser/javaparser/pull/4086) by [@jlerbsc](https://github.com/jlerbsc)) -* fix line separators of selected test files (PR [#4083](https://github.com/javaparser/javaparser/pull/4083) - by [@abego](https://github.com/abego)) -* Fix: issue 3978 typesolver can't parse in parallel (PR [#4073](https://github.com/javaparser/javaparser/pull/4073) - by [@jlerbsc](https://github.com/jlerbsc)) -* Fix #4056 isDeclaredInInterface() returns true for fields declared inside enumerations contained in an interface ( - PR [#4057](https://github.com/javaparser/javaparser/pull/4057) by [@Elewyth](https://github.com/Elewyth)) -* Fix: issue 4037 ArrayIndexOutOfBoundsException throws when method param is variadic ( - PR [#4046](https://github.com/javaparser/javaparser/pull/4046) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: issue 4016 Failed to parse variable with name 'sealed' or 'permits' ( - PR [#4039](https://github.com/javaparser/javaparser/pull/4039) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue 4077 After building JavaParser (with tests) on MacOS multi… (PR [#4086](https://github.com/javaparser/javaparser/pull/4086) by [@jlerbsc](https://github.com/jlerbsc)) +* fix line separators of selected test files (PR [#4083](https://github.com/javaparser/javaparser/pull/4083) by [@abego](https://github.com/abego)) +* Fix: issue 3978 typesolver can't parse in parallel (PR [#4073](https://github.com/javaparser/javaparser/pull/4073) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix #4056 isDeclaredInInterface() returns true for fields declared inside enumerations contained in an interface (PR [#4057](https://github.com/javaparser/javaparser/pull/4057) by [@Elewyth](https://github.com/Elewyth)) +* Fix: issue 4037 ArrayIndexOutOfBoundsException throws when method param is variadic (PR [#4046](https://github.com/javaparser/javaparser/pull/4046) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue 4016 Failed to parse variable with name 'sealed' or 'permits' (PR [#4039](https://github.com/javaparser/javaparser/pull/4039) by [@jlerbsc](https://github.com/jlerbsc)) ### Developer Changes -* chore(deps): bump guava from 32.1.0-jre to 32.1.1-jre (PR [#4089](https://github.com/javaparser/javaparser/pull/4089) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump guava from 32.0.0-jre to 32.1.0-jre (PR [#4087](https://github.com/javaparser/javaparser/pull/4087) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump checkstyle from 10.12.0 to 10.12.1 (PR [#4084](https://github.com/javaparser/javaparser/pull/4084) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump versions-maven-plugin from 2.15.0 to 2.16.0 ( - PR [#4055](https://github.com/javaparser/javaparser/pull/4055) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-release-plugin from 3.0.0 to 3.0.1 ( - PR [#4053](https://github.com/javaparser/javaparser/pull/4053) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump guava from 31.1-jre to 32.0.0-jre (PR [#4042](https://github.com/javaparser/javaparser/pull/4042) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-dependency-plugin from 3.5.0 to 3.6.0 ( - PR [#4035](https://github.com/javaparser/javaparser/pull/4035) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-checkstyle-plugin from 3.2.2 to 3.3.0 ( - PR [#4033](https://github.com/javaparser/javaparser/pull/4033) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-scm-plugin from 2.0.0 to 2.0.1 (PR [#4031](https://github.com/javaparser/javaparser/pull/4031) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump codecov/codecov-action from 3.1.3 to 3.1.4 ( - PR [#4030](https://github.com/javaparser/javaparser/pull/4030) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump build-helper-maven-plugin from 3.3.0 to 3.4.0 ( - PR [#4026](https://github.com/javaparser/javaparser/pull/4026) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update dependency maven to v3.9.2 (PR [#4024](https://github.com/javaparser/javaparser/pull/4024) - by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): bump guava from 32.1.0-jre to 32.1.1-jre (PR [#4089](https://github.com/javaparser/javaparser/pull/4089) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump guava from 32.0.0-jre to 32.1.0-jre (PR [#4087](https://github.com/javaparser/javaparser/pull/4087) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump checkstyle from 10.12.0 to 10.12.1 (PR [#4084](https://github.com/javaparser/javaparser/pull/4084) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump versions-maven-plugin from 2.15.0 to 2.16.0 (PR [#4055](https://github.com/javaparser/javaparser/pull/4055) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-release-plugin from 3.0.0 to 3.0.1 (PR [#4053](https://github.com/javaparser/javaparser/pull/4053) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump guava from 31.1-jre to 32.0.0-jre (PR [#4042](https://github.com/javaparser/javaparser/pull/4042) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-dependency-plugin from 3.5.0 to 3.6.0 (PR [#4035](https://github.com/javaparser/javaparser/pull/4035) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-checkstyle-plugin from 3.2.2 to 3.3.0 (PR [#4033](https://github.com/javaparser/javaparser/pull/4033) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-scm-plugin from 2.0.0 to 2.0.1 (PR [#4031](https://github.com/javaparser/javaparser/pull/4031) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump codecov/codecov-action from 3.1.3 to 3.1.4 (PR [#4030](https://github.com/javaparser/javaparser/pull/4030) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump build-helper-maven-plugin from 3.3.0 to 3.4.0 (PR [#4026](https://github.com/javaparser/javaparser/pull/4026) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update dependency maven to v3.9.2 (PR [#4024](https://github.com/javaparser/javaparser/pull/4024) by [@renovate[bot]](https://github.com/apps/renovate)) ### :heart: Contributors @@ -197,77 +233,48 @@ Thank You to all contributors who worked on this release! * [@Elewyth](https://github.com/Elewyth) * [@jlerbsc](https://github.com/jlerbsc) + Version 3.25.3 -------------- [issues resolved](https://github.com/javaparser/javaparser/milestone/199?closed=1) + ### Added -* add Java 17 sealed/non-sealed classes (PR [#3997](https://github.com/javaparser/javaparser/pull/3997) - by [@kris-scheibe](https://github.com/kris-scheibe)) +* add Java 17 sealed/non-sealed classes (PR [#3997](https://github.com/javaparser/javaparser/pull/3997) by [@kris-scheibe](https://github.com/kris-scheibe)) ### Changed -* Minor simplification of the Difference class (PR [#4008](https://github.com/javaparser/javaparser/pull/4008) - by [@jlerbsc](https://github.com/jlerbsc)) -* Perf: Remove unnecessary methods and quickly return to the Range.cont… ( - PR [#3996](https://github.com/javaparser/javaparser/pull/3996) by [@jlerbsc](https://github.com/jlerbsc)) +* Minor simplification of the Difference class (PR [#4008](https://github.com/javaparser/javaparser/pull/4008) by [@jlerbsc](https://github.com/jlerbsc)) +* Perf: Remove unnecessary methods and quickly return to the Range.cont… (PR [#3996](https://github.com/javaparser/javaparser/pull/3996) by [@jlerbsc](https://github.com/jlerbsc)) ### Fixed -* Fix: issue 1843 Problems with hasAnnotation() and hasDirectlyAnnotati… ( - PR [#4015](https://github.com/javaparser/javaparser/pull/4015) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: Issue 3995 resolving a method call with a variadic argument of p… ( - PR [#3998](https://github.com/javaparser/javaparser/pull/3998) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: issue 3983 why FieldDeclaration in an interface calling isStatic… ( - PR [#3986](https://github.com/javaparser/javaparser/pull/3986) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue 1843 Problems with hasAnnotation() and hasDirectlyAnnotati… (PR [#4015](https://github.com/javaparser/javaparser/pull/4015) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: Issue 3995 resolving a method call with a variadic argument of p… (PR [#3998](https://github.com/javaparser/javaparser/pull/3998) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue 3983 why FieldDeclaration in an interface calling isStatic… (PR [#3986](https://github.com/javaparser/javaparser/pull/3986) by [@jlerbsc](https://github.com/jlerbsc)) ### Developer Changes -* chore(deps): bump checkstyle from 10.9.3 to 10.10.0 (PR [#4014](https://github.com/javaparser/javaparser/pull/4014) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update junit5 monorepo to v5.9.3 (PR [#4012](https://github.com/javaparser/javaparser/pull/4012) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): bump jacoco-maven-plugin from 0.8.9 to 0.8.10 ( - PR [#4011](https://github.com/javaparser/javaparser/pull/4011) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps-dev): bump okhttp from 4.10.0 to 4.11.0 (PR [#4009](https://github.com/javaparser/javaparser/pull/4009) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump codecov/codecov-action from 3.1.2 to 3.1.3 ( - PR [#4006](https://github.com/javaparser/javaparser/pull/4006) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-checkstyle-plugin from 3.2.1 to 3.2.2 ( - PR [#4005](https://github.com/javaparser/javaparser/pull/4005) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump actions/checkout from 3.5.1 to 3.5.2 (PR [#3994](https://github.com/javaparser/javaparser/pull/3994) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump actions/checkout from 3.5.0 to 3.5.1 (PR [#3992](https://github.com/javaparser/javaparser/pull/3992) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump codecov/codecov-action from 3.1.1 to 3.1.2 ( - PR [#3988](https://github.com/javaparser/javaparser/pull/3988) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-deploy-plugin from 3.1.0 to 3.1.1 ( - PR [#3985](https://github.com/javaparser/javaparser/pull/3985) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump jacoco-maven-plugin from 0.8.8 to 0.8.9 ( - PR [#3981](https://github.com/javaparser/javaparser/pull/3981) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump checkstyle from 10.9.1 to 10.9.3 (PR [#3980](https://github.com/javaparser/javaparser/pull/3980) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-resources-plugin from 3.3.0 to 3.3.1 ( - PR [#3979](https://github.com/javaparser/javaparser/pull/3979) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-install-plugin from 3.1.0 to 3.1.1 ( - PR [#3975](https://github.com/javaparser/javaparser/pull/3975) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-release-plugin from 2.5.3 to 3.0.0 ( - PR [#3965](https://github.com/javaparser/javaparser/pull/3965) - by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump checkstyle from 10.9.3 to 10.10.0 (PR [#4014](https://github.com/javaparser/javaparser/pull/4014) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update junit5 monorepo to v5.9.3 (PR [#4012](https://github.com/javaparser/javaparser/pull/4012) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): bump jacoco-maven-plugin from 0.8.9 to 0.8.10 (PR [#4011](https://github.com/javaparser/javaparser/pull/4011) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps-dev): bump okhttp from 4.10.0 to 4.11.0 (PR [#4009](https://github.com/javaparser/javaparser/pull/4009) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump codecov/codecov-action from 3.1.2 to 3.1.3 (PR [#4006](https://github.com/javaparser/javaparser/pull/4006) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-checkstyle-plugin from 3.2.1 to 3.2.2 (PR [#4005](https://github.com/javaparser/javaparser/pull/4005) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump actions/checkout from 3.5.1 to 3.5.2 (PR [#3994](https://github.com/javaparser/javaparser/pull/3994) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump actions/checkout from 3.5.0 to 3.5.1 (PR [#3992](https://github.com/javaparser/javaparser/pull/3992) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump codecov/codecov-action from 3.1.1 to 3.1.2 (PR [#3988](https://github.com/javaparser/javaparser/pull/3988) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-deploy-plugin from 3.1.0 to 3.1.1 (PR [#3985](https://github.com/javaparser/javaparser/pull/3985) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump jacoco-maven-plugin from 0.8.8 to 0.8.9 (PR [#3981](https://github.com/javaparser/javaparser/pull/3981) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump checkstyle from 10.9.1 to 10.9.3 (PR [#3980](https://github.com/javaparser/javaparser/pull/3980) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-resources-plugin from 3.3.0 to 3.3.1 (PR [#3979](https://github.com/javaparser/javaparser/pull/3979) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-install-plugin from 3.1.0 to 3.1.1 (PR [#3975](https://github.com/javaparser/javaparser/pull/3975) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-release-plugin from 2.5.3 to 3.0.0 (PR [#3965](https://github.com/javaparser/javaparser/pull/3965) by [@dependabot[bot]](https://github.com/apps/dependabot)) ### Uncategorised -* add test for showing interface field shall be static & final ( - PR [#3984](https://github.com/javaparser/javaparser/pull/3984) by [@XenoAmess](https://github.com/XenoAmess)) +* add test for showing interface field shall be static & final (PR [#3984](https://github.com/javaparser/javaparser/pull/3984) by [@XenoAmess](https://github.com/XenoAmess)) ### :heart: Contributors @@ -284,13 +291,9 @@ Version 3.25.2 ### Changed -* chore(deps): bump maven-scm-plugin from 1.13.0 to 2.0.0 ( - PR [#3961](https://github.com/javaparser/javaparser/pull/3961) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump checkstyle from 10.8.1 to 10.9.1 (PR [#3958](https://github.com/javaparser/javaparser/pull/3958) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump actions/checkout from 3.3.0 to 3.4.0 (PR [#3954](https://github.com/javaparser/javaparser/pull/3954) - by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-scm-plugin from 1.13.0 to 2.0.0 (PR [#3961](https://github.com/javaparser/javaparser/pull/3961) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump checkstyle from 10.8.1 to 10.9.1 (PR [#3958](https://github.com/javaparser/javaparser/pull/3958) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump actions/checkout from 3.3.0 to 3.4.0 (PR [#3954](https://github.com/javaparser/javaparser/pull/3954) by [@dependabot[bot]](https://github.com/apps/dependabot)) ### Fixed @@ -365,92 +368,53 @@ Version 3.25.0 ### Added -* First part of the implementation of least upper bound logic ( - PR [#3880](https://github.com/javaparser/javaparser/pull/3880) by [@jlerbsc](https://github.com/jlerbsc)) -* feat: Improved support for calculating the type of an object creation… ( - PR [#3877](https://github.com/javaparser/javaparser/pull/3877) by [@jlerbsc](https://github.com/jlerbsc)) -* feat: Implement addRecord & getRecordByName for CompilationUnit ( - PR [#3836](https://github.com/javaparser/javaparser/pull/3836) by [@marcluque](https://github.com/marcluque)) -* Support Jigsaw requires static (PR [#3826](https://github.com/javaparser/javaparser/pull/3826) - by [@jlerbsc](https://github.com/jlerbsc)) -* Add toDescriptor to ResolvedMethodDeclaration (PR [#3819](https://github.com/javaparser/javaparser/pull/3819) - by [@vanHekthor](https://github.com/vanHekthor)) -* Refactoring context (WIP) (PR [#3792](https://github.com/javaparser/javaparser/pull/3792) - by [@jlerbsc](https://github.com/jlerbsc)) -* Refactoring context (WIP) (PR [#3782](https://github.com/javaparser/javaparser/pull/3782) - by [@jlerbsc](https://github.com/jlerbsc)) -* Refactoring convert to usage (PR [#3774](https://github.com/javaparser/javaparser/pull/3774) - by [@jlerbsc](https://github.com/jlerbsc)) -* Simplified usage of class AssociableToAST (PR [#3063](https://github.com/javaparser/javaparser/pull/3063) - by [@4everTheOne](https://github.com/4everTheOne)) +* First part of the implementation of least upper bound logic (PR [#3880](https://github.com/javaparser/javaparser/pull/3880) by [@jlerbsc](https://github.com/jlerbsc)) +* feat: Improved support for calculating the type of an object creation… (PR [#3877](https://github.com/javaparser/javaparser/pull/3877) by [@jlerbsc](https://github.com/jlerbsc)) +* feat: Implement addRecord & getRecordByName for CompilationUnit (PR [#3836](https://github.com/javaparser/javaparser/pull/3836) by [@marcluque](https://github.com/marcluque)) +* Support Jigsaw requires static (PR [#3826](https://github.com/javaparser/javaparser/pull/3826) by [@jlerbsc](https://github.com/jlerbsc)) +* Add toDescriptor to ResolvedMethodDeclaration (PR [#3819](https://github.com/javaparser/javaparser/pull/3819) by [@vanHekthor](https://github.com/vanHekthor)) +* Refactoring context (WIP) (PR [#3792](https://github.com/javaparser/javaparser/pull/3792) by [@jlerbsc](https://github.com/jlerbsc)) +* Refactoring context (WIP) (PR [#3782](https://github.com/javaparser/javaparser/pull/3782) by [@jlerbsc](https://github.com/jlerbsc)) +* Refactoring convert to usage (PR [#3774](https://github.com/javaparser/javaparser/pull/3774) by [@jlerbsc](https://github.com/jlerbsc)) +* Simplified usage of class AssociableToAST (PR [#3063](https://github.com/javaparser/javaparser/pull/3063) by [@4everTheOne](https://github.com/4everTheOne)) ### Changed -* Revert import related checkstyle rule from error to warning ( - PR [#3881](https://github.com/javaparser/javaparser/pull/3881) by [@jlerbsc](https://github.com/jlerbsc)) -* Minor refactoring for example to get all parameter types ( - PR [#3879](https://github.com/javaparser/javaparser/pull/3879) by [@jlerbsc](https://github.com/jlerbsc)) -* Add header and footer methods in comments instead of using literal st… ( - PR [#3876](https://github.com/javaparser/javaparser/pull/3876) by [@jlerbsc](https://github.com/jlerbsc)) -* In the context of lexical preservation, the CSM token must be added m… ( - PR [#3874](https://github.com/javaparser/javaparser/pull/3874) by [@jlerbsc](https://github.com/jlerbsc)) -* Refactoring: remove useless code that is already implemented ( - PR [#3869](https://github.com/javaparser/javaparser/pull/3869) by [@jlerbsc](https://github.com/jlerbsc)) -* Memory usage improvement when printing a node from the LexicalPreserv… ( - PR [#3858](https://github.com/javaparser/javaparser/pull/3858) by [@jlerbsc](https://github.com/jlerbsc)) -* chore(deps-dev): bump assertj-core from 3.24.1 to 3.24.2 ( - PR [#3852](https://github.com/javaparser/javaparser/pull/3852) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-checkstyle-plugin from 3.2.0 to 3.2.1 ( - PR [#3846](https://github.com/javaparser/javaparser/pull/3846) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-dependency-plugin from 3.4.0 to 3.5.0 ( - PR [#3845](https://github.com/javaparser/javaparser/pull/3845) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update junit5 monorepo to v5.9.2 (PR [#3840](https://github.com/javaparser/javaparser/pull/3840) - by [@renovate[bot]](https://github.com/apps/renovate)) -* Minor refactoring on Difference class (PR [#3839](https://github.com/javaparser/javaparser/pull/3839) - by [@jlerbsc](https://github.com/jlerbsc)) -* chore(deps-dev): bump assertj-core from 3.23.1 to 3.24.1 ( - PR [#3837](https://github.com/javaparser/javaparser/pull/3837) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump actions/checkout from 3.2.0 to 3.3.0 (PR [#3834](https://github.com/javaparser/javaparser/pull/3834) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump checkstyle from 10.5.0 to 10.6.0 (PR [#3829](https://github.com/javaparser/javaparser/pull/3829) - by [@dependabot[bot]](https://github.com/apps/dependabot)) +* Revert import related checkstyle rule from error to warning (PR [#3881](https://github.com/javaparser/javaparser/pull/3881) by [@jlerbsc](https://github.com/jlerbsc)) +* Minor refactoring for example to get all parameter types (PR [#3879](https://github.com/javaparser/javaparser/pull/3879) by [@jlerbsc](https://github.com/jlerbsc)) +* Add header and footer methods in comments instead of using literal st… (PR [#3876](https://github.com/javaparser/javaparser/pull/3876) by [@jlerbsc](https://github.com/jlerbsc)) +* In the context of lexical preservation, the CSM token must be added m… (PR [#3874](https://github.com/javaparser/javaparser/pull/3874) by [@jlerbsc](https://github.com/jlerbsc)) +* Refactoring: remove useless code that is already implemented (PR [#3869](https://github.com/javaparser/javaparser/pull/3869) by [@jlerbsc](https://github.com/jlerbsc)) +* Memory usage improvement when printing a node from the LexicalPreserv… (PR [#3858](https://github.com/javaparser/javaparser/pull/3858) by [@jlerbsc](https://github.com/jlerbsc)) +* chore(deps-dev): bump assertj-core from 3.24.1 to 3.24.2 (PR [#3852](https://github.com/javaparser/javaparser/pull/3852) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-checkstyle-plugin from 3.2.0 to 3.2.1 (PR [#3846](https://github.com/javaparser/javaparser/pull/3846) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-dependency-plugin from 3.4.0 to 3.5.0 (PR [#3845](https://github.com/javaparser/javaparser/pull/3845) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update junit5 monorepo to v5.9.2 (PR [#3840](https://github.com/javaparser/javaparser/pull/3840) by [@renovate[bot]](https://github.com/apps/renovate)) +* Minor refactoring on Difference class (PR [#3839](https://github.com/javaparser/javaparser/pull/3839) by [@jlerbsc](https://github.com/jlerbsc)) +* chore(deps-dev): bump assertj-core from 3.23.1 to 3.24.1 (PR [#3837](https://github.com/javaparser/javaparser/pull/3837) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump actions/checkout from 3.2.0 to 3.3.0 (PR [#3834](https://github.com/javaparser/javaparser/pull/3834) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump checkstyle from 10.5.0 to 10.6.0 (PR [#3829](https://github.com/javaparser/javaparser/pull/3829) by [@dependabot[bot]](https://github.com/apps/dependabot)) ### Fixed -* Fix: Method hasScope must return true on NodeWithOptionalScope and No… ( - PR [#3875](https://github.com/javaparser/javaparser/pull/3875) by [@jlerbsc](https://github.com/jlerbsc)) -* fix #3859 UnsupportedOperationException when trying to resolve a type… ( - PR [#3873](https://github.com/javaparser/javaparser/pull/3873) by [@abego](https://github.com/abego)) -* Fix: issue 3866 Symbol solver is unable to resolve inner classes of ancestors when they are prefixed with a subclass ( - PR [#3868](https://github.com/javaparser/javaparser/pull/3868) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: issue 3703 Allow removing empty parentheses after removing all pairs from an annotation ( - PR [#3865](https://github.com/javaparser/javaparser/pull/3865) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: One must be able to know if any resolved type is a boxed primiti… ( - PR [#3864](https://github.com/javaparser/javaparser/pull/3864) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: Issue 2374 Comments of added Nodes are ignored in LexicalPreserv… ( - PR [#3856](https://github.com/javaparser/javaparser/pull/3856) by [@jlerbsc](https://github.com/jlerbsc)) -* Checkstyle for unused import (PR [#3841](https://github.com/javaparser/javaparser/pull/3841) - by [@4everTheOne](https://github.com/4everTheOne)) -* Update bnd file (PR [#3783](https://github.com/javaparser/javaparser/pull/3783) - by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: Method hasScope must return true on NodeWithOptionalScope and No… (PR [#3875](https://github.com/javaparser/javaparser/pull/3875) by [@jlerbsc](https://github.com/jlerbsc)) +* fix #3859 UnsupportedOperationException when trying to resolve a type… (PR [#3873](https://github.com/javaparser/javaparser/pull/3873) by [@abego](https://github.com/abego)) +* Fix: issue 3866 Symbol solver is unable to resolve inner classes of ancestors when they are prefixed with a subclass (PR [#3868](https://github.com/javaparser/javaparser/pull/3868) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: issue 3703 Allow removing empty parentheses after removing all pairs from an annotation (PR [#3865](https://github.com/javaparser/javaparser/pull/3865) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: One must be able to know if any resolved type is a boxed primiti… (PR [#3864](https://github.com/javaparser/javaparser/pull/3864) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: Issue 2374 Comments of added Nodes are ignored in LexicalPreserv… (PR [#3856](https://github.com/javaparser/javaparser/pull/3856) by [@jlerbsc](https://github.com/jlerbsc)) +* Checkstyle for unused import (PR [#3841](https://github.com/javaparser/javaparser/pull/3841) by [@4everTheOne](https://github.com/4everTheOne)) +* Update bnd file (PR [#3783](https://github.com/javaparser/javaparser/pull/3783) by [@jlerbsc](https://github.com/jlerbsc)) ### Developer Changes -* Update javaparser copyright headers (PR [#3862](https://github.com/javaparser/javaparser/pull/3862) - by [@jlerbsc](https://github.com/jlerbsc)) +* Update javaparser copyright headers (PR [#3862](https://github.com/javaparser/javaparser/pull/3862) by [@jlerbsc](https://github.com/jlerbsc)) ### Uncategorised -* Add test case to verify range calculation on ArrayType (PR [#3828](https://github.com/javaparser/javaparser/pull/3828) - by [@jlerbsc](https://github.com/jlerbsc)) -* Add test case to verify that LexicalPreservation supports TextBlock ( - PR [#3827](https://github.com/javaparser/javaparser/pull/3827) by [@jlerbsc](https://github.com/jlerbsc)) -* Refactoring: Removing useless method convertToUsage in JavaParserFacade ( - PR [#3780](https://github.com/javaparser/javaparser/pull/3780) by [@jlerbsc](https://github.com/jlerbsc)) +* Add test case to verify range calculation on ArrayType (PR [#3828](https://github.com/javaparser/javaparser/pull/3828) by [@jlerbsc](https://github.com/jlerbsc)) +* Add test case to verify that LexicalPreservation supports TextBlock (PR [#3827](https://github.com/javaparser/javaparser/pull/3827) by [@jlerbsc](https://github.com/jlerbsc)) +* Refactoring: Removing useless method convertToUsage in JavaParserFacade (PR [#3780](https://github.com/javaparser/javaparser/pull/3780) by [@jlerbsc](https://github.com/jlerbsc)) ### :heart: Contributors @@ -469,61 +433,38 @@ Version 3.24.10 ### Added -* Add a method in LexicalPreservingPrinter to know if LPP is available/activated on the specified node ( - PR [#3823](https://github.com/javaparser/javaparser/pull/3823) by [@jlerbsc](https://github.com/jlerbsc)) -* Handle nested records (PR [#3814](https://github.com/javaparser/javaparser/pull/3814) - by [@mernst](https://github.com/mernst)) -* Source printer import ordering strategy (PR [#3807](https://github.com/javaparser/javaparser/pull/3807) - by [@4everTheOne](https://github.com/4everTheOne)) +* Add a method in LexicalPreservingPrinter to know if LPP is available/activated on the specified node (PR [#3823](https://github.com/javaparser/javaparser/pull/3823) by [@jlerbsc](https://github.com/jlerbsc)) +* Handle nested records (PR [#3814](https://github.com/javaparser/javaparser/pull/3814) by [@mernst](https://github.com/mernst)) +* Source printer import ordering strategy (PR [#3807](https://github.com/javaparser/javaparser/pull/3807) by [@4everTheOne](https://github.com/4everTheOne)) ### Changed -* chore(deps): bump versions-maven-plugin from 2.14.1 to 2.14.2 ( - PR [#3817](https://github.com/javaparser/javaparser/pull/3817) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* Enabled import validation (PR [#3812](https://github.com/javaparser/javaparser/pull/3812) - by [@4everTheOne](https://github.com/4everTheOne)) -* Part 5 | Import organization (PR [#3805](https://github.com/javaparser/javaparser/pull/3805) - by [@4everTheOne](https://github.com/4everTheOne)) -* Part 4 | Import organization (PR [#3804](https://github.com/javaparser/javaparser/pull/3804) - by [@4everTheOne](https://github.com/4everTheOne)) -* Part 3 | Import organization (PR [#3803](https://github.com/javaparser/javaparser/pull/3803) - by [@4everTheOne](https://github.com/4everTheOne)) -* Part 2 | Import organization (PR [#3802](https://github.com/javaparser/javaparser/pull/3802) - by [@4everTheOne](https://github.com/4everTheOne)) -* Part 1 | Import organization (PR [#3801](https://github.com/javaparser/javaparser/pull/3801) - by [@4everTheOne](https://github.com/4everTheOne)) -* Checkstyle configuration tweaks (PR [#3799](https://github.com/javaparser/javaparser/pull/3799) - by [@4everTheOne](https://github.com/4everTheOne)) -* chore(deps): bump versions-maven-plugin from 2.13.0 to 2.14.1 ( - PR [#3797](https://github.com/javaparser/javaparser/pull/3797) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump actions/checkout from 3.1.0 to 3.2.0 (PR [#3789](https://github.com/javaparser/javaparser/pull/3789) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump checkstyle from 8.45.1 to 10.5.0 (PR [#3788](https://github.com/javaparser/javaparser/pull/3788) - by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump versions-maven-plugin from 2.14.1 to 2.14.2 (PR [#3817](https://github.com/javaparser/javaparser/pull/3817) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* Enabled import validation (PR [#3812](https://github.com/javaparser/javaparser/pull/3812) by [@4everTheOne](https://github.com/4everTheOne)) +* Part 5 | Import organization (PR [#3805](https://github.com/javaparser/javaparser/pull/3805) by [@4everTheOne](https://github.com/4everTheOne)) +* Part 4 | Import organization (PR [#3804](https://github.com/javaparser/javaparser/pull/3804) by [@4everTheOne](https://github.com/4everTheOne)) +* Part 3 | Import organization (PR [#3803](https://github.com/javaparser/javaparser/pull/3803) by [@4everTheOne](https://github.com/4everTheOne)) +* Part 2 | Import organization (PR [#3802](https://github.com/javaparser/javaparser/pull/3802) by [@4everTheOne](https://github.com/4everTheOne)) +* Part 1 | Import organization (PR [#3801](https://github.com/javaparser/javaparser/pull/3801) by [@4everTheOne](https://github.com/4everTheOne)) +* Checkstyle configuration tweaks (PR [#3799](https://github.com/javaparser/javaparser/pull/3799) by [@4everTheOne](https://github.com/4everTheOne)) +* chore(deps): bump versions-maven-plugin from 2.13.0 to 2.14.1 (PR [#3797](https://github.com/javaparser/javaparser/pull/3797) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump actions/checkout from 3.1.0 to 3.2.0 (PR [#3789](https://github.com/javaparser/javaparser/pull/3789) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump checkstyle from 8.45.1 to 10.5.0 (PR [#3788](https://github.com/javaparser/javaparser/pull/3788) by [@dependabot[bot]](https://github.com/apps/dependabot)) ### Fixed -* explicit use asString for performance (PR [#3821](https://github.com/javaparser/javaparser/pull/3821) - by [@dencat](https://github.com/dencat)) -* Fix: issue #3818 Wrong range calculation on ArrayType with multiple d… ( - PR [#3820](https://github.com/javaparser/javaparser/pull/3820) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: Lexical Preserving Fails To Remove Comment (PR [#3810](https://github.com/javaparser/javaparser/pull/3810) - by [@jlerbsc](https://github.com/jlerbsc)) +* explicit use asString for performance (PR [#3821](https://github.com/javaparser/javaparser/pull/3821) by [@dencat](https://github.com/dencat)) +* Fix: issue #3818 Wrong range calculation on ArrayType with multiple d… (PR [#3820](https://github.com/javaparser/javaparser/pull/3820) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: Lexical Preserving Fails To Remove Comment (PR [#3810](https://github.com/javaparser/javaparser/pull/3810) by [@jlerbsc](https://github.com/jlerbsc)) ### Developer Changes -* chore(deps): bump versions-maven-plugin from 2.13.0 to 2.14.0 ( - PR [#3794](https://github.com/javaparser/javaparser/pull/3794) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* Basic CheckStyle validation (PR [#3781](https://github.com/javaparser/javaparser/pull/3781) - by [@4everTheOne](https://github.com/4everTheOne)) +* chore(deps): bump versions-maven-plugin from 2.13.0 to 2.14.0 (PR [#3794](https://github.com/javaparser/javaparser/pull/3794) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* Basic CheckStyle validation (PR [#3781](https://github.com/javaparser/javaparser/pull/3781) by [@4everTheOne](https://github.com/4everTheOne)) ### Uncategorised -* Fix: 3412 Remove walkmod again (PR [#3806](https://github.com/javaparser/javaparser/pull/3806) - by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: 3412 Remove walkmod again (PR [#3806](https://github.com/javaparser/javaparser/pull/3806) by [@jlerbsc](https://github.com/jlerbsc)) ### :heart: Contributors @@ -541,58 +482,37 @@ Version 3.24.9 ### Highlights -* Remove "executable" bit from code files (PR [#3755](https://github.com/javaparser/javaparser/pull/3755) - by [@icmdaf](https://github.com/icmdaf)) +* Remove "executable" bit from code files (PR [#3755](https://github.com/javaparser/javaparser/pull/3755) by [@icmdaf](https://github.com/icmdaf)) ### Added -* Created TypeSolverBuilder (PR [#3421](https://github.com/javaparser/javaparser/pull/3421) - by [@4everTheOne](https://github.com/4everTheOne)) +* Created TypeSolverBuilder (PR [#3421](https://github.com/javaparser/javaparser/pull/3421) by [@4everTheOne](https://github.com/4everTheOne)) ### Changed -* Changing, in test classes, the initialization of the lexical preserva… ( - PR [#3779](https://github.com/javaparser/javaparser/pull/3779) by [@jlerbsc](https://github.com/jlerbsc)) -* chore(deps): bump maven-dependency-plugin from 3.3.0 to 3.4.0 ( - PR [#3770](https://github.com/javaparser/javaparser/pull/3770) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): bump maven-install-plugin from 3.0.1 to 3.1.0 ( - PR [#3756](https://github.com/javaparser/javaparser/pull/3756) - by [@dependabot[bot]](https://github.com/apps/dependabot)) +* Changing, in test classes, the initialization of the lexical preserva… (PR [#3779](https://github.com/javaparser/javaparser/pull/3779) by [@jlerbsc](https://github.com/jlerbsc)) +* chore(deps): bump maven-dependency-plugin from 3.3.0 to 3.4.0 (PR [#3770](https://github.com/javaparser/javaparser/pull/3770) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump maven-install-plugin from 3.0.1 to 3.1.0 (PR [#3756](https://github.com/javaparser/javaparser/pull/3756) by [@dependabot[bot]](https://github.com/apps/dependabot)) ### Fixed -* Fix: #3195 Resolved methods in outer classes not inferred correcly ( - PR [#3778](https://github.com/javaparser/javaparser/pull/3778) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: #3681 LineComment alwaysing trimming content (PR [#3777](https://github.com/javaparser/javaparser/pull/3777) - by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: #3773 Replacing nodes causes error in lexical preserving printer… ( - PR [#3776](https://github.com/javaparser/javaparser/pull/3776) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: #2517 Modifying some nodes with the lexicalPreservation enabled … ( - PR [#3775](https://github.com/javaparser/javaparser/pull/3775) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: #3725 JavaParserFacade var type in for-each loop cannot be resolved ( - PR [#3768](https://github.com/javaparser/javaparser/pull/3768) by [@abego](https://github.com/abego)) -* Fix: #3216 LexicalPreservingPrinter add Wrong indentation when removing comments ( - PR [#3766](https://github.com/javaparser/javaparser/pull/3766) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: #3472 Line comment removal causes IllegalStateException with LexicalPreservingPrinter ( - PR [#3765](https://github.com/javaparser/javaparser/pull/3765) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: #3441 LexicalPreservingPrinter prints wrong output with line com… ( - PR [#3764](https://github.com/javaparser/javaparser/pull/3764) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: #2137 ClassOrInterfaceDeclaration addMember using index ( - PR [#3763](https://github.com/javaparser/javaparser/pull/3763) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: #3761 Lexical preserving corrupts source when adding a modifier in first position ( - PR [#3762](https://github.com/javaparser/javaparser/pull/3762) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: #3693 Removing modifiers from method declaration results in loss… ( - PR [#3760](https://github.com/javaparser/javaparser/pull/3760) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: #3750 Lexical preserving corrupts source (PR [#3759](https://github.com/javaparser/javaparser/pull/3759) - by [@jlerbsc](https://github.com/jlerbsc)) -* Fix: Fix the indentation generated by the LexicalPreservingPrinter wh… ( - PR [#3758](https://github.com/javaparser/javaparser/pull/3758) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: #3195 Resolved methods in outer classes not inferred correcly (PR [#3778](https://github.com/javaparser/javaparser/pull/3778) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: #3681 LineComment alwaysing trimming content (PR [#3777](https://github.com/javaparser/javaparser/pull/3777) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: #3773 Replacing nodes causes error in lexical preserving printer… (PR [#3776](https://github.com/javaparser/javaparser/pull/3776) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: #2517 Modifying some nodes with the lexicalPreservation enabled … (PR [#3775](https://github.com/javaparser/javaparser/pull/3775) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: #3725 JavaParserFacade var type in for-each loop cannot be resolved (PR [#3768](https://github.com/javaparser/javaparser/pull/3768) by [@abego](https://github.com/abego)) +* Fix: #3216 LexicalPreservingPrinter add Wrong indentation when removing comments (PR [#3766](https://github.com/javaparser/javaparser/pull/3766) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: #3472 Line comment removal causes IllegalStateException with LexicalPreservingPrinter (PR [#3765](https://github.com/javaparser/javaparser/pull/3765) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: #3441 LexicalPreservingPrinter prints wrong output with line com… (PR [#3764](https://github.com/javaparser/javaparser/pull/3764) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: #2137 ClassOrInterfaceDeclaration addMember using index (PR [#3763](https://github.com/javaparser/javaparser/pull/3763) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: #3761 Lexical preserving corrupts source when adding a modifier in first position (PR [#3762](https://github.com/javaparser/javaparser/pull/3762) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: #3693 Removing modifiers from method declaration results in loss… (PR [#3760](https://github.com/javaparser/javaparser/pull/3760) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: #3750 Lexical preserving corrupts source (PR [#3759](https://github.com/javaparser/javaparser/pull/3759) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix: Fix the indentation generated by the LexicalPreservingPrinter wh… (PR [#3758](https://github.com/javaparser/javaparser/pull/3758) by [@jlerbsc](https://github.com/jlerbsc)) ### Security -* Remove "executable" bit from code files (PR [#3755](https://github.com/javaparser/javaparser/pull/3755) - by [@icmdaf](https://github.com/icmdaf)) +* Remove "executable" bit from code files (PR [#3755](https://github.com/javaparser/javaparser/pull/3755) by [@icmdaf](https://github.com/icmdaf)) ### :heart: Contributors @@ -610,53 +530,35 @@ Version 3.24.8 ### Added -* [Fixes #3099] Added ability to solve type with a list of expected type arguments ( - PR [#3213](https://github.com/javaparser/javaparser/pull/3213) by [@4everTheOne](https://github.com/4everTheOne)) -* [Suggestion] NonNull generator for parameters (PR [#3127](https://github.com/javaparser/javaparser/pull/3127) - by [@4everTheOne](https://github.com/4everTheOne)) +* [Fixes #3099] Added ability to solve type with a list of expected type arguments (PR [#3213](https://github.com/javaparser/javaparser/pull/3213) by [@4everTheOne](https://github.com/4everTheOne)) +* [Suggestion] NonNull generator for parameters (PR [#3127](https://github.com/javaparser/javaparser/pull/3127) by [@4everTheOne](https://github.com/4everTheOne)) ### Changed -* Updated workflow to only run one job per PR (PR [#3744](https://github.com/javaparser/javaparser/pull/3744) - by [@4everTheOne](https://github.com/4everTheOne)) -* Remove or comment system.out.println statement in unit tests ( - PR [#3741](https://github.com/javaparser/javaparser/pull/3741) by [@jlerbsc](https://github.com/jlerbsc)) -* Added Optional method in SymbolReference (PR [#3740](https://github.com/javaparser/javaparser/pull/3740) - by [@4everTheOne](https://github.com/4everTheOne)) -* Centralized management of symbol solver exceptions to prevent exception type Erasion ( - PR [#3731](https://github.com/javaparser/javaparser/pull/3731) by [@jlerbsc](https://github.com/jlerbsc)) +* Updated workflow to only run one job per PR (PR [#3744](https://github.com/javaparser/javaparser/pull/3744) by [@4everTheOne](https://github.com/4everTheOne)) +* Remove or comment system.out.println statement in unit tests (PR [#3741](https://github.com/javaparser/javaparser/pull/3741) by [@jlerbsc](https://github.com/jlerbsc)) +* Added Optional method in SymbolReference (PR [#3740](https://github.com/javaparser/javaparser/pull/3740) by [@4everTheOne](https://github.com/4everTheOne)) +* Centralized management of symbol solver exceptions to prevent exception type Erasion (PR [#3731](https://github.com/javaparser/javaparser/pull/3731) by [@jlerbsc](https://github.com/jlerbsc)) ### Fixed -* Fix issue #1827 Issue resolving a constructor of a class using generics ( - PR [#3752](https://github.com/javaparser/javaparser/pull/3752) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix issue #3728 ParseProblemException (PR [#3743](https://github.com/javaparser/javaparser/pull/3743) - by [@jlerbsc](https://github.com/jlerbsc)) -* Updated Badge for Build and Coverage (PR [#3742](https://github.com/javaparser/javaparser/pull/3742) - by [@4everTheOne](https://github.com/4everTheOne)) -* Position (PR [#3734](https://github.com/javaparser/javaparser/pull/3734) - by [@ameliagenova](https://github.com/ameliagenova)) -* Fix part of issue #3721 UnsupportedOperationException while trying to modify the type of a variable ( - PR [#3726](https://github.com/javaparser/javaparser/pull/3726) by [@jlerbsc](https://github.com/jlerbsc)) -* Implemented isReferenceType in `ResolvedTypeDeclaration` and isTypeParameter in `ResolvedTypeParameterDeclaration` ( - PR [#3206](https://github.com/javaparser/javaparser/pull/3206) by [@4everTheOne](https://github.com/4everTheOne)) +* Fix issue #1827 Issue resolving a constructor of a class using generics (PR [#3752](https://github.com/javaparser/javaparser/pull/3752) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue #3728 ParseProblemException (PR [#3743](https://github.com/javaparser/javaparser/pull/3743) by [@jlerbsc](https://github.com/jlerbsc)) +* Updated Badge for Build and Coverage (PR [#3742](https://github.com/javaparser/javaparser/pull/3742) by [@4everTheOne](https://github.com/4everTheOne)) +* Position (PR [#3734](https://github.com/javaparser/javaparser/pull/3734) by [@ameliagenova](https://github.com/ameliagenova)) +* Fix part of issue #3721 UnsupportedOperationException while trying to modify the type of a variable (PR [#3726](https://github.com/javaparser/javaparser/pull/3726) by [@jlerbsc](https://github.com/jlerbsc)) +* Implemented isReferenceType in `ResolvedTypeDeclaration` and isTypeParameter in `ResolvedTypeParameterDeclaration` (PR [#3206](https://github.com/javaparser/javaparser/pull/3206) by [@4everTheOne](https://github.com/4everTheOne)) ### Developer Changes -* chore(deps): bump versions-maven-plugin from 2.12.0 to 2.13.0 ( - PR [#3727](https://github.com/javaparser/javaparser/pull/3727) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* Fix maven wrapper not found in generator scripts (PR [#3717](https://github.com/javaparser/javaparser/pull/3717) - by [@PPazderski](https://github.com/PPazderski)) -* chore(deps): bump actions/checkout from 3.0.2 to 3.1.0 (PR [#3716](https://github.com/javaparser/javaparser/pull/3716) - by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): bump versions-maven-plugin from 2.12.0 to 2.13.0 (PR [#3727](https://github.com/javaparser/javaparser/pull/3727) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* Fix maven wrapper not found in generator scripts (PR [#3717](https://github.com/javaparser/javaparser/pull/3717) by [@PPazderski](https://github.com/PPazderski)) +* chore(deps): bump actions/checkout from 3.0.2 to 3.1.0 (PR [#3716](https://github.com/javaparser/javaparser/pull/3716) by [@dependabot[bot]](https://github.com/apps/dependabot)) ### Uncategorised -* Change issue 1945 test to paramaterized (PR [#3739](https://github.com/javaparser/javaparser/pull/3739) - by [@flanbino](https://github.com/flanbino)) -* More unit tests for JavaToken and CodeGenerationUtils (PR [#3736](https://github.com/javaparser/javaparser/pull/3736) - by [@ameliagenova](https://github.com/ameliagenova)) +* Change issue 1945 test to paramaterized (PR [#3739](https://github.com/javaparser/javaparser/pull/3739) by [@flanbino](https://github.com/flanbino)) +* More unit tests for JavaToken and CodeGenerationUtils (PR [#3736](https://github.com/javaparser/javaparser/pull/3736) by [@ameliagenova](https://github.com/ameliagenova)) ### :heart: Contributors @@ -668,41 +570,33 @@ Thank You to all contributors who worked on this release! * [@jlerbsc](https://github.com/jlerbsc) * [@4everTheOne](https://github.com/4everTheOne) + + Version 3.24.7 -------------- [issues resolved](https://github.com/javaparser/javaparser/milestone/191?closed=1) ### Highlights -* Issue #3415 (PR [#3722](https://github.com/javaparser/javaparser/pull/3722) - by [@nelson-ng-96](https://github.com/nelson-ng-96)) +* Issue #3415 (PR [#3722](https://github.com/javaparser/javaparser/pull/3722) by [@nelson-ng-96](https://github.com/nelson-ng-96)) ### Changed -* Refactoring - use of existing methods (PR [#3697](https://github.com/javaparser/javaparser/pull/3697) - by [@jlerbsc](https://github.com/jlerbsc)) -* Refactoring adding convenient methods to know if a DifferenceElement is added, removed or kept ( - PR [#3695](https://github.com/javaparser/javaparser/pull/3695) by [@jlerbsc](https://github.com/jlerbsc)) +* Refactoring - use of existing methods (PR [#3697](https://github.com/javaparser/javaparser/pull/3697) by [@jlerbsc](https://github.com/jlerbsc)) +* Refactoring adding convenient methods to know if a DifferenceElement is added, removed or kept (PR [#3695](https://github.com/javaparser/javaparser/pull/3695) by [@jlerbsc](https://github.com/jlerbsc)) ### Deprecated -* Issue #3415 (PR [#3722](https://github.com/javaparser/javaparser/pull/3722) - by [@nelson-ng-96](https://github.com/nelson-ng-96)) +* Issue #3415 (PR [#3722](https://github.com/javaparser/javaparser/pull/3722) by [@nelson-ng-96](https://github.com/nelson-ng-96)) ### Fixed -* Fix for ReflectionAnnotationDeclaration getClassName() (PR [#3723](https://github.com/javaparser/javaparser/pull/3723) - by [@Blackgen](https://github.com/Blackgen)) -* Fix some yield expressions not recognized (PR [#3714](https://github.com/javaparser/javaparser/pull/3714) - by [@PPazderski](https://github.com/PPazderski)) -* Accept final in instanceof pattern (PR [#3713](https://github.com/javaparser/javaparser/pull/3713) - by [@PPazderski](https://github.com/PPazderski)) -* [Fix] Avoid test failure due to line separator differences on windows host ( - PR [#3711](https://github.com/javaparser/javaparser/pull/3711) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix issue #3700 Removing last statement with LexicalPreservingPrinter results in loss of indendation ( - PR [#3704](https://github.com/javaparser/javaparser/pull/3704) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix issue #3678 Function accepts a configuration but it does not do anything ( - PR [#3692](https://github.com/javaparser/javaparser/pull/3692) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix for ReflectionAnnotationDeclaration getClassName() (PR [#3723](https://github.com/javaparser/javaparser/pull/3723) by [@Blackgen](https://github.com/Blackgen)) +* Fix some yield expressions not recognized (PR [#3714](https://github.com/javaparser/javaparser/pull/3714) by [@PPazderski](https://github.com/PPazderski)) +* Accept final in instanceof pattern (PR [#3713](https://github.com/javaparser/javaparser/pull/3713) by [@PPazderski](https://github.com/PPazderski)) +* [Fix] Avoid test failure due to line separator differences on windows host (PR [#3711](https://github.com/javaparser/javaparser/pull/3711) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue #3700 Removing last statement with LexicalPreservingPrinter results in loss of indendation (PR [#3704](https://github.com/javaparser/javaparser/pull/3704) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue #3678 Function accepts a configuration but it does not do anything (PR [#3692](https://github.com/javaparser/javaparser/pull/3692) by [@jlerbsc](https://github.com/jlerbsc)) ### :heart: Contributors @@ -720,112 +614,63 @@ Version 3.24.6 ### API or Behaviour Change -* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor - methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) +* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) ### Changed -* chore(deps): bump javassist from 3.29.0-GA to 3.29.1-GA ( - PR [#3661](https://github.com/javaparser/javaparser/pull/3661) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update junit5 monorepo to v5.9.0 (PR [#3645](https://github.com/javaparser/javaparser/pull/3645) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): bump maven-resources-plugin from 3.2.0 to 3.3.0 ( - PR [#3644](https://github.com/javaparser/javaparser/pull/3644) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* Flexible symbol resolution for declaration types (PR [#3634](https://github.com/javaparser/javaparser/pull/3634) - by [@Col-E](https://github.com/Col-E)) -* Minor refactoring to manage check in range and use hasRange method in class CommentsInserter ( - PR [#3587](https://github.com/javaparser/javaparser/pull/3587) by [@jlerbsc](https://github.com/jlerbsc)) -* Renaming PACKAGE_PRIVATE to NONE (this refers to the discussion in the issue #2242) ( - PR [#3573](https://github.com/javaparser/javaparser/pull/3573) by [@jlerbsc](https://github.com/jlerbsc)) +* chore(deps): bump javassist from 3.29.0-GA to 3.29.1-GA (PR [#3661](https://github.com/javaparser/javaparser/pull/3661) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update junit5 monorepo to v5.9.0 (PR [#3645](https://github.com/javaparser/javaparser/pull/3645) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): bump maven-resources-plugin from 3.2.0 to 3.3.0 (PR [#3644](https://github.com/javaparser/javaparser/pull/3644) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* Flexible symbol resolution for declaration types (PR [#3634](https://github.com/javaparser/javaparser/pull/3634) by [@Col-E](https://github.com/Col-E)) +* Minor refactoring to manage check in range and use hasRange method in class CommentsInserter (PR [#3587](https://github.com/javaparser/javaparser/pull/3587) by [@jlerbsc](https://github.com/jlerbsc)) +* Renaming PACKAGE_PRIVATE to NONE (this refers to the discussion in the issue #2242) (PR [#3573](https://github.com/javaparser/javaparser/pull/3573) by [@jlerbsc](https://github.com/jlerbsc)) ### Fixed * Fix typos (PR [#3675](https://github.com/javaparser/javaparser/pull/3675) by [@mernst](https://github.com/mernst)) -* Fix issue #3614 UnsolvedSymbolException when package declaration contains comment ( - PR [#3671](https://github.com/javaparser/javaparser/pull/3671) by [@jlerbsc](https://github.com/jlerbsc)) -* chore(deps): update dependency org.apache.maven.plugins:maven-install-plugin to v3.0.0 ( - PR [#3640](https://github.com/javaparser/javaparser/pull/3640) by [@renovate[bot]](https://github.com/apps/renovate)) -* Fix documentation of `JAVA_17` (PR [#3623](https://github.com/javaparser/javaparser/pull/3623) - by [@mernst](https://github.com/mernst)) -* Fix issue 3631 NameExpr.resolve() does not take end of inner block scopes into account ( - PR [#3613](https://github.com/javaparser/javaparser/pull/3613) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix issue #3588 Modifier is removed when removing an annotation ( - PR [#3600](https://github.com/javaparser/javaparser/pull/3600) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix lambda generic types that are always resolved to the first type param ( - PR [#3595](https://github.com/javaparser/javaparser/pull/3595) - by [@johannescoetzee](https://github.com/johannescoetzee)) -* Fix issue #3489 SourceRoot.tryToParse() fails if the root path ends with a directory that is not a java identifier ( - PR [#3551](https://github.com/javaparser/javaparser/pull/3551) by [@jlerbsc](https://github.com/jlerbsc)) -* Default pretty printer should print inner-class receiver parameters on constructors ( - PR [#3527](https://github.com/javaparser/javaparser/pull/3527) by [@kelloggm](https://github.com/kelloggm)) -* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor - methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) +* Fix issue #3614 UnsolvedSymbolException when package declaration contains comment (PR [#3671](https://github.com/javaparser/javaparser/pull/3671) by [@jlerbsc](https://github.com/jlerbsc)) +* chore(deps): update dependency org.apache.maven.plugins:maven-install-plugin to v3.0.0 (PR [#3640](https://github.com/javaparser/javaparser/pull/3640) by [@renovate[bot]](https://github.com/apps/renovate)) +* Fix documentation of `JAVA_17` (PR [#3623](https://github.com/javaparser/javaparser/pull/3623) by [@mernst](https://github.com/mernst)) +* Fix issue 3631 NameExpr.resolve() does not take end of inner block scopes into account (PR [#3613](https://github.com/javaparser/javaparser/pull/3613) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue #3588 Modifier is removed when removing an annotation (PR [#3600](https://github.com/javaparser/javaparser/pull/3600) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix lambda generic types that are always resolved to the first type param (PR [#3595](https://github.com/javaparser/javaparser/pull/3595) by [@johannescoetzee](https://github.com/johannescoetzee)) +* Fix issue #3489 SourceRoot.tryToParse() fails if the root path ends with a directory that is not a java identifier (PR [#3551](https://github.com/javaparser/javaparser/pull/3551) by [@jlerbsc](https://github.com/jlerbsc)) +* Default pretty printer should print inner-class receiver parameters on constructors (PR [#3527](https://github.com/javaparser/javaparser/pull/3527) by [@kelloggm](https://github.com/kelloggm)) +* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) ### Developer Changes -* chore(deps): update dependency org.apache.maven.plugins:maven-install-plugin to v3.0.1 ( - PR [#3641](https://github.com/javaparser/javaparser/pull/3641) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.0.0 ( - PR [#3639](https://github.com/javaparser/javaparser/pull/3639) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): bump exec-maven-plugin from 3.0.0 to 3.1.0 ( - PR [#3637](https://github.com/javaparser/javaparser/pull/3637) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update dependency com.squareup.okhttp3:okhttp to v4.10.0 ( - PR [#3612](https://github.com/javaparser/javaparser/pull/3612) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.3.1 ( - PR [#3607](https://github.com/javaparser/javaparser/pull/3607) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m7 ( - PR [#3605](https://github.com/javaparser/javaparser/pull/3605) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-inline to v4.6.1 ( - PR [#3601](https://github.com/javaparser/javaparser/pull/3601) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.3.0 ( - PR [#3598](https://github.com/javaparser/javaparser/pull/3598) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.assertj:assertj-core to v3.23.1 ( - PR [#3596](https://github.com/javaparser/javaparser/pull/3596) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.assertj:assertj-core to v3.23.0 ( - PR [#3594](https://github.com/javaparser/javaparser/pull/3594) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.13.0 ( - PR [#3593](https://github.com/javaparser/javaparser/pull/3593) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-inline to v4.6.0 ( - PR [#3589](https://github.com/javaparser/javaparser/pull/3589) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.codehaus.mojo:versions-maven-plugin to v2.11.0 ( - PR [#3585](https://github.com/javaparser/javaparser/pull/3585) by [@renovate[bot]](https://github.com/apps/renovate)) -* fix(deps): update dependency org.javassist:javassist to v3.29.0-ga ( - PR [#3581](https://github.com/javaparser/javaparser/pull/3581) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.jbehave:jbehave-core to v4.8.3 ( - PR [#3574](https://github.com/javaparser/javaparser/pull/3574) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): bump codecov/codecov-action from 3.0.0 to 3.1.0 ( - PR [#3567](https://github.com/javaparser/javaparser/pull/3567) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update actions/checkout action to v3.0.2 (PR [#3565](https://github.com/javaparser/javaparser/pull/3565) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-inline to v4.5.1 ( - PR [#3564](https://github.com/javaparser/javaparser/pull/3564) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-site-plugin to v3.12.0 ( - PR [#3561](https://github.com/javaparser/javaparser/pull/3561) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.0 ( - PR [#3560](https://github.com/javaparser/javaparser/pull/3560) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-inline to v4.5.0 ( - PR [#3557](https://github.com/javaparser/javaparser/pull/3557) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update actions/checkout action to v3.0.1 (PR [#3555](https://github.com/javaparser/javaparser/pull/3555) - by [@renovate[bot]](https://github.com/apps/renovate)) -* official Apache Maven wrapper (PR [#3552](https://github.com/javaparser/javaparser/pull/3552) - by [@sullis](https://github.com/sullis)) -* chore(deps): update codecov/codecov-action action to v3 ( - PR [#3545](https://github.com/javaparser/javaparser/pull/3545) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.8 ( - PR [#3544](https://github.com/javaparser/javaparser/pull/3544) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.2.0 ( - PR [#3542](https://github.com/javaparser/javaparser/pull/3542) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m6 ( - PR [#3541](https://github.com/javaparser/javaparser/pull/3541) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-install-plugin to v3.0.1 (PR [#3641](https://github.com/javaparser/javaparser/pull/3641) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.0.0 (PR [#3639](https://github.com/javaparser/javaparser/pull/3639) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): bump exec-maven-plugin from 3.0.0 to 3.1.0 (PR [#3637](https://github.com/javaparser/javaparser/pull/3637) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update dependency com.squareup.okhttp3:okhttp to v4.10.0 (PR [#3612](https://github.com/javaparser/javaparser/pull/3612) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.3.1 (PR [#3607](https://github.com/javaparser/javaparser/pull/3607) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m7 (PR [#3605](https://github.com/javaparser/javaparser/pull/3605) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-inline to v4.6.1 (PR [#3601](https://github.com/javaparser/javaparser/pull/3601) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.3.0 (PR [#3598](https://github.com/javaparser/javaparser/pull/3598) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.assertj:assertj-core to v3.23.1 (PR [#3596](https://github.com/javaparser/javaparser/pull/3596) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.assertj:assertj-core to v3.23.0 (PR [#3594](https://github.com/javaparser/javaparser/pull/3594) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.13.0 (PR [#3593](https://github.com/javaparser/javaparser/pull/3593) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-inline to v4.6.0 (PR [#3589](https://github.com/javaparser/javaparser/pull/3589) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.codehaus.mojo:versions-maven-plugin to v2.11.0 (PR [#3585](https://github.com/javaparser/javaparser/pull/3585) by [@renovate[bot]](https://github.com/apps/renovate)) +* fix(deps): update dependency org.javassist:javassist to v3.29.0-ga (PR [#3581](https://github.com/javaparser/javaparser/pull/3581) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.jbehave:jbehave-core to v4.8.3 (PR [#3574](https://github.com/javaparser/javaparser/pull/3574) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): bump codecov/codecov-action from 3.0.0 to 3.1.0 (PR [#3567](https://github.com/javaparser/javaparser/pull/3567) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update actions/checkout action to v3.0.2 (PR [#3565](https://github.com/javaparser/javaparser/pull/3565) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-inline to v4.5.1 (PR [#3564](https://github.com/javaparser/javaparser/pull/3564) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-site-plugin to v3.12.0 (PR [#3561](https://github.com/javaparser/javaparser/pull/3561) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.0 (PR [#3560](https://github.com/javaparser/javaparser/pull/3560) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-inline to v4.5.0 (PR [#3557](https://github.com/javaparser/javaparser/pull/3557) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update actions/checkout action to v3.0.1 (PR [#3555](https://github.com/javaparser/javaparser/pull/3555) by [@renovate[bot]](https://github.com/apps/renovate)) +* official Apache Maven wrapper (PR [#3552](https://github.com/javaparser/javaparser/pull/3552) by [@sullis](https://github.com/sullis)) +* chore(deps): update codecov/codecov-action action to v3 (PR [#3545](https://github.com/javaparser/javaparser/pull/3545) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.8 (PR [#3544](https://github.com/javaparser/javaparser/pull/3544) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.2.0 (PR [#3542](https://github.com/javaparser/javaparser/pull/3542) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m6 (PR [#3541](https://github.com/javaparser/javaparser/pull/3541) by [@renovate[bot]](https://github.com/apps/renovate)) ### Uncategorised -* Implemented JavaParserTypeVariableDeclaration getAncestors method ( - PR [#3060](https://github.com/javaparser/javaparser/pull/3060) by [@4everTheOne](https://github.com/4everTheOne)) +* Implemented JavaParserTypeVariableDeclaration getAncestors method (PR [#3060](https://github.com/javaparser/javaparser/pull/3060) by [@4everTheOne](https://github.com/4everTheOne)) ### :heart: Contributors @@ -849,106 +694,60 @@ GPG Fingerprint: `253E8E4C6FB28D11748115C1249DEE8E2C07A0A2` ### API or Behaviour Change -* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor - methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) +* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) ### Changed -* chore(deps): update junit5 monorepo to v5.9.0 (PR [#3645](https://github.com/javaparser/javaparser/pull/3645) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): bump maven-resources-plugin from 3.2.0 to 3.3.0 ( - PR [#3644](https://github.com/javaparser/javaparser/pull/3644) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* Flexible symbol resolution for declaration types (PR [#3634](https://github.com/javaparser/javaparser/pull/3634) - by [@Col-E](https://github.com/Col-E)) -* Minor refactoring to manage check in range and use hasRange method in class CommentsInserter ( - PR [#3587](https://github.com/javaparser/javaparser/pull/3587) by [@jlerbsc](https://github.com/jlerbsc)) -* Renaming PACKAGE_PRIVATE to NONE (this refers to the discussion in the issue #2242) ( - PR [#3573](https://github.com/javaparser/javaparser/pull/3573) by [@jlerbsc](https://github.com/jlerbsc)) +* chore(deps): update junit5 monorepo to v5.9.0 (PR [#3645](https://github.com/javaparser/javaparser/pull/3645) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): bump maven-resources-plugin from 3.2.0 to 3.3.0 (PR [#3644](https://github.com/javaparser/javaparser/pull/3644) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* Flexible symbol resolution for declaration types (PR [#3634](https://github.com/javaparser/javaparser/pull/3634) by [@Col-E](https://github.com/Col-E)) +* Minor refactoring to manage check in range and use hasRange method in class CommentsInserter (PR [#3587](https://github.com/javaparser/javaparser/pull/3587) by [@jlerbsc](https://github.com/jlerbsc)) +* Renaming PACKAGE_PRIVATE to NONE (this refers to the discussion in the issue #2242) (PR [#3573](https://github.com/javaparser/javaparser/pull/3573) by [@jlerbsc](https://github.com/jlerbsc)) ### Fixed -* chore(deps): update dependency org.apache.maven.plugins:maven-install-plugin to v3.0.0 ( - PR [#3640](https://github.com/javaparser/javaparser/pull/3640) by [@renovate[bot]](https://github.com/apps/renovate)) -* Fix documentation of `JAVA_17` (PR [#3623](https://github.com/javaparser/javaparser/pull/3623) - by [@mernst](https://github.com/mernst)) -* Fix issue 3631 NameExpr.resolve() does not take end of inner block scopes into account ( - PR [#3613](https://github.com/javaparser/javaparser/pull/3613) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix issue #3588 Modifier is removed when removing an annotation ( - PR [#3600](https://github.com/javaparser/javaparser/pull/3600) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix lambda generic types that are always resolved to the first type param ( - PR [#3595](https://github.com/javaparser/javaparser/pull/3595) - by [@johannescoetzee](https://github.com/johannescoetzee)) -* Fix issue #3489 SourceRoot.tryToParse() fails if the root path ends with a directory that is not a java identifier ( - PR [#3551](https://github.com/javaparser/javaparser/pull/3551) by [@jlerbsc](https://github.com/jlerbsc)) -* Default pretty printer should print inner-class receiver parameters on constructors ( - PR [#3527](https://github.com/javaparser/javaparser/pull/3527) by [@kelloggm](https://github.com/kelloggm)) -* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor - methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) +* chore(deps): update dependency org.apache.maven.plugins:maven-install-plugin to v3.0.0 (PR [#3640](https://github.com/javaparser/javaparser/pull/3640) by [@renovate[bot]](https://github.com/apps/renovate)) +* Fix documentation of `JAVA_17` (PR [#3623](https://github.com/javaparser/javaparser/pull/3623) by [@mernst](https://github.com/mernst)) +* Fix issue 3631 NameExpr.resolve() does not take end of inner block scopes into account (PR [#3613](https://github.com/javaparser/javaparser/pull/3613) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue #3588 Modifier is removed when removing an annotation (PR [#3600](https://github.com/javaparser/javaparser/pull/3600) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix lambda generic types that are always resolved to the first type param (PR [#3595](https://github.com/javaparser/javaparser/pull/3595) by [@johannescoetzee](https://github.com/johannescoetzee)) +* Fix issue #3489 SourceRoot.tryToParse() fails if the root path ends with a directory that is not a java identifier (PR [#3551](https://github.com/javaparser/javaparser/pull/3551) by [@jlerbsc](https://github.com/jlerbsc)) +* Default pretty printer should print inner-class receiver parameters on constructors (PR [#3527](https://github.com/javaparser/javaparser/pull/3527) by [@kelloggm](https://github.com/kelloggm)) +* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) ### Developer Changes -* chore(deps): update dependency org.apache.maven.plugins:maven-install-plugin to v3.0.1 ( - PR [#3641](https://github.com/javaparser/javaparser/pull/3641) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.0.0 ( - PR [#3639](https://github.com/javaparser/javaparser/pull/3639) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): bump exec-maven-plugin from 3.0.0 to 3.1.0 ( - PR [#3637](https://github.com/javaparser/javaparser/pull/3637) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update dependency com.squareup.okhttp3:okhttp to v4.10.0 ( - PR [#3612](https://github.com/javaparser/javaparser/pull/3612) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.3.1 ( - PR [#3607](https://github.com/javaparser/javaparser/pull/3607) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m7 ( - PR [#3605](https://github.com/javaparser/javaparser/pull/3605) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-inline to v4.6.1 ( - PR [#3601](https://github.com/javaparser/javaparser/pull/3601) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.3.0 ( - PR [#3598](https://github.com/javaparser/javaparser/pull/3598) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.assertj:assertj-core to v3.23.1 ( - PR [#3596](https://github.com/javaparser/javaparser/pull/3596) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.assertj:assertj-core to v3.23.0 ( - PR [#3594](https://github.com/javaparser/javaparser/pull/3594) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.13.0 ( - PR [#3593](https://github.com/javaparser/javaparser/pull/3593) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-inline to v4.6.0 ( - PR [#3589](https://github.com/javaparser/javaparser/pull/3589) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.codehaus.mojo:versions-maven-plugin to v2.11.0 ( - PR [#3585](https://github.com/javaparser/javaparser/pull/3585) by [@renovate[bot]](https://github.com/apps/renovate)) -* fix(deps): update dependency org.javassist:javassist to v3.29.0-ga ( - PR [#3581](https://github.com/javaparser/javaparser/pull/3581) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.jbehave:jbehave-core to v4.8.3 ( - PR [#3574](https://github.com/javaparser/javaparser/pull/3574) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): bump codecov/codecov-action from 3.0.0 to 3.1.0 ( - PR [#3567](https://github.com/javaparser/javaparser/pull/3567) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update actions/checkout action to v3.0.2 (PR [#3565](https://github.com/javaparser/javaparser/pull/3565) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-inline to v4.5.1 ( - PR [#3564](https://github.com/javaparser/javaparser/pull/3564) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-site-plugin to v3.12.0 ( - PR [#3561](https://github.com/javaparser/javaparser/pull/3561) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.0 ( - PR [#3560](https://github.com/javaparser/javaparser/pull/3560) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-inline to v4.5.0 ( - PR [#3557](https://github.com/javaparser/javaparser/pull/3557) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update actions/checkout action to v3.0.1 (PR [#3555](https://github.com/javaparser/javaparser/pull/3555) - by [@renovate[bot]](https://github.com/apps/renovate)) -* official Apache Maven wrapper (PR [#3552](https://github.com/javaparser/javaparser/pull/3552) - by [@sullis](https://github.com/sullis)) -* chore(deps): update codecov/codecov-action action to v3 ( - PR [#3545](https://github.com/javaparser/javaparser/pull/3545) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.8 ( - PR [#3544](https://github.com/javaparser/javaparser/pull/3544) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.2.0 ( - PR [#3542](https://github.com/javaparser/javaparser/pull/3542) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m6 ( - PR [#3541](https://github.com/javaparser/javaparser/pull/3541) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-install-plugin to v3.0.1 (PR [#3641](https://github.com/javaparser/javaparser/pull/3641) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.0.0 (PR [#3639](https://github.com/javaparser/javaparser/pull/3639) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): bump exec-maven-plugin from 3.0.0 to 3.1.0 (PR [#3637](https://github.com/javaparser/javaparser/pull/3637) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update dependency com.squareup.okhttp3:okhttp to v4.10.0 (PR [#3612](https://github.com/javaparser/javaparser/pull/3612) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.3.1 (PR [#3607](https://github.com/javaparser/javaparser/pull/3607) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m7 (PR [#3605](https://github.com/javaparser/javaparser/pull/3605) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-inline to v4.6.1 (PR [#3601](https://github.com/javaparser/javaparser/pull/3601) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.3.0 (PR [#3598](https://github.com/javaparser/javaparser/pull/3598) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.assertj:assertj-core to v3.23.1 (PR [#3596](https://github.com/javaparser/javaparser/pull/3596) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.assertj:assertj-core to v3.23.0 (PR [#3594](https://github.com/javaparser/javaparser/pull/3594) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.13.0 (PR [#3593](https://github.com/javaparser/javaparser/pull/3593) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-inline to v4.6.0 (PR [#3589](https://github.com/javaparser/javaparser/pull/3589) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.codehaus.mojo:versions-maven-plugin to v2.11.0 (PR [#3585](https://github.com/javaparser/javaparser/pull/3585) by [@renovate[bot]](https://github.com/apps/renovate)) +* fix(deps): update dependency org.javassist:javassist to v3.29.0-ga (PR [#3581](https://github.com/javaparser/javaparser/pull/3581) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.jbehave:jbehave-core to v4.8.3 (PR [#3574](https://github.com/javaparser/javaparser/pull/3574) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): bump codecov/codecov-action from 3.0.0 to 3.1.0 (PR [#3567](https://github.com/javaparser/javaparser/pull/3567) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update actions/checkout action to v3.0.2 (PR [#3565](https://github.com/javaparser/javaparser/pull/3565) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-inline to v4.5.1 (PR [#3564](https://github.com/javaparser/javaparser/pull/3564) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-site-plugin to v3.12.0 (PR [#3561](https://github.com/javaparser/javaparser/pull/3561) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.0 (PR [#3560](https://github.com/javaparser/javaparser/pull/3560) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-inline to v4.5.0 (PR [#3557](https://github.com/javaparser/javaparser/pull/3557) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update actions/checkout action to v3.0.1 (PR [#3555](https://github.com/javaparser/javaparser/pull/3555) by [@renovate[bot]](https://github.com/apps/renovate)) +* official Apache Maven wrapper (PR [#3552](https://github.com/javaparser/javaparser/pull/3552) by [@sullis](https://github.com/sullis)) +* chore(deps): update codecov/codecov-action action to v3 (PR [#3545](https://github.com/javaparser/javaparser/pull/3545) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.8 (PR [#3544](https://github.com/javaparser/javaparser/pull/3544) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.2.0 (PR [#3542](https://github.com/javaparser/javaparser/pull/3542) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m6 (PR [#3541](https://github.com/javaparser/javaparser/pull/3541) by [@renovate[bot]](https://github.com/apps/renovate)) ### Uncategorised -* Implemented JavaParserTypeVariableDeclaration getAncestors method ( - PR [#3060](https://github.com/javaparser/javaparser/pull/3060) by [@4everTheOne](https://github.com/4everTheOne)) +* Implemented JavaParserTypeVariableDeclaration getAncestors method (PR [#3060](https://github.com/javaparser/javaparser/pull/3060) by [@4everTheOne](https://github.com/4everTheOne)) ### :heart: Contributors @@ -970,48 +769,31 @@ Version 3.24.3 ### API or Behaviour Change -* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor - methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) +* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) ### Changed -* Minor refactoring to manage check in range and use hasRange method in class CommentsInserter ( - PR [#3587](https://github.com/javaparser/javaparser/pull/3587) by [@jlerbsc](https://github.com/jlerbsc)) -* Renaming PACKAGE_PRIVATE to NONE (this refers to the discussion in the issue #2242) ( - PR [#3573](https://github.com/javaparser/javaparser/pull/3573) by [@jlerbsc](https://github.com/jlerbsc)) +* Minor refactoring to manage check in range and use hasRange method in class CommentsInserter (PR [#3587](https://github.com/javaparser/javaparser/pull/3587) by [@jlerbsc](https://github.com/jlerbsc)) +* Renaming PACKAGE_PRIVATE to NONE (this refers to the discussion in the issue #2242) (PR [#3573](https://github.com/javaparser/javaparser/pull/3573) by [@jlerbsc](https://github.com/jlerbsc)) ### Fixed -* Fix documentation of `JAVA_17` (PR [#3623](https://github.com/javaparser/javaparser/pull/3623) - by [@mernst](https://github.com/mernst)) -* Fix issue 3631 NameExpr.resolve() does not take end of inner block scopes into account ( - PR [#3613](https://github.com/javaparser/javaparser/pull/3613) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix issue #3588 Modifier is removed when removing an annotation ( - PR [#3600](https://github.com/javaparser/javaparser/pull/3600) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix lambda generic types that are always resolved to the first type param ( - PR [#3595](https://github.com/javaparser/javaparser/pull/3595) - by [@johannescoetzee](https://github.com/johannescoetzee)) -* Fix issue #3489 SourceRoot.tryToParse() fails if the root path ends with a directory that is not a java identifier ( - PR [#3551](https://github.com/javaparser/javaparser/pull/3551) by [@jlerbsc](https://github.com/jlerbsc)) -* Default pretty printer should print inner-class receiver parameters on constructors ( - PR [#3527](https://github.com/javaparser/javaparser/pull/3527) by [@kelloggm](https://github.com/kelloggm)) -* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor - methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) +* Fix documentation of `JAVA_17` (PR [#3623](https://github.com/javaparser/javaparser/pull/3623) by [@mernst](https://github.com/mernst)) +* Fix issue 3631 NameExpr.resolve() does not take end of inner block scopes into account (PR [#3613](https://github.com/javaparser/javaparser/pull/3613) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue #3588 Modifier is removed when removing an annotation (PR [#3600](https://github.com/javaparser/javaparser/pull/3600) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix lambda generic types that are always resolved to the first type param (PR [#3595](https://github.com/javaparser/javaparser/pull/3595) by [@johannescoetzee](https://github.com/johannescoetzee)) +* Fix issue #3489 SourceRoot.tryToParse() fails if the root path ends with a directory that is not a java identifier (PR [#3551](https://github.com/javaparser/javaparser/pull/3551) by [@jlerbsc](https://github.com/jlerbsc)) +* Default pretty printer should print inner-class receiver parameters on constructors (PR [#3527](https://github.com/javaparser/javaparser/pull/3527) by [@kelloggm](https://github.com/kelloggm)) +* Issue #3405 thread safety of pre/postprocessors (incl. breaking change to `Processor` with pre/post processor methods). (PR [#3515](https://github.com/javaparser/javaparser/pull/3515) by [@matozoid](https://github.com/matozoid)) ### Developer Changes -* chore(deps): update actions/checkout action to v3.0.1 (PR [#3555](https://github.com/javaparser/javaparser/pull/3555) - by [@renovate[bot]](https://github.com/apps/renovate)) -* official Apache Maven wrapper (PR [#3552](https://github.com/javaparser/javaparser/pull/3552) - by [@sullis](https://github.com/sullis)) -* chore(deps): update codecov/codecov-action action to v3 ( - PR [#3545](https://github.com/javaparser/javaparser/pull/3545) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.8 ( - PR [#3544](https://github.com/javaparser/javaparser/pull/3544) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.2.0 ( - PR [#3542](https://github.com/javaparser/javaparser/pull/3542) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m6 ( - PR [#3541](https://github.com/javaparser/javaparser/pull/3541) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update actions/checkout action to v3.0.1 (PR [#3555](https://github.com/javaparser/javaparser/pull/3555) by [@renovate[bot]](https://github.com/apps/renovate)) +* official Apache Maven wrapper (PR [#3552](https://github.com/javaparser/javaparser/pull/3552) by [@sullis](https://github.com/sullis)) +* chore(deps): update codecov/codecov-action action to v3 (PR [#3545](https://github.com/javaparser/javaparser/pull/3545) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.8 (PR [#3544](https://github.com/javaparser/javaparser/pull/3544) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.2.0 (PR [#3542](https://github.com/javaparser/javaparser/pull/3542) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m6 (PR [#3541](https://github.com/javaparser/javaparser/pull/3541) by [@renovate[bot]](https://github.com/apps/renovate)) ### :heart: Contributors @@ -1032,41 +814,28 @@ GPG Fingerprint: `253E8E4C6FB28D11748115C1249DEE8E2C07A0A2` ### Added -* Improve unit test for BlockStmtContextResolutionTest (PR [#3530](https://github.com/javaparser/javaparser/pull/3530) - by [@jlerbsc](https://github.com/jlerbsc)) +* Improve unit test for BlockStmtContextResolutionTest (PR [#3530](https://github.com/javaparser/javaparser/pull/3530) by [@jlerbsc](https://github.com/jlerbsc)) ### Changed -* Improve Conditional Operator resolution [JLS 15.25] (PR [#3522](https://github.com/javaparser/javaparser/pull/3522) - by [@jlerbsc](https://github.com/jlerbsc)) +* Improve Conditional Operator resolution [JLS 15.25] (PR [#3522](https://github.com/javaparser/javaparser/pull/3522) by [@jlerbsc](https://github.com/jlerbsc)) ### Fixed -* Fix issue #3526 Variable or FieldDeclaration is not resolved correctl… ( - PR [#3529](https://github.com/javaparser/javaparser/pull/3529) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue #3526 Variable or FieldDeclaration is not resolved correctl… (PR [#3529](https://github.com/javaparser/javaparser/pull/3529) by [@jlerbsc](https://github.com/jlerbsc)) ### Developer Changes -* Bump jbehave-junit-runner from 2.3.0 to 2.3.1 (PR [#3531](https://github.com/javaparser/javaparser/pull/3531) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* Bump actions/cache from 2.1.7 to 3 (PR [#3525](https://github.com/javaparser/javaparser/pull/3525) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* Update JDK 18 and add JDK 19 feature details to FEATURES.md ( - PR [#3521](https://github.com/javaparser/javaparser/pull/3521) by [@MysterAitch](https://github.com/MysterAitch)) -* Bump maven-dependency-plugin from 3.2.0 to 3.3.0 (PR [#3514](https://github.com/javaparser/javaparser/pull/3514) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.3.0 ( - PR [#3512](https://github.com/javaparser/javaparser/pull/3512) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.10.1 ( - PR [#3511](https://github.com/javaparser/javaparser/pull/3511) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update actions/checkout action (PR [#3508](https://github.com/javaparser/javaparser/pull/3508) - by [@renovate[bot]](https://github.com/apps/renovate)) -* Bump bnd-maven-plugin from 6.1.0 to 6.2.0 (PR [#3505](https://github.com/javaparser/javaparser/pull/3505) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.2.0 ( - PR [#3503](https://github.com/javaparser/javaparser/pull/3503) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update actions/setup-java action to v3 (PR [#3502](https://github.com/javaparser/javaparser/pull/3502) - by [@renovate[bot]](https://github.com/apps/renovate)) +* Bump jbehave-junit-runner from 2.3.0 to 2.3.1 (PR [#3531](https://github.com/javaparser/javaparser/pull/3531) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* Bump actions/cache from 2.1.7 to 3 (PR [#3525](https://github.com/javaparser/javaparser/pull/3525) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* Update JDK 18 and add JDK 19 feature details to FEATURES.md (PR [#3521](https://github.com/javaparser/javaparser/pull/3521) by [@MysterAitch](https://github.com/MysterAitch)) +* Bump maven-dependency-plugin from 3.2.0 to 3.3.0 (PR [#3514](https://github.com/javaparser/javaparser/pull/3514) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.3.0 (PR [#3512](https://github.com/javaparser/javaparser/pull/3512) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.10.1 (PR [#3511](https://github.com/javaparser/javaparser/pull/3511) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update actions/checkout action (PR [#3508](https://github.com/javaparser/javaparser/pull/3508) by [@renovate[bot]](https://github.com/apps/renovate)) +* Bump bnd-maven-plugin from 6.1.0 to 6.2.0 (PR [#3505](https://github.com/javaparser/javaparser/pull/3505) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.2.0 (PR [#3503](https://github.com/javaparser/javaparser/pull/3503) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update actions/setup-java action to v3 (PR [#3502](https://github.com/javaparser/javaparser/pull/3502) by [@renovate[bot]](https://github.com/apps/renovate)) ### :heart: Contributors @@ -1082,71 +851,41 @@ Version 3.24.1 ### Fixed -* Adding constructor descriptor (PR [#3499](https://github.com/javaparser/javaparser/pull/3499) - by [@kanghj](https://github.com/kanghj)) -* Fix issue #3491 Method has a multidimensional arrays argument in jar … ( - PR [#3493](https://github.com/javaparser/javaparser/pull/3493) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix issue #3218 GetSourceRoots() does not return all source roots ( - PR [#3485](https://github.com/javaparser/javaparser/pull/3485) by [@jlerbsc](https://github.com/jlerbsc)) -* Bug in ArrayCreationExpr constructors (PR [#3473](https://github.com/javaparser/javaparser/pull/3473) - by [@sergekukharev](https://github.com/sergekukharev)) -* Fix issue 3440 Removing a node with LexicalPreservingPrinter causes UnsupportedOperationException ( - PR [#3449](https://github.com/javaparser/javaparser/pull/3449) by [@jlerbsc](https://github.com/jlerbsc)) +* Adding constructor descriptor (PR [#3499](https://github.com/javaparser/javaparser/pull/3499) by [@kanghj](https://github.com/kanghj)) +* Fix issue #3491 Method has a multidimensional arrays argument in jar … (PR [#3493](https://github.com/javaparser/javaparser/pull/3493) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue #3218 GetSourceRoots() does not return all source roots (PR [#3485](https://github.com/javaparser/javaparser/pull/3485) by [@jlerbsc](https://github.com/jlerbsc)) +* Bug in ArrayCreationExpr constructors (PR [#3473](https://github.com/javaparser/javaparser/pull/3473) by [@sergekukharev](https://github.com/sergekukharev)) +* Fix issue 3440 Removing a node with LexicalPreservingPrinter causes UnsupportedOperationException (PR [#3449](https://github.com/javaparser/javaparser/pull/3449) by [@jlerbsc](https://github.com/jlerbsc)) ### Developer Changes -* chore(deps): update dependency org.codehaus.mojo:versions-maven-plugin to v2.10.0 ( - PR [#3517](https://github.com/javaparser/javaparser/pull/3517) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v4.4.0 ( - PR [#3510](https://github.com/javaparser/javaparser/pull/3510) by [@renovate[bot]](https://github.com/apps/renovate)) -* fix(deps): update dependency com.google.guava:guava to v31.1-jre ( - PR [#3507](https://github.com/javaparser/javaparser/pull/3507) by [@renovate[bot]](https://github.com/apps/renovate)) -* Bump guava from 31.0.1-jre to 31.1-jre (PR [#3506](https://github.com/javaparser/javaparser/pull/3506) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update dependency org.apache.maven.plugins:maven-site-plugin to v3.11.0 ( - PR [#3496](https://github.com/javaparser/javaparser/pull/3496) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.10.0 ( - PR [#3494](https://github.com/javaparser/javaparser/pull/3494) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.2 ( - PR [#3492](https://github.com/javaparser/javaparser/pull/3492) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v4.3.1 ( - PR [#3481](https://github.com/javaparser/javaparser/pull/3481) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v4.3.0 ( - PR [#3479](https://github.com/javaparser/javaparser/pull/3479) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.codehaus.mojo:versions-maven-plugin to v2.9.0 ( - PR [#3477](https://github.com/javaparser/javaparser/pull/3477) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-jar-plugin to v3.2.2 ( - PR [#3470](https://github.com/javaparser/javaparser/pull/3470) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.9.0 ( - PR [#3469](https://github.com/javaparser/javaparser/pull/3469) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency com.helger.maven:ph-javacc-maven-plugin to v4.1.5 ( - PR [#3468](https://github.com/javaparser/javaparser/pull/3468) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency com.github.javaparser:javaparser-parent to v3 ( - PR [#3465](https://github.com/javaparser/javaparser/pull/3465) by [@renovate[bot]](https://github.com/apps/renovate)) -* Partial revert of #3462 (removed GitHub Action) (PR [#3464](https://github.com/javaparser/javaparser/pull/3464) - by [@MysterAitch](https://github.com/MysterAitch)) -* Updated release script to be non-interactive, and added option to use a manually-triggered GitHub Action to build a - release (PR [#3462](https://github.com/javaparser/javaparser/pull/3462) - by [@MysterAitch](https://github.com/MysterAitch)) -* chore(deps): update dependency org.apache.maven.plugins:maven-jar-plugin to v3.2.1 ( - PR [#3459](https://github.com/javaparser/javaparser/pull/3459) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.3.0 ( - PR [#3458](https://github.com/javaparser/javaparser/pull/3458) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.assertj:assertj-core to v3.22.0 ( - PR [#3457](https://github.com/javaparser/javaparser/pull/3457) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.12.2 ( - PR [#3456](https://github.com/javaparser/javaparser/pull/3456) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.0.0-m2 ( - PR [#3453](https://github.com/javaparser/javaparser/pull/3453) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.codehaus.mojo:versions-maven-plugin to v2.10.0 (PR [#3517](https://github.com/javaparser/javaparser/pull/3517) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v4.4.0 (PR [#3510](https://github.com/javaparser/javaparser/pull/3510) by [@renovate[bot]](https://github.com/apps/renovate)) +* fix(deps): update dependency com.google.guava:guava to v31.1-jre (PR [#3507](https://github.com/javaparser/javaparser/pull/3507) by [@renovate[bot]](https://github.com/apps/renovate)) +* Bump guava from 31.0.1-jre to 31.1-jre (PR [#3506](https://github.com/javaparser/javaparser/pull/3506) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update dependency org.apache.maven.plugins:maven-site-plugin to v3.11.0 (PR [#3496](https://github.com/javaparser/javaparser/pull/3496) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.10.0 (PR [#3494](https://github.com/javaparser/javaparser/pull/3494) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.2 (PR [#3492](https://github.com/javaparser/javaparser/pull/3492) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v4.3.1 (PR [#3481](https://github.com/javaparser/javaparser/pull/3481) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v4.3.0 (PR [#3479](https://github.com/javaparser/javaparser/pull/3479) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.codehaus.mojo:versions-maven-plugin to v2.9.0 (PR [#3477](https://github.com/javaparser/javaparser/pull/3477) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-jar-plugin to v3.2.2 (PR [#3470](https://github.com/javaparser/javaparser/pull/3470) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.9.0 (PR [#3469](https://github.com/javaparser/javaparser/pull/3469) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency com.helger.maven:ph-javacc-maven-plugin to v4.1.5 (PR [#3468](https://github.com/javaparser/javaparser/pull/3468) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency com.github.javaparser:javaparser-parent to v3 (PR [#3465](https://github.com/javaparser/javaparser/pull/3465) by [@renovate[bot]](https://github.com/apps/renovate)) +* Partial revert of #3462 (removed GitHub Action) (PR [#3464](https://github.com/javaparser/javaparser/pull/3464) by [@MysterAitch](https://github.com/MysterAitch)) +* Updated release script to be non-interactive, and added option to use a manually-triggered GitHub Action to build a release (PR [#3462](https://github.com/javaparser/javaparser/pull/3462) by [@MysterAitch](https://github.com/MysterAitch)) +* chore(deps): update dependency org.apache.maven.plugins:maven-jar-plugin to v3.2.1 (PR [#3459](https://github.com/javaparser/javaparser/pull/3459) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.3.0 (PR [#3458](https://github.com/javaparser/javaparser/pull/3458) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.assertj:assertj-core to v3.22.0 (PR [#3457](https://github.com/javaparser/javaparser/pull/3457) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.12.2 (PR [#3456](https://github.com/javaparser/javaparser/pull/3456) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.0.0-m2 (PR [#3453](https://github.com/javaparser/javaparser/pull/3453) by [@renovate[bot]](https://github.com/apps/renovate)) ### Uncategorised -* Fix the release gha, originally submitted in #3462 (PR [#3463](https://github.com/javaparser/javaparser/pull/3463) - by [@MysterAitch](https://github.com/MysterAitch)) -* Update changelog.md to contain 3.24.0 changes, and prepare for 3.24.1 ( - PR [#3461](https://github.com/javaparser/javaparser/pull/3461) by [@MysterAitch](https://github.com/MysterAitch)) -* Update changelog.md (PR [#3460](https://github.com/javaparser/javaparser/pull/3460) - by [@MysterAitch](https://github.com/MysterAitch)) +* Fix the release gha, originally submitted in #3462 (PR [#3463](https://github.com/javaparser/javaparser/pull/3463) by [@MysterAitch](https://github.com/MysterAitch)) +* Update changelog.md to contain 3.24.0 changes, and prepare for 3.24.1 (PR [#3461](https://github.com/javaparser/javaparser/pull/3461) by [@MysterAitch](https://github.com/MysterAitch)) +* Update changelog.md (PR [#3460](https://github.com/javaparser/javaparser/pull/3460) by [@MysterAitch](https://github.com/MysterAitch)) ### :heart: Contributors @@ -1164,93 +903,53 @@ Version 3.24.0 ### Added -* Add erasure on parametrized type (PR [#3438](https://github.com/javaparser/javaparser/pull/3438) - by [@jlerbsc](https://github.com/jlerbsc)) -* Add test cases for `NoChange` API (PR [#3431](https://github.com/javaparser/javaparser/pull/3431) - by [@jlerbsc](https://github.com/jlerbsc)) +* Add erasure on parametrized type (PR [#3438](https://github.com/javaparser/javaparser/pull/3438) by [@jlerbsc](https://github.com/jlerbsc)) +* Add test cases for `NoChange` API (PR [#3431](https://github.com/javaparser/javaparser/pull/3431) by [@jlerbsc](https://github.com/jlerbsc)) ### Changed -* Minor refactoring on `LexicalreservingPrinter` especially in the class `Difference` ( - PR [#3424](https://github.com/javaparser/javaparser/pull/3424) by [@jlerbsc](https://github.com/jlerbsc)) -* Update the readme with `@pedrombmachado` 's suggestions (#3357), and also to switch from `mvn` to `mvnw` within some - sample instructions (PR [#3420](https://github.com/javaparser/javaparser/pull/3420) - by [@MysterAitch](https://github.com/MysterAitch)) -* Reducing deeply nested logic in `MethodResolutionLogic` (work in progress) ( - PR [#3411](https://github.com/javaparser/javaparser/pull/3411) by [@jlerbsc](https://github.com/jlerbsc)) -* Reducing deeply nested logic in `MethodResolutionLogic` ( - PR [#3409](https://github.com/javaparser/javaparser/pull/3409) by [@jlerbsc](https://github.com/jlerbsc)) -* Improved `RemoveMethodGenerator` and `ReplaceMethodGenerator` to only override super when needed. ( - PR [#3248](https://github.com/javaparser/javaparser/pull/3248) by [@4everTheOne](https://github.com/4everTheOne)) -* Reduced complexity for methods in `JavaParserFacade` (PR [#3204](https://github.com/javaparser/javaparser/pull/3204) - by [@4everTheOne](https://github.com/4everTheOne)) +* Minor refactoring on `LexicalreservingPrinter` especially in the class `Difference` (PR [#3424](https://github.com/javaparser/javaparser/pull/3424) by [@jlerbsc](https://github.com/jlerbsc)) +* Update the readme with `@pedrombmachado` 's suggestions (#3357), and also to switch from `mvn` to `mvnw` within some sample instructions (PR [#3420](https://github.com/javaparser/javaparser/pull/3420) by [@MysterAitch](https://github.com/MysterAitch)) +* Reducing deeply nested logic in `MethodResolutionLogic` (work in progress) (PR [#3411](https://github.com/javaparser/javaparser/pull/3411) by [@jlerbsc](https://github.com/jlerbsc)) +* Reducing deeply nested logic in `MethodResolutionLogic` (PR [#3409](https://github.com/javaparser/javaparser/pull/3409) by [@jlerbsc](https://github.com/jlerbsc)) +* Improved `RemoveMethodGenerator` and `ReplaceMethodGenerator` to only override super when needed. (PR [#3248](https://github.com/javaparser/javaparser/pull/3248) by [@4everTheOne](https://github.com/4everTheOne)) +* Reduced complexity for methods in `JavaParserFacade` (PR [#3204](https://github.com/javaparser/javaparser/pull/3204) by [@4everTheOne](https://github.com/4everTheOne)) ### Fixed -* Fix issue #3436 `getAncestors()`/`getAllAncestors()` does not work if base class starts with the same name ( - PR [#3437](https://github.com/javaparser/javaparser/pull/3437) by [@jlerbsc](https://github.com/jlerbsc)) -* Add a missing `hashCode()` method (PR [#3432](https://github.com/javaparser/javaparser/pull/3432) - by [@msridhar](https://github.com/msridhar)) -* Call `orElse()` instead of `orElseGet()` (PR [#3430](https://github.com/javaparser/javaparser/pull/3430) - by [@msridhar](https://github.com/msridhar)) -* Fix issue #3408 `LexicalPreservationPrinter` fails to add annotation to a class field decalared with fully qualified - name (PR [#3429](https://github.com/javaparser/javaparser/pull/3429) by [@jlerbsc](https://github.com/jlerbsc)) -* Issue #3419 - Fixed bug in `Difference.java` (PR [#3428](https://github.com/javaparser/javaparser/pull/3428) - by [@4everTheOne](https://github.com/4everTheOne)) -* Issue #3406 `ParseProblemException` when parsing char `\u005cn` ( - PR [#3407](https://github.com/javaparser/javaparser/pull/3407) by [@apixandru](https://github.com/apixandru)) -* Fix issue #3399 Failed to resolve methods that evaluate as argument ( - PR [#3401](https://github.com/javaparser/javaparser/pull/3401) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix resoure leak due to `File.walk` (PR [#3398](https://github.com/javaparser/javaparser/pull/3398) - by [@lujiefsi](https://github.com/lujiefsi)) -* Fix issue #2259 Type resolution issue when type of formal parameter is Object ( - PR [#3397](https://github.com/javaparser/javaparser/pull/3397) by [@jlerbsc](https://github.com/jlerbsc)) -* Fixes an issue where `JavaParserTypeSolver` ignores the character encoding configuration. ( - PR [#3396](https://github.com/javaparser/javaparser/pull/3396) by [@crucoba](https://github.com/crucoba)) -* Issue #3272 resolve lambda exp type (PR [#3273](https://github.com/javaparser/javaparser/pull/3273) - by [@si-e](https://github.com/si-e)) -* Issue #3200 `this` exp in anonymous class (PR [#3268](https://github.com/javaparser/javaparser/pull/3268) - by [@si-e](https://github.com/si-e)) +* Fix issue #3436 `getAncestors()`/`getAllAncestors()` does not work if base class starts with the same name (PR [#3437](https://github.com/javaparser/javaparser/pull/3437) by [@jlerbsc](https://github.com/jlerbsc)) +* Add a missing `hashCode()` method (PR [#3432](https://github.com/javaparser/javaparser/pull/3432) by [@msridhar](https://github.com/msridhar)) +* Call `orElse()` instead of `orElseGet()` (PR [#3430](https://github.com/javaparser/javaparser/pull/3430) by [@msridhar](https://github.com/msridhar)) +* Fix issue #3408 `LexicalPreservationPrinter` fails to add annotation to a class field decalared with fully qualified name (PR [#3429](https://github.com/javaparser/javaparser/pull/3429) by [@jlerbsc](https://github.com/jlerbsc)) +* Issue #3419 - Fixed bug in `Difference.java` (PR [#3428](https://github.com/javaparser/javaparser/pull/3428) by [@4everTheOne](https://github.com/4everTheOne)) +* Issue #3406 `ParseProblemException` when parsing char `\u005cn` (PR [#3407](https://github.com/javaparser/javaparser/pull/3407) by [@apixandru](https://github.com/apixandru)) +* Fix issue #3399 Failed to resolve methods that evaluate as argument (PR [#3401](https://github.com/javaparser/javaparser/pull/3401) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix resoure leak due to `File.walk` (PR [#3398](https://github.com/javaparser/javaparser/pull/3398) by [@lujiefsi](https://github.com/lujiefsi)) +* Fix issue #2259 Type resolution issue when type of formal parameter is Object (PR [#3397](https://github.com/javaparser/javaparser/pull/3397) by [@jlerbsc](https://github.com/jlerbsc)) +* Fixes an issue where `JavaParserTypeSolver` ignores the character encoding configuration. (PR [#3396](https://github.com/javaparser/javaparser/pull/3396) by [@crucoba](https://github.com/crucoba)) +* Issue #3272 resolve lambda exp type (PR [#3273](https://github.com/javaparser/javaparser/pull/3273) by [@si-e](https://github.com/si-e)) +* Issue #3200 `this` exp in anonymous class (PR [#3268](https://github.com/javaparser/javaparser/pull/3268) by [@si-e](https://github.com/si-e)) ### Developer Changes -* Partial revert of #3462 (removed GitHub Action) (PR [#3464](https://github.com/javaparser/javaparser/pull/3462) - by [@MysterAitch](https://github.com/MysterAitch)) -* Updated release script to be non-interactive, and added option to use a manually-triggered GitHub Action to build a - release (PR [#3462](https://github.com/javaparser/javaparser/pull/3462) - by [@MysterAitch](https://github.com/MysterAitch)) -* chore(deps): update dependency org.apache.maven.plugins:maven-jar-plugin to v3.2.1 ( - PR [#3459](https://github.com/javaparser/javaparser/pull/3459) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.3.0 ( - PR [#3458](https://github.com/javaparser/javaparser/pull/3458) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.assertj:assertj-core to v3.22.0 ( - PR [#3457](https://github.com/javaparser/javaparser/pull/3457) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.12.2 ( - PR [#3456](https://github.com/javaparser/javaparser/pull/3456) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.0.0-m2 ( - PR [#3453](https://github.com/javaparser/javaparser/pull/3453) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-site-plugin to v3.10.0 ( - PR [#3448](https://github.com/javaparser/javaparser/pull/3448) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v4.2.0 ( - PR [#3442](https://github.com/javaparser/javaparser/pull/3442) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update junit5 monorepo to v5.8.2 (PR [#3425](https://github.com/javaparser/javaparser/pull/3425) - by [@renovate[bot]](https://github.com/apps/renovate)) -* Update / document `codecov.yml` (PR [#3418](https://github.com/javaparser/javaparser/pull/3418) - by [@MysterAitch](https://github.com/MysterAitch)) -* chore(deps): update actions/cache action to v2.1.7 (PR [#3417](https://github.com/javaparser/javaparser/pull/3417) - by [@renovate[bot]](https://github.com/apps/renovate)) -* Bump bnd-maven-plugin from 6.0.0 to 6.1.0 (PR [#3416](https://github.com/javaparser/javaparser/pull/3416) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.1.0 ( - PR [#3414](https://github.com/javaparser/javaparser/pull/3414) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency com.squareup.okhttp3:okhttp to v4.9.3 ( - PR [#3413](https://github.com/javaparser/javaparser/pull/3413) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update actions/checkout action to v2.4.0 (PR [#3402](https://github.com/javaparser/javaparser/pull/3402) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update actions/checkout action to v2.3.5 (PR [#3395](https://github.com/javaparser/javaparser/pull/3395) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v4 ( - PR [#3393](https://github.com/javaparser/javaparser/pull/3393) by [@renovate[bot]](https://github.com/apps/renovate)) +* Partial revert of #3462 (removed GitHub Action) (PR [#3464](https://github.com/javaparser/javaparser/pull/3462) by [@MysterAitch](https://github.com/MysterAitch)) +* Updated release script to be non-interactive, and added option to use a manually-triggered GitHub Action to build a release (PR [#3462](https://github.com/javaparser/javaparser/pull/3462) by [@MysterAitch](https://github.com/MysterAitch)) +* chore(deps): update dependency org.apache.maven.plugins:maven-jar-plugin to v3.2.1 (PR [#3459](https://github.com/javaparser/javaparser/pull/3459) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.3.0 (PR [#3458](https://github.com/javaparser/javaparser/pull/3458) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.assertj:assertj-core to v3.22.0 (PR [#3457](https://github.com/javaparser/javaparser/pull/3457) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.12.2 (PR [#3456](https://github.com/javaparser/javaparser/pull/3456) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.0.0-m2 (PR [#3453](https://github.com/javaparser/javaparser/pull/3453) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-site-plugin to v3.10.0 (PR [#3448](https://github.com/javaparser/javaparser/pull/3448) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v4.2.0 (PR [#3442](https://github.com/javaparser/javaparser/pull/3442) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update junit5 monorepo to v5.8.2 (PR [#3425](https://github.com/javaparser/javaparser/pull/3425) by [@renovate[bot]](https://github.com/apps/renovate)) +* Update / document `codecov.yml` (PR [#3418](https://github.com/javaparser/javaparser/pull/3418) by [@MysterAitch](https://github.com/MysterAitch)) +* chore(deps): update actions/cache action to v2.1.7 (PR [#3417](https://github.com/javaparser/javaparser/pull/3417) by [@renovate[bot]](https://github.com/apps/renovate)) +* Bump bnd-maven-plugin from 6.0.0 to 6.1.0 (PR [#3416](https://github.com/javaparser/javaparser/pull/3416) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6.1.0 (PR [#3414](https://github.com/javaparser/javaparser/pull/3414) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency com.squareup.okhttp3:okhttp to v4.9.3 (PR [#3413](https://github.com/javaparser/javaparser/pull/3413) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update actions/checkout action to v2.4.0 (PR [#3402](https://github.com/javaparser/javaparser/pull/3402) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update actions/checkout action to v2.3.5 (PR [#3395](https://github.com/javaparser/javaparser/pull/3395) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v4 (PR [#3393](https://github.com/javaparser/javaparser/pull/3393) by [@renovate[bot]](https://github.com/apps/renovate)) ### :heart: Contributors @@ -1265,79 +964,56 @@ Thank You to all contributors who worked on this release! * [@jlerbsc](https://github.com/jlerbsc) * [@4everTheOne](https://github.com/4everTheOne) + + Version 3.23.1 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/186?closed=1) ### Fixed -* `record` may be used as variable name in Java 16 (PR [#3362](https://github.com/javaparser/javaparser/pull/3362) - by [@koppor](github.com/koppor/)) +* `record` may be used as variable name in Java 16 (PR [#3362](https://github.com/javaparser/javaparser/pull/3362) by [@koppor](github.com/koppor/)) ### API or Behaviour Change -* Java 11 is now the most used version (PR [#3301](https://github.com/javaparser/javaparser/pull/3301) - by [@matozoid](https://github.com/matozoid)) +* Java 11 is now the most used version (PR [#3301](https://github.com/javaparser/javaparser/pull/3301) by [@matozoid](https://github.com/matozoid)) ### Added -* Manage `@Inherited` annotation to prepare the fix on the issue 1843 ( - PR [#3383](https://github.com/javaparser/javaparser/pull/3383) by [@jlerbsc](https://github.com/jlerbsc)) +* Manage `@Inherited` annotation to prepare the fix on the issue 1843 (PR [#3383](https://github.com/javaparser/javaparser/pull/3383) by [@jlerbsc](https://github.com/jlerbsc)) ### Changed -* Configurable caching system for type solvers (PR [#3343](https://github.com/javaparser/javaparser/pull/3343) - by [@4everTheOne](https://github.com/4everTheOne)) -* Java 11 is now the most used version (PR [#3301](https://github.com/javaparser/javaparser/pull/3301) - by [@matozoid](https://github.com/matozoid)) +* Configurable caching system for type solvers (PR [#3343](https://github.com/javaparser/javaparser/pull/3343) by [@4everTheOne](https://github.com/4everTheOne)) +* Java 11 is now the most used version (PR [#3301](https://github.com/javaparser/javaparser/pull/3301) by [@matozoid](https://github.com/matozoid)) ### Fixed -* Fix issue 3387 LexicalPreservingPrinter adds wrong indentation when adding new comments ( - PR [#3392](https://github.com/javaparser/javaparser/pull/3392) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix issue 2360 Symbol Solver is missing promotion of byte, char, and short in unary expressions ( - PR [#3384](https://github.com/javaparser/javaparser/pull/3384) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix "record" as non-type identifier in Java 16 (PR [#3362](https://github.com/javaparser/javaparser/pull/3362) - by [@koppor](https://github.com/koppor)) -* Fix issue 3358 LexicalPreservingPrinter error on ArrayType ( - PR [#3359](https://github.com/javaparser/javaparser/pull/3359) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue 3387 LexicalPreservingPrinter adds wrong indentation when adding new comments (PR [#3392](https://github.com/javaparser/javaparser/pull/3392) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue 2360 Symbol Solver is missing promotion of byte, char, and short in unary expressions (PR [#3384](https://github.com/javaparser/javaparser/pull/3384) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix "record" as non-type identifier in Java 16 (PR [#3362](https://github.com/javaparser/javaparser/pull/3362) by [@koppor](https://github.com/koppor)) +* Fix issue 3358 LexicalPreservingPrinter error on ArrayType (PR [#3359](https://github.com/javaparser/javaparser/pull/3359) by [@jlerbsc](https://github.com/jlerbsc)) ### Developer Changes -* generate changelog for milestones - scripts included to do this by milestone id, milestone title, and a github action - to add the output to a draft snapshot release (PR [#3391](https://github.com/javaparser/javaparser/pull/3391) - by [@MysterAitch](https://github.com/MysterAitch)) -* Bump bnd-maven-plugin from 5.3.0 to 6.0.0 (PR [#3390](https://github.com/javaparser/javaparser/pull/3390) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6 ( - PR [#3389](https://github.com/javaparser/javaparser/pull/3389) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency com.squareup.okhttp3:okhttp to v4.9.2 ( - PR [#3388](https://github.com/javaparser/javaparser/pull/3388) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency com.google.guava:guava to v31.0.1-jre ( - PR [#3385](https://github.com/javaparser/javaparser/pull/3385) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency com.google.guava:guava to v31 ( - PR [#3381](https://github.com/javaparser/javaparser/pull/3381) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update junit5 monorepo to v5.8.1 (PR [#3380](https://github.com/javaparser/javaparser/pull/3380) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.assertj:assertj-core to v3.21.0 ( - PR [#3378](https://github.com/javaparser/javaparser/pull/3378) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.12.0 ( - PR [#3376](https://github.com/javaparser/javaparser/pull/3376) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update codecov/codecov-action action to v2.1.0 ( - PR [#3373](https://github.com/javaparser/javaparser/pull/3373) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update junit5 monorepo to v5.8.0 (PR [#3372](https://github.com/javaparser/javaparser/pull/3372) - by [@renovate[bot]](https://github.com/apps/renovate)) -* remove accidentally-added pom release backup files, and added it to gitignore to prevent them being re-added ( - PR [#3370](https://github.com/javaparser/javaparser/pull/3370) by [@MysterAitch](https://github.com/MysterAitch)) -* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.1 ( - PR [#3368](https://github.com/javaparser/javaparser/pull/3368) by [@renovate[bot]](https://github.com/apps/renovate)) -* Reduce mvn verbosity on GitHub actions (and switch to mvnw) ( - PR [#3363](https://github.com/javaparser/javaparser/pull/3363) by [@koppor](https://github.com/koppor)) +* generate changelog for milestones - scripts included to do this by milestone id, milestone title, and a github action to add the output to a draft snapshot release (PR [#3391](https://github.com/javaparser/javaparser/pull/3391) by [@MysterAitch](https://github.com/MysterAitch)) +* Bump bnd-maven-plugin from 5.3.0 to 6.0.0 (PR [#3390](https://github.com/javaparser/javaparser/pull/3390) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update dependency biz.aqute.bnd:bnd-maven-plugin to v6 (PR [#3389](https://github.com/javaparser/javaparser/pull/3389) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency com.squareup.okhttp3:okhttp to v4.9.2 (PR [#3388](https://github.com/javaparser/javaparser/pull/3388) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency com.google.guava:guava to v31.0.1-jre (PR [#3385](https://github.com/javaparser/javaparser/pull/3385) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency com.google.guava:guava to v31 (PR [#3381](https://github.com/javaparser/javaparser/pull/3381) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update junit5 monorepo to v5.8.1 (PR [#3380](https://github.com/javaparser/javaparser/pull/3380) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.assertj:assertj-core to v3.21.0 (PR [#3378](https://github.com/javaparser/javaparser/pull/3378) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.12.0 (PR [#3376](https://github.com/javaparser/javaparser/pull/3376) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update codecov/codecov-action action to v2.1.0 (PR [#3373](https://github.com/javaparser/javaparser/pull/3373) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update junit5 monorepo to v5.8.0 (PR [#3372](https://github.com/javaparser/javaparser/pull/3372) by [@renovate[bot]](https://github.com/apps/renovate)) +* remove accidentally-added pom release backup files, and added it to gitignore to prevent them being re-added (PR [#3370](https://github.com/javaparser/javaparser/pull/3370) by [@MysterAitch](https://github.com/MysterAitch)) +* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.1 (PR [#3368](https://github.com/javaparser/javaparser/pull/3368) by [@renovate[bot]](https://github.com/apps/renovate)) +* Reduce mvn verbosity on GitHub actions (and switch to mvnw) (PR [#3363](https://github.com/javaparser/javaparser/pull/3363) by [@koppor](https://github.com/koppor)) ### Uncategorised -* Prepare changelog for next version (PR [#3354](https://github.com/javaparser/javaparser/pull/3354) - by [@MysterAitch](https://github.com/MysterAitch)) +* Prepare changelog for next version (PR [#3354](https://github.com/javaparser/javaparser/pull/3354) by [@MysterAitch](https://github.com/MysterAitch)) ### :heart: Contributors @@ -1356,103 +1032,59 @@ Version 3.23.0 ### Added -* Improving `toString` on CSM classes (PR [#3315](https://github.com/javaparser/javaparser/pull/3315) - by [@jlerbsc](https://github.com/jlerbsc)) -* Add test case for issue #2210 Resolution of Method References ( - PR [#3310](https://github.com/javaparser/javaparser/pull/3310) by [@jlerbsc](https://github.com/jlerbsc)) -* Implemented method reference resolution on expressions (PR [#3307](https://github.com/javaparser/javaparser/pull/3307) - by [@maartenc](https://github.com/maartenc)) -* Define if a field is volatile through the ResolvedFieldDeclaration interface - from issue #3240 ( - PR [#3276](https://github.com/javaparser/javaparser/pull/3276) by [@jlerbsc](https://github.com/jlerbsc)) -* Implemented logic for internalTypes in `JavaParserAnnotationDeclaration` and `JavassistAnnotationDeclaration` ( - PR [#3215](https://github.com/javaparser/javaparser/pull/3215) by [@4everTheOne](https://github.com/4everTheOne)) +* Improving `toString` on CSM classes (PR [#3315](https://github.com/javaparser/javaparser/pull/3315) by [@jlerbsc](https://github.com/jlerbsc)) +* Add test case for issue #2210 Resolution of Method References (PR [#3310](https://github.com/javaparser/javaparser/pull/3310) by [@jlerbsc](https://github.com/jlerbsc)) +* Implemented method reference resolution on expressions (PR [#3307](https://github.com/javaparser/javaparser/pull/3307) by [@maartenc](https://github.com/maartenc)) +* Define if a field is volatile through the ResolvedFieldDeclaration interface - from issue #3240 (PR [#3276](https://github.com/javaparser/javaparser/pull/3276) by [@jlerbsc](https://github.com/jlerbsc)) +* Implemented logic for internalTypes in `JavaParserAnnotationDeclaration` and `JavassistAnnotationDeclaration` (PR [#3215](https://github.com/javaparser/javaparser/pull/3215) by [@4everTheOne](https://github.com/4everTheOne)) ### Changed -* Check if ancestor also for super class (PR [#3324](https://github.com/javaparser/javaparser/pull/3324) - by [@ReallyLiri](https://github.com/ReallyLiri)) -* Remove useless instanceof usage in Type (PR [#3311](https://github.com/javaparser/javaparser/pull/3311) - by [@jlerbsc](https://github.com/jlerbsc)) -* Fix Java 11+ AST postprocessing (PR [#3302](https://github.com/javaparser/javaparser/pull/3302) - by [@matozoid](https://github.com/matozoid)) -* Move duplicate code to JavaParserTypeAdapter (PR [#3267](https://github.com/javaparser/javaparser/pull/3267) - by [@maartenc](https://github.com/maartenc)) -* Improved performance when resolving types for big source files ( - PR [#3265](https://github.com/javaparser/javaparser/pull/3265) by [@maartenc](https://github.com/maartenc)) -* Optimizations for Node class (CPU time and Memory usage) ( - PR [#3233](https://github.com/javaparser/javaparser/pull/3233) by [@4everTheOne](https://github.com/4everTheOne)) -* Fix Javadoc comment * escaping problem. (PR [#3221](https://github.com/javaparser/javaparser/pull/3221) - by [@matozoid](https://github.com/matozoid)) -* Remove broken link (PR [#2912](https://github.com/javaparser/javaparser/pull/2912) - by [@mernst](https://github.com/mernst)) +* Check if ancestor also for super class (PR [#3324](https://github.com/javaparser/javaparser/pull/3324) by [@ReallyLiri](https://github.com/ReallyLiri)) +* Remove useless instanceof usage in Type (PR [#3311](https://github.com/javaparser/javaparser/pull/3311) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix Java 11+ AST postprocessing (PR [#3302](https://github.com/javaparser/javaparser/pull/3302) by [@matozoid](https://github.com/matozoid)) +* Move duplicate code to JavaParserTypeAdapter (PR [#3267](https://github.com/javaparser/javaparser/pull/3267) by [@maartenc](https://github.com/maartenc)) +* Improved performance when resolving types for big source files (PR [#3265](https://github.com/javaparser/javaparser/pull/3265) by [@maartenc](https://github.com/maartenc)) +* Optimizations for Node class (CPU time and Memory usage) (PR [#3233](https://github.com/javaparser/javaparser/pull/3233) by [@4everTheOne](https://github.com/4everTheOne)) +* Fix Javadoc comment * escaping problem. (PR [#3221](https://github.com/javaparser/javaparser/pull/3221) by [@matozoid](https://github.com/matozoid)) +* Remove broken link (PR [#2912](https://github.com/javaparser/javaparser/pull/2912) by [@mernst](https://github.com/mernst)) ### Fixed -* Preserving field order when getting the fields declared from a ReferenceType ( - PR [#3342](https://github.com/javaparser/javaparser/pull/3342) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix String Index out of range in TextBlockLiteralExpr (PR [#3337](https://github.com/javaparser/javaparser/pull/3337) - by [@134ARG](https://github.com/134ARG)) -* Fixed prettyprinting new switch-statements (and switch-expressions). ( - PR [#3335](https://github.com/javaparser/javaparser/pull/3335) by [@kozsik](https://github.com/kozsik)) -* Fix pretty printing of generic records (PR [#3334](https://github.com/javaparser/javaparser/pull/3334) - by [@twistedsquare](https://github.com/twistedsquare)) -* Fix issue #3317 Comment in the middle of a multi-line single statement ( - PR [#3318](https://github.com/javaparser/javaparser/pull/3318) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix issue 3296 LexicalPreservation bug for array brackets ( - PR [#3316](https://github.com/javaparser/javaparser/pull/3316) by [@jlerbsc](https://github.com/jlerbsc)) -* Fixes Issue #3308 -- stackoverflow when resolving the `FieldAccessExpr` of an `ArrayAccessExpr` ( - PR [#3312](https://github.com/javaparser/javaparser/pull/3312) by [@MysterAitch](https://github.com/MysterAitch)) -* Fix StackOverflow when resolving ClassOrInterfaceType of nested ObjectCreationExpr ( - PR [#3279](https://github.com/javaparser/javaparser/pull/3279) by [@maartenc](https://github.com/maartenc)) -* ResolvedMethods from javassist never had exceptions (PR [#3264](https://github.com/javaparser/javaparser/pull/3264) - by [@maartenc](https://github.com/maartenc)) -* Issue 3064 conditional nested lambda (PR [#3238](https://github.com/javaparser/javaparser/pull/3238) - by [@si-e](https://github.com/si-e)) -* Further optimization in resolving in StatementContext (PR [#3185](https://github.com/javaparser/javaparser/pull/3185) - by [@Col-E](https://github.com/Col-E)) -* Improve type resolution for duplicate names (PR [#3012](https://github.com/javaparser/javaparser/pull/3012) - by [@thejk](https://github.com/thejk)) +* Preserving field order when getting the fields declared from a ReferenceType (PR [#3342](https://github.com/javaparser/javaparser/pull/3342) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix String Index out of range in TextBlockLiteralExpr (PR [#3337](https://github.com/javaparser/javaparser/pull/3337) by [@134ARG](https://github.com/134ARG)) +* Fixed prettyprinting new switch-statements (and switch-expressions). (PR [#3335](https://github.com/javaparser/javaparser/pull/3335) by [@kozsik](https://github.com/kozsik)) +* Fix pretty printing of generic records (PR [#3334](https://github.com/javaparser/javaparser/pull/3334) by [@twistedsquare](https://github.com/twistedsquare)) +* Fix issue #3317 Comment in the middle of a multi-line single statement (PR [#3318](https://github.com/javaparser/javaparser/pull/3318) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue 3296 LexicalPreservation bug for array brackets (PR [#3316](https://github.com/javaparser/javaparser/pull/3316) by [@jlerbsc](https://github.com/jlerbsc)) +* Fixes Issue #3308 -- stackoverflow when resolving the `FieldAccessExpr` of an `ArrayAccessExpr` (PR [#3312](https://github.com/javaparser/javaparser/pull/3312) by [@MysterAitch](https://github.com/MysterAitch)) +* Fix StackOverflow when resolving ClassOrInterfaceType of nested ObjectCreationExpr (PR [#3279](https://github.com/javaparser/javaparser/pull/3279) by [@maartenc](https://github.com/maartenc)) +* ResolvedMethods from javassist never had exceptions (PR [#3264](https://github.com/javaparser/javaparser/pull/3264) by [@maartenc](https://github.com/maartenc)) +* Issue 3064 conditional nested lambda (PR [#3238](https://github.com/javaparser/javaparser/pull/3238) by [@si-e](https://github.com/si-e)) +* Further optimization in resolving in StatementContext (PR [#3185](https://github.com/javaparser/javaparser/pull/3185) by [@Col-E](https://github.com/Col-E)) +* Improve type resolution for duplicate names (PR [#3012](https://github.com/javaparser/javaparser/pull/3012) by [@thejk](https://github.com/thejk)) ### Developer Changes -* chore(deps): update dependency org.mockito:mockito-core to v3.12.4 ( - PR [#3350](https://github.com/javaparser/javaparser/pull/3350) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v3.12.3 ( - PR [#3349](https://github.com/javaparser/javaparser/pull/3349) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update codecov/codecov-action action to v2.0.3 ( - PR [#3348](https://github.com/javaparser/javaparser/pull/3348) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v3.12.2 ( - PR [#3347](https://github.com/javaparser/javaparser/pull/3347) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v3.12.1 ( - PR [#3345](https://github.com/javaparser/javaparser/pull/3345) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v3.12.0 ( - PR [#3344](https://github.com/javaparser/javaparser/pull/3344) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.11.3 ( - PR [#3339](https://github.com/javaparser/javaparser/pull/3339) by [@renovate[bot]](https://github.com/apps/renovate)) -* Bump codecov/codecov-action from 1.5.2 to 2.0.2 (PR [#3326](https://github.com/javaparser/javaparser/pull/3326) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* chore(deps): update dependency org.mockito:mockito-core to v3.11.2 ( - PR [#3305](https://github.com/javaparser/javaparser/pull/3305) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.assertj:assertj-core to v3.20.2 ( - PR [#3297](https://github.com/javaparser/javaparser/pull/3297) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.assertj:assertj-core to v3.20.0 ( - PR [#3295](https://github.com/javaparser/javaparser/pull/3295) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.2.0 ( - PR [#3294](https://github.com/javaparser/javaparser/pull/3294) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v3.11.1 ( - PR [#3293](https://github.com/javaparser/javaparser/pull/3293) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update codecov/codecov-action action to v1.5.2 ( - PR [#3287](https://github.com/javaparser/javaparser/pull/3287) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v3.11.0 ( - PR [#3285](https://github.com/javaparser/javaparser/pull/3285) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update actions/cache action to v2.1.6 (PR [#3280](https://github.com/javaparser/javaparser/pull/3280) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.0 ( - PR [#3270](https://github.com/javaparser/javaparser/pull/3270) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update junit5 monorepo to v5.7.2 (PR [#3262](https://github.com/javaparser/javaparser/pull/3262) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.apache.maven.plugins:maven-gpg-plugin to v3 ( - PR [#3250](https://github.com/javaparser/javaparser/pull/3250) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v3.12.4 (PR [#3350](https://github.com/javaparser/javaparser/pull/3350) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v3.12.3 (PR [#3349](https://github.com/javaparser/javaparser/pull/3349) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update codecov/codecov-action action to v2.0.3 (PR [#3348](https://github.com/javaparser/javaparser/pull/3348) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v3.12.2 (PR [#3347](https://github.com/javaparser/javaparser/pull/3347) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v3.12.1 (PR [#3345](https://github.com/javaparser/javaparser/pull/3345) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v3.12.0 (PR [#3344](https://github.com/javaparser/javaparser/pull/3344) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-scm-plugin to v1.11.3 (PR [#3339](https://github.com/javaparser/javaparser/pull/3339) by [@renovate[bot]](https://github.com/apps/renovate)) +* Bump codecov/codecov-action from 1.5.2 to 2.0.2 (PR [#3326](https://github.com/javaparser/javaparser/pull/3326) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update dependency org.mockito:mockito-core to v3.11.2 (PR [#3305](https://github.com/javaparser/javaparser/pull/3305) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.assertj:assertj-core to v3.20.2 (PR [#3297](https://github.com/javaparser/javaparser/pull/3297) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.assertj:assertj-core to v3.20.0 (PR [#3295](https://github.com/javaparser/javaparser/pull/3295) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.2.0 (PR [#3294](https://github.com/javaparser/javaparser/pull/3294) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v3.11.1 (PR [#3293](https://github.com/javaparser/javaparser/pull/3293) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update codecov/codecov-action action to v1.5.2 (PR [#3287](https://github.com/javaparser/javaparser/pull/3287) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v3.11.0 (PR [#3285](https://github.com/javaparser/javaparser/pull/3285) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update actions/cache action to v2.1.6 (PR [#3280](https://github.com/javaparser/javaparser/pull/3280) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.0 (PR [#3270](https://github.com/javaparser/javaparser/pull/3270) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update junit5 monorepo to v5.7.2 (PR [#3262](https://github.com/javaparser/javaparser/pull/3262) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.apache.maven.plugins:maven-gpg-plugin to v3 (PR [#3250](https://github.com/javaparser/javaparser/pull/3250) by [@renovate[bot]](https://github.com/apps/renovate)) ### :heart: Contributors @@ -1472,35 +1104,28 @@ Thank You to all contributors who worked on this release! * [@jlerbsc](https://github.com/jlerbsc) * [@4everTheOne](https://github.com/4everTheOne) + + Version 3.22.1 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/184?closed=1) ### Added -* Recover wrong statements no only to ';', but to '}' (not including) as well ( - PR [#3247](https://github.com/javaparser/javaparser/pull/3247) by [@32kda](https://github.com/32kda)) +* Recover wrong statements no only to ';', but to '}' (not including) as well (PR [#3247](https://github.com/javaparser/javaparser/pull/3247) by [@32kda](https://github.com/32kda)) ### Fixed -* update features.md -- fixed release version and date of records support, status of java 16 sealed classes to 2nd - preview, and java 17 features (PR [#3263](https://github.com/javaparser/javaparser/pull/3263) - by [@MysterAitch](https://github.com/MysterAitch)) -* fixes #3255 -- bugfix grammar case when using `record` to as an identifier ( - PR [#3256](https://github.com/javaparser/javaparser/pull/3256) by [@MysterAitch](https://github.com/MysterAitch)) -* Fixes issue #3113 -- Arrow missing in Switch Expression + jumbled up in LexicalPreservingPrinter ( - PR [#3235](https://github.com/javaparser/javaparser/pull/3235) by [@Zoom1111](https://github.com/Zoom1111)) -* Handle possibility of tokens not being available (PR [#3231](https://github.com/javaparser/javaparser/pull/3231) - by [@mernst](https://github.com/mernst)) +* update features.md -- fixed release version and date of records support, status of java 16 sealed classes to 2nd preview, and java 17 features (PR [#3263](https://github.com/javaparser/javaparser/pull/3263) by [@MysterAitch](https://github.com/MysterAitch)) +* fixes #3255 -- bugfix grammar case when using `record` to as an identifier (PR [#3256](https://github.com/javaparser/javaparser/pull/3256) by [@MysterAitch](https://github.com/MysterAitch)) +* Fixes issue #3113 -- Arrow missing in Switch Expression + jumbled up in LexicalPreservingPrinter (PR [#3235](https://github.com/javaparser/javaparser/pull/3235) by [@Zoom1111](https://github.com/Zoom1111)) +* Handle possibility of tokens not being available (PR [#3231](https://github.com/javaparser/javaparser/pull/3231) by [@mernst](https://github.com/mernst)) ### Developer Changes -* chore(deps): update dependency org.mockito:mockito-core to v3.10.0 ( - PR [#3259](https://github.com/javaparser/javaparser/pull/3259) by [@renovate[bot]](https://github.com/apps/renovate)) -* Bump codecov/codecov-action from 1 to 1.5.0 (PR [#3258](https://github.com/javaparser/javaparser/pull/3258) - by [@dependabot[bot]](https://github.com/apps/dependabot)) -* Bump actions/create-release from 1 to 1.1.4 (PR [#3257](https://github.com/javaparser/javaparser/pull/3257) - by [@dependabot[bot]](https://github.com/apps/dependabot)) +* chore(deps): update dependency org.mockito:mockito-core to v3.10.0 (PR [#3259](https://github.com/javaparser/javaparser/pull/3259) by [@renovate[bot]](https://github.com/apps/renovate)) +* Bump codecov/codecov-action from 1 to 1.5.0 (PR [#3258](https://github.com/javaparser/javaparser/pull/3258) by [@dependabot[bot]](https://github.com/apps/dependabot)) +* Bump actions/create-release from 1 to 1.1.4 (PR [#3257](https://github.com/javaparser/javaparser/pull/3257) by [@dependabot[bot]](https://github.com/apps/dependabot)) ### :heart: Contributors @@ -1511,6 +1136,8 @@ Thank You to all contributors who worked on this release! * [@Zoom1111](https://github.com/Zoom1111) * [@mernst](https://github.com/mernst) + + Version 3.22.0 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/183?closed=1) @@ -1518,67 +1145,42 @@ Version 3.22.0 ### API or Behaviour Change -* Implemented isAssignableBy for VoidType - now return `false` instead of throwing `UnsupportedOperationException` ( - PR [#3197](https://github.com/javaparser/javaparser/pull/3197) by [@4everTheOne](https://github.com/4everTheOne)) -* fixed ellipsis and doublecolon to be categorised as separators not operators (fixes #2897) ( - PR [#2924](https://github.com/javaparser/javaparser/pull/2924) by [@MysterAitch](https://github.com/MysterAitch)) +* Implemented isAssignableBy for VoidType - now return `false` instead of throwing `UnsupportedOperationException` (PR [#3197](https://github.com/javaparser/javaparser/pull/3197) by [@4everTheOne](https://github.com/4everTheOne)) +* fixed ellipsis and doublecolon to be categorised as separators not operators (fixes #2897) (PR [#2924](https://github.com/javaparser/javaparser/pull/2924) by [@MysterAitch](https://github.com/MysterAitch)) ### Added -* Update parser configuration and validators to include the release of java 16, and java 17 being in development ( - PR [#3222](https://github.com/javaparser/javaparser/pull/3222) by [@MysterAitch](https://github.com/MysterAitch)) -* Adding convenient methods to find out if a method is a variable/fixed arity method ( - PR [#3196](https://github.com/javaparser/javaparser/pull/3196) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix issue #3173: Add isAnnotation() and asAnnotation() methods for ResolvedTypeDeclaration ( - PR [#3187](https://github.com/javaparser/javaparser/pull/3187) by [@deadlocklogic](https://github.com/deadlocklogic)) -* Record support (compilation / parsing only, solving to follow separately) ( - PR [#3022](https://github.com/javaparser/javaparser/pull/3022) by [@MysterAitch](https://github.com/MysterAitch)) +* Update parser configuration and validators to include the release of java 16, and java 17 being in development (PR [#3222](https://github.com/javaparser/javaparser/pull/3222) by [@MysterAitch](https://github.com/MysterAitch)) +* Adding convenient methods to find out if a method is a variable/fixed arity method (PR [#3196](https://github.com/javaparser/javaparser/pull/3196) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix issue #3173: Add isAnnotation() and asAnnotation() methods for ResolvedTypeDeclaration (PR [#3187](https://github.com/javaparser/javaparser/pull/3187) by [@deadlocklogic](https://github.com/deadlocklogic)) +* Record support (compilation / parsing only, solving to follow separately) (PR [#3022](https://github.com/javaparser/javaparser/pull/3022) by [@MysterAitch](https://github.com/MysterAitch)) ### Changed -* Implemented isAssignableBy for VoidType - now return `false` instead of throwing `UnsupportedOperationException` ( - PR [#3197](https://github.com/javaparser/javaparser/pull/3197) by [@4everTheOne](https://github.com/4everTheOne)) -* Simplify how to find the package name from AstResolutionUtils ( - PR [#3193](https://github.com/javaparser/javaparser/pull/3193) by [@jlerbsc](https://github.com/jlerbsc)) -* Type resolution improvment (PR [#3189](https://github.com/javaparser/javaparser/pull/3189) - by [@jlerbsc](https://github.com/jlerbsc)) -* Memory optimization for JarTypeSolver (Up to 42% less memory) ( - PR [#3188](https://github.com/javaparser/javaparser/pull/3188) by [@4everTheOne](https://github.com/4everTheOne)) -* Fixes #3048 (`JavaParserSymbolDeclaration#localVar` returning old declaration) and adds tests - for `JavaParserSymbolDeclaration` (PR [#3049](https://github.com/javaparser/javaparser/pull/3049) - by [@4everTheOne](https://github.com/4everTheOne)) +* Implemented isAssignableBy for VoidType - now return `false` instead of throwing `UnsupportedOperationException` (PR [#3197](https://github.com/javaparser/javaparser/pull/3197) by [@4everTheOne](https://github.com/4everTheOne)) +* Simplify how to find the package name from AstResolutionUtils (PR [#3193](https://github.com/javaparser/javaparser/pull/3193) by [@jlerbsc](https://github.com/jlerbsc)) +* Type resolution improvment (PR [#3189](https://github.com/javaparser/javaparser/pull/3189) by [@jlerbsc](https://github.com/jlerbsc)) +* Memory optimization for JarTypeSolver (Up to 42% less memory) (PR [#3188](https://github.com/javaparser/javaparser/pull/3188) by [@4everTheOne](https://github.com/4everTheOne)) +* Fixes #3048 (`JavaParserSymbolDeclaration#localVar` returning old declaration) and adds tests for `JavaParserSymbolDeclaration` (PR [#3049](https://github.com/javaparser/javaparser/pull/3049) by [@4everTheOne](https://github.com/4everTheOne)) ### Fixed -* Fix issue #3244 OrphanComment in BlockStmt not appearing ( - PR [#3245](https://github.com/javaparser/javaparser/pull/3245) by [@jlerbsc](https://github.com/jlerbsc)) -* fix Log.error() throwing NullPointerException (PR [#3243](https://github.com/javaparser/javaparser/pull/3243) - by [@CD4017BE](https://github.com/CD4017BE)) -* fixed ellipsis and doublecolon to be categorised as separators not operators (fixes #2897) ( - PR [#2924](https://github.com/javaparser/javaparser/pull/2924) by [@MysterAitch](https://github.com/MysterAitch)) +* Fix issue #3244 OrphanComment in BlockStmt not appearing (PR [#3245](https://github.com/javaparser/javaparser/pull/3245) by [@jlerbsc](https://github.com/jlerbsc)) +* fix Log.error() throwing NullPointerException (PR [#3243](https://github.com/javaparser/javaparser/pull/3243) by [@CD4017BE](https://github.com/CD4017BE)) +* fixed ellipsis and doublecolon to be categorised as separators not operators (fixes #2897) (PR [#2924](https://github.com/javaparser/javaparser/pull/2924) by [@MysterAitch](https://github.com/MysterAitch)) ### Developer Changes -* Include and use a Maven wrapper (PR [#3254](https://github.com/javaparser/javaparser/pull/3254) - by [@MysterAitch](https://github.com/MysterAitch)) -* chore(deps): update dependency org.javassist:javassist to v3.28.0-ga ( - PR [#3249](https://github.com/javaparser/javaparser/pull/3249) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.7 ( - PR [#3246](https://github.com/javaparser/javaparser/pull/3246) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update actions/cache action to v2.1.5 (PR [#3226](https://github.com/javaparser/javaparser/pull/3226) - by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update dependency org.mockito:mockito-core to v3.9.0 ( - PR [#3224](https://github.com/javaparser/javaparser/pull/3224) by [@renovate[bot]](https://github.com/apps/renovate)) -* chore(deps): update actions/setup-java action to v2 (PR [#3220](https://github.com/javaparser/javaparser/pull/3220) - by [@renovate[bot]](https://github.com/apps/renovate)) -* Update javaparser copyright headers (PR [#3212](https://github.com/javaparser/javaparser/pull/3212) - by [@jlerbsc](https://github.com/jlerbsc)) -* Update readme template so that #3096 becomes permanent (PR [#3210](https://github.com/javaparser/javaparser/pull/3210) - by [@MysterAitch](https://github.com/MysterAitch)) -* Improve tests on `getAllAncestors` method (PR [#3209](https://github.com/javaparser/javaparser/pull/3209) - by [@jlerbsc](https://github.com/jlerbsc)) -* Fix surefire configuration to allow jacoco to run correctly on JSS tests ( - PR [#3208](https://github.com/javaparser/javaparser/pull/3208) by [@MysterAitch](https://github.com/MysterAitch)) +* Include and use a Maven wrapper (PR [#3254](https://github.com/javaparser/javaparser/pull/3254) by [@MysterAitch](https://github.com/MysterAitch)) +* chore(deps): update dependency org.javassist:javassist to v3.28.0-ga (PR [#3249](https://github.com/javaparser/javaparser/pull/3249) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.7 (PR [#3246](https://github.com/javaparser/javaparser/pull/3246) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update actions/cache action to v2.1.5 (PR [#3226](https://github.com/javaparser/javaparser/pull/3226) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update dependency org.mockito:mockito-core to v3.9.0 (PR [#3224](https://github.com/javaparser/javaparser/pull/3224) by [@renovate[bot]](https://github.com/apps/renovate)) +* chore(deps): update actions/setup-java action to v2 (PR [#3220](https://github.com/javaparser/javaparser/pull/3220) by [@renovate[bot]](https://github.com/apps/renovate)) +* Update javaparser copyright headers (PR [#3212](https://github.com/javaparser/javaparser/pull/3212) by [@jlerbsc](https://github.com/jlerbsc)) +* Update readme template so that #3096 becomes permanent (PR [#3210](https://github.com/javaparser/javaparser/pull/3210) by [@MysterAitch](https://github.com/MysterAitch)) +* Improve tests on `getAllAncestors` method (PR [#3209](https://github.com/javaparser/javaparser/pull/3209) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix surefire configuration to allow jacoco to run correctly on JSS tests (PR [#3208](https://github.com/javaparser/javaparser/pull/3208) by [@MysterAitch](https://github.com/MysterAitch)) ### :heart: Contributors @@ -1600,47 +1202,31 @@ Version 3.21.1 ### Added -* Implemented logic for isAssignableBy in JavassistInterfaceDeclaration ( - PR [#3170](https://github.com/javaparser/javaparser/pull/3170) by [@4everTheOne](https://github.com/4everTheOne)) -* Added additional tests to cover isAssignableBy method in JavassistClassDeclaration ( - PR [#3169](https://github.com/javaparser/javaparser/pull/3169) by [@4everTheOne](https://github.com/4everTheOne)) +* Implemented logic for isAssignableBy in JavassistInterfaceDeclaration (PR [#3170](https://github.com/javaparser/javaparser/pull/3170) by [@4everTheOne](https://github.com/4everTheOne)) +* Added additional tests to cover isAssignableBy method in JavassistClassDeclaration (PR [#3169](https://github.com/javaparser/javaparser/pull/3169) by [@4everTheOne](https://github.com/4everTheOne)) ### Changed -* Update changelog (PR [#3178](https://github.com/javaparser/javaparser/pull/3178) - by [@MysterAitch](https://github.com/MysterAitch)) -* Minor performance improvement on getCanonicalName method call ( - PR [#3166](https://github.com/javaparser/javaparser/pull/3166) by [@jlerbsc](https://github.com/jlerbsc)) +* Update changelog (PR [#3178](https://github.com/javaparser/javaparser/pull/3178) by [@MysterAitch](https://github.com/MysterAitch)) +* Minor performance improvement on getCanonicalName method call (PR [#3166](https://github.com/javaparser/javaparser/pull/3166) by [@jlerbsc](https://github.com/jlerbsc)) ### Fixed -* Fix Issue #1950 Unambigous ambiguity call with generics and lambda's ( - PR [#3168](https://github.com/javaparser/javaparser/pull/3168) by [@jlerbsc](https://github.com/jlerbsc)) -* Refactor the javassist implementation to delegate to the typesolver instead of using its own classpool ( - PR [#3167](https://github.com/javaparser/javaparser/pull/3167) by [@maartenc](https://github.com/maartenc)) -* Fixed name resolution in casted lambda expressions (PR [#3165](https://github.com/javaparser/javaparser/pull/3165) - by [@maartenc](https://github.com/maartenc)) -* Fix issue #3159 JavaParserSymbolDeclaration is used to represent variables, but #isVariable() always returns false ( - PR [#3160](https://github.com/javaparser/javaparser/pull/3160) by [@jlerbsc](https://github.com/jlerbsc)) -* Fix wrong author attribution in changelog for #3072 (PR [#3155](https://github.com/javaparser/javaparser/pull/3155) - by [@Col-E](https://github.com/Col-E)) -* Fixed #3136 - ThisExpr isn't resolved correctly when it is in the scope of an ObjectCreationExpr ( - PR [#3137](https://github.com/javaparser/javaparser/pull/3137) by [@deadlocklogic](https://github.com/deadlocklogic)) -* Fix race condition in JavaParserTypeSolver (PR [#3091](https://github.com/javaparser/javaparser/pull/3091) - by [@4everTheOne](https://github.com/4everTheOne)) +* Fix Issue #1950 Unambigous ambiguity call with generics and lambda's (PR [#3168](https://github.com/javaparser/javaparser/pull/3168) by [@jlerbsc](https://github.com/jlerbsc)) +* Refactor the javassist implementation to delegate to the typesolver instead of using its own classpool (PR [#3167](https://github.com/javaparser/javaparser/pull/3167) by [@maartenc](https://github.com/maartenc)) +* Fixed name resolution in casted lambda expressions (PR [#3165](https://github.com/javaparser/javaparser/pull/3165) by [@maartenc](https://github.com/maartenc)) +* Fix issue #3159 JavaParserSymbolDeclaration is used to represent variables, but #isVariable() always returns false (PR [#3160](https://github.com/javaparser/javaparser/pull/3160) by [@jlerbsc](https://github.com/jlerbsc)) +* Fix wrong author attribution in changelog for #3072 (PR [#3155](https://github.com/javaparser/javaparser/pull/3155) by [@Col-E](https://github.com/Col-E)) +* Fixed #3136 - ThisExpr isn't resolved correctly when it is in the scope of an ObjectCreationExpr (PR [#3137](https://github.com/javaparser/javaparser/pull/3137) by [@deadlocklogic](https://github.com/deadlocklogic)) +* Fix race condition in JavaParserTypeSolver (PR [#3091](https://github.com/javaparser/javaparser/pull/3091) by [@4everTheOne](https://github.com/4everTheOne)) ### Developer Changes -* Publish to OSSRH rather than Bintray (PR [#3180](https://github.com/javaparser/javaparser/pull/3180) - by [@MysterAitch](https://github.com/MysterAitch)) -* Remove unused JUnit Pioneer dependency (PR [#3179](https://github.com/javaparser/javaparser/pull/3179) - by [@MysterAitch](https://github.com/MysterAitch)) -* Verify builds test correctly under JDK16 (PR [#3175](https://github.com/javaparser/javaparser/pull/3175) - by [@MysterAitch](https://github.com/MysterAitch)) -* update renovate to include "dependencies" label on PRs (PR [#3174](https://github.com/javaparser/javaparser/pull/3174) - by [@MysterAitch](https://github.com/MysterAitch)) -* chore(deps): update dependency com.google.guava:guava to v30.1.1-jre ( - PR [#3172](https://github.com/javaparser/javaparser/pull/3172) by [@renovate[bot]](https://github.com/apps/renovate)) +* Publish to OSSRH rather than Bintray (PR [#3180](https://github.com/javaparser/javaparser/pull/3180) by [@MysterAitch](https://github.com/MysterAitch)) +* Remove unused JUnit Pioneer dependency (PR [#3179](https://github.com/javaparser/javaparser/pull/3179) by [@MysterAitch](https://github.com/MysterAitch)) +* Verify builds test correctly under JDK16 (PR [#3175](https://github.com/javaparser/javaparser/pull/3175) by [@MysterAitch](https://github.com/MysterAitch)) +* update renovate to include "dependencies" label on PRs (PR [#3174](https://github.com/javaparser/javaparser/pull/3174) by [@MysterAitch](https://github.com/MysterAitch)) +* chore(deps): update dependency com.google.guava:guava to v30.1.1-jre (PR [#3172](https://github.com/javaparser/javaparser/pull/3172) by [@renovate[bot]](https://github.com/apps/renovate)) ### :heart: Contributors @@ -1653,6 +1239,8 @@ Thank You to all contributors who worked on this release! * [@4everTheOne](https://github.com/4everTheOne) * [@Col-E](https://github.com/Col-E) + + Version 3.20.0 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/181?closed=1) @@ -1703,8 +1291,7 @@ Version 3.19.0 (PR [#2950](https://github.com/javaparser/javaparser/pull/2950), by [@jlerbsc](https://github.com/jlerbsc)) * Adding interface Printable for printer (PR [#2971](https://github.com/javaparser/javaparser/pull/2971), by [@jlerbsc](https://github.com/jlerbsc)) -* Major update for pretty print, adding interfaces for printer configuration, printer, ... and deprecated old - PrettyPrinter API +* Major update for pretty print, adding interfaces for printer configuration, printer, ... and deprecated old PrettyPrinter API (PR [#2974](https://github.com/javaparser/javaparser/pull/2974), by [@jlerbsc](https://github.com/jlerbsc)) * Adding method descriptor resolution closes #2059 (PR [#2976](https://github.com/javaparser/javaparser/pull/2976), by [@jlerbsc](https://github.com/jlerbsc)) @@ -1747,8 +1334,7 @@ Version 3.19.0 (PR [#3000](https://github.com/javaparser/javaparser/pull/3000), by [@jlerbsc](https://github.com/jlerbsc)) * Manage memory on test suite (clear internal cache to release memory) (PR [#3001](https://github.com/javaparser/javaparser/pull/3001), by [@jlerbsc](https://github.com/jlerbsc)) -* Remove the PhantomNodeLogic that generates memory issues when LexicalPreservingPrinter is used. Phantom node is now an - attribut of each node. This is an optimization of the JP memory usage. +* Remove the PhantomNodeLogic that generates memory issues when LexicalPreservingPrinter is used. Phantom node is now an attribut of each node. This is an optimization of the JP memory usage. (PR [#3002](https://github.com/javaparser/javaparser/pull/3002), by [@jlerbsc](https://github.com/jlerbsc)) * Make the visit order of ModifierVisitor more consistent. (PR [#3011](https://github.com/javaparser/javaparser/pull/3011), by [@mernst](https://github.com/mernst)) @@ -1768,25 +1354,23 @@ Version 3.19.0 (PR [#2981](https://github.com/javaparser/javaparser/pull/2981), by [@jlerbsc](https://github.com/jlerbsc)) * Partially fix the issue #1743 ConditionalExpr resolves to wrong type (PR [#2982](https://github.com/javaparser/javaparser/pull/2982), by [@jlerbsc](https://github.com/jlerbsc)) -* Partially fix issue #1743 ConditionalExpr resolves to wrong type - trying to manage reference condition expression but - lub (least upper bound) function is not yet implemented +* Partially fix issue #1743 ConditionalExpr resolves to wrong type - trying to manage reference condition expression but lub (least upper bound) function is not yet implemented (PR [#3004](https://github.com/javaparser/javaparser/pull/3004), by [@jlerbsc](https://github.com/jlerbsc)) -* Issue #2987 StackOverflow error +* Issue #2987 StackOverflow error (PR [#3006](https://github.com/javaparser/javaparser/pull/3006), by [@jlerbsc](https://github.com/jlerbsc)) * Issue #1774 Ensure the correct type is calculated for all binary expressions and add unary primitive promotion (PR [#3007](https://github.com/javaparser/javaparser/pull/3007), by [@jlerbsc](https://github.com/jlerbsc)) * Issue #2995 Cannot resolve ClassOrInterfaceType of nested ObjectCreationExpr (PR [#3019](https://github.com/javaparser/javaparser/pull/3019), by [@jlerbsc](https://github.com/jlerbsc)) -* Issue #1634 Missing EOL when add imports if the class not exist imports before +* Issue #1634 Missing EOL when add imports if the class not exist imports before (PR [#3020](https://github.com/javaparser/javaparser/pull/3020), by [@jlerbsc](https://github.com/jlerbsc)) -* Issue #3024 methodCallExpr.resolve() StackOverflowError +* Issue #3024 methodCallExpr.resolve() StackOverflowError (PR [#3025](https://github.com/javaparser/javaparser/pull/3025), by [@jlerbsc](https://github.com/jlerbsc)) -* Issue #3027 Unable to parse class with generic parameter using JavaParserTypeSolver +* Issue #3027 Unable to parse class with generic parameter using JavaParserTypeSolver (PR [#3029](https://github.com/javaparser/javaparser/pull/3029), by [@jlerbsc](https://github.com/jlerbsc)) -* Issue #3030 NoSuchElementException when solving type +* Issue #3030 NoSuchElementException when solving type (PR [#3031](https://github.com/javaparser/javaparser/pull/3031), by [@4everTheOne](https://github.com/4everTheOne)) -* Issue 3028 -- Changed MethodResolutionLogic to deal with multiple candidates with varargs when varargs have not been - specified in the call. +* Issue 3028 -- Changed MethodResolutionLogic to deal with multiple candidates with varargs when varargs have not been specified in the call. (PR [#3032](https://github.com/javaparser/javaparser/pull/3032), by [@greggers123](https://github.com/greggers123)) * Issue #1834 Improving annotation support: Implement ResolvedAnnotationDeclaration#getDefaultValue() (PR [#3055](https://github.com/javaparser/javaparser/pull/3055), by [@jlerbsc](https://github.com/jlerbsc)) @@ -1804,58 +1388,54 @@ Version 3.18.0 ### Added * Add a convenient method (hasRange) to the interface NodeWithRange - (PR [#2929](https://github.com/javaparser/javaparser/pull/2929), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2929](https://github.com/javaparser/javaparser/pull/2929), by [@jlerbsc](https://github.com/jlerbsc)) * Add test case to issue 1017 LambdaExpr left side too permissive - (PR [#2946](https://github.com/javaparser/javaparser/pull/2946), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2946](https://github.com/javaparser/javaparser/pull/2946), by [@jlerbsc](https://github.com/jlerbsc)) * Added Pattern Matching for instanceof (Java 14 preview, Java 15 second preview, Java 16 targeted release) - (PR [#2654](https://github.com/javaparser/javaparser/pull/2654), by [@MysterAitch](https://github.com/MysterAitch)) -* Added java 15 (latest released) and java 16 (bleeding edge) language level options, incl. some validators / post - processors / configuration options - (PR [#2959](https://github.com/javaparser/javaparser/pull/2959), by [@MysterAitch](https://github.com/MysterAitch)) + (PR [#2654](https://github.com/javaparser/javaparser/pull/2654), by [@MysterAitch](https://github.com/MysterAitch)) +* Added java 15 (latest released) and java 16 (bleeding edge) language level options, incl. some validators / post processors / configuration options + (PR [#2959](https://github.com/javaparser/javaparser/pull/2959), by [@MysterAitch](https://github.com/MysterAitch)) ### Changed * Minor change in PrettyPrinterConfiguration : adding default char in enum IndentType - (PR [#2948](https://github.com/javaparser/javaparser/pull/2948), by [@jlerbsc](https://github.com/jlerbsc)) -* Minor refactoring rename interface Printable to Stringable. Something that has a printable form. I.e., it can be - converted to a user-facing String - (PR [#2949](https://github.com/javaparser/javaparser/pull/2949), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2948](https://github.com/javaparser/javaparser/pull/2948), by [@jlerbsc](https://github.com/jlerbsc)) +* Minor refactoring rename interface Printable to Stringable. Something that has a printable form. I.e., it can be converted to a user-facing String + (PR [#2949](https://github.com/javaparser/javaparser/pull/2949), by [@jlerbsc](https://github.com/jlerbsc)) * Adding interface Printable for printer - (PR [#2950](https://github.com/javaparser/javaparser/pull/2950), by [@jlerbsc](https://github.com/jlerbsc)) -* Minor refactoring in ResolvedReferenceType and add corresponding tests - (PR [#2955](https://github.com/javaparser/javaparser/pull/2955), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2950](https://github.com/javaparser/javaparser/pull/2950), by [@jlerbsc](https://github.com/jlerbsc)) +* Minor refactoring in ResolvedReferenceType and add corresponding tests + (PR [#2955](https://github.com/javaparser/javaparser/pull/2955), by [@jlerbsc](https://github.com/jlerbsc)) * Tweak the property generator to add imports when generating and improve the typecastinggenerator's error message - (PR [#2957](https://github.com/javaparser/javaparser/pull/2957), by [@MysterAitch](https://github.com/MysterAitch)) + (PR [#2957](https://github.com/javaparser/javaparser/pull/2957), by [@MysterAitch](https://github.com/MysterAitch)) * Bump mockito-core from 3.6.0 to 3.6.28 - (PR [#2942](https://github.com/javaparser/javaparser/pull/2942), by dependabot + (PR [#2942](https://github.com/javaparser/javaparser/pull/2942), by dependabot ### Removed - -* Removed .travis.yml -- per #2919 - (PR [#2958](https://github.com/javaparser/javaparser/pull/2958), by [@MysterAitch](https://github.com/MysterAitch)) +* Removed .travis.yml -- per #2919 + (PR [#2958](https://github.com/javaparser/javaparser/pull/2958), by [@MysterAitch](https://github.com/MysterAitch)) ### Fixed * Issue 2909 Improving search for the most relevant declaration of the specified class - (PR [#2927](https://github.com/javaparser/javaparser/pull/2927), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2927](https://github.com/javaparser/javaparser/pull/2927), by [@jlerbsc](https://github.com/jlerbsc)) * Issue 2926 NoSuchElementException in PhantomNodeLogic after adding node - (PR [#2930](https://github.com/javaparser/javaparser/pull/2930), by [@jlerbsc](https://github.com/jlerbsc)) -* Issue 2909 try different bottom / up and try with type solver strategies - (PR [#2931](https://github.com/javaparser/javaparser/pull/2931), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2930](https://github.com/javaparser/javaparser/pull/2930), by [@jlerbsc](https://github.com/jlerbsc)) +* Issue 2909 try different bottom / up and try with type solver strategies + (PR [#2931](https://github.com/javaparser/javaparser/pull/2931), by [@jlerbsc](https://github.com/jlerbsc)) * Issue 2936 Triggering observer notifications for the NodeList iterator - (PR [#2938](https://github.com/javaparser/javaparser/pull/2938), by [@MysterAitch](https://github.com/MysterAitch)) -* Issue 2065 Problem resolving type of lambda with Math method invocation inside - (PR [#2945](https://github.com/javaparser/javaparser/pull/2945), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2938](https://github.com/javaparser/javaparser/pull/2938), by [@MysterAitch](https://github.com/MysterAitch)) +* Issue 2065 Problem resolving type of lambda with Math method invocation inside + (PR [#2945](https://github.com/javaparser/javaparser/pull/2945), by [@jlerbsc](https://github.com/jlerbsc)) * Issue 2740 Issue related to a method call in an anonymous class on a field with a private visibility - (PR [#2947](https://github.com/javaparser/javaparser/pull/2947), by [@jlerbsc](https://github.com/jlerbsc)) -* Issue 2951 Cannot solve function with List argument defined in jar - (PR [#2952](https://github.com/javaparser/javaparser/pull/2952), by [@qzchenwl](https://github.com/qzchenwl)) -* Issue 2781 Resolve Stack overflow occurs when the name of the interface implemented by the class is the same as the - name of the internal class - (PR [#2956](https://github.com/javaparser/javaparser/pull/2956), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2947](https://github.com/javaparser/javaparser/pull/2947), by [@jlerbsc](https://github.com/jlerbsc)) +* Issue 2951 Cannot solve function with List argument defined in jar + (PR [#2952](https://github.com/javaparser/javaparser/pull/2952), by [@qzchenwl](https://github.com/qzchenwl)) +* Issue 2781 Resolve Stack overflow occurs when the name of the interface implemented by the class is the same as the name of the internal class + (PR [#2956](https://github.com/javaparser/javaparser/pull/2956), by [@jlerbsc](https://github.com/jlerbsc)) * Issue 2953 UnsolvedSymbolException throw when resolving method in enum class implement in interface by default. - (PR [#2954](https://github.com/javaparser/javaparser/pull/2954), by [@qzchenwl](https://github.com/qzchenwl)) + (PR [#2954](https://github.com/javaparser/javaparser/pull/2954), by [@qzchenwl](https://github.com/qzchenwl)) * Fixed MethodCallExprContext generic parameter issue. (NullType must not fail matchTypeParameters) - (PR [#2939](https://github.com/javaparser/javaparser/pull/2939), by [@zcbbpo](https://github.com/zcbbpo)) -* Issue 2943 UnsolvedSymbolException thrown on `Stream.()` - (PR [#2961](https://github.com/javaparser/javaparser/pull/2961), by [@qzchenwl](https://github.com/qzchenwl)) -* Issue 1945 JavaParser choking on multiple generic method calls on the same line - (PR [#2966](https://github.com/javaparser/javaparser/pull/2966), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2939](https://github.com/javaparser/javaparser/pull/2939), by [@zcbbpo](https://github.com/zcbbpo)) +* Issue 2943 UnsolvedSymbolException thrown on `Stream.()` + (PR [#2961](https://github.com/javaparser/javaparser/pull/2961), by [@qzchenwl](https://github.com/qzchenwl)) +* Issue 1945 JavaParser choking on multiple generic method calls on the same line + (PR [#2966](https://github.com/javaparser/javaparser/pull/2966), by [@jlerbsc](https://github.com/jlerbsc)) Version 3.17.0 @@ -1863,103 +1443,101 @@ Version 3.17.0 [issues resolved](https://github.com/javaparser/javaparser/milestone/178?closed=1) ### Fixed * BEHAVIOUR CHANGE: Fix ArrayType brackets precedence - (PR [#2758](https://github.com/javaparser/javaparser/pull/2758), by [@iTakeshi](https://github.com/iTakeshi)) + (PR [#2758](https://github.com/javaparser/javaparser/pull/2758), by [@iTakeshi](https://github.com/iTakeshi)) * BEHAVIOUR CHANGE: Issue 2535 Comments within method missing indentation - (PR [#2918](https://github.com/javaparser/javaparser/pull/2918), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2918](https://github.com/javaparser/javaparser/pull/2918), by [@jlerbsc](https://github.com/jlerbsc)) * Issue 2290 Removing the second instance of a cloned statement within a block fails - (PR [#2892](https://github.com/javaparser/javaparser/pull/2892), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2892](https://github.com/javaparser/javaparser/pull/2892), by [@jlerbsc](https://github.com/jlerbsc)) * Issue 2393 Apply difference in node text after if condition replacement - (PR [#2895](https://github.com/javaparser/javaparser/pull/2895), by [@jlerbsc](https://github.com/jlerbsc)) -* Issue 2406 Symbol solver fails to solve generic array type - (PR [#2896](https://github.com/javaparser/javaparser/pull/2896), by [@jlerbsc](https://github.com/jlerbsc)) -* Issue 2489 SymbolSolver choosing wrong method after resolving - (PR [#2898](https://github.com/javaparser/javaparser/pull/2898), by [@jlerbsc](https://github.com/jlerbsc)) -* Issue 2062 Type inference issue for method arguments - (PR [#2900](https://github.com/javaparser/javaparser/pull/2900), by [@jlerbsc](https://github.com/jlerbsc)) -* Fix LOOKAHEAD for ReferenceType - (PR [#2904](https://github.com/javaparser/javaparser/pull/2904), by [@mernst](https://github.com/mernst)) -* Issue 2578 Orphaned Comments exist but not printed on unrelated change to AST - (PR [#2916](https://github.com/javaparser/javaparser/pull/2916), by [@jlerbsc](https://github.com/jlerbsc)) -* Issue 2909 Unexpected result when solving an outer class reference - (PR [#2914](https://github.com/javaparser/javaparser/pull/2914), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2895](https://github.com/javaparser/javaparser/pull/2895), by [@jlerbsc](https://github.com/jlerbsc)) +* Issue 2406 Symbol solver fails to solve generic array type + (PR [#2896](https://github.com/javaparser/javaparser/pull/2896), by [@jlerbsc](https://github.com/jlerbsc)) +* Issue 2489 SymbolSolver choosing wrong method after resolving + (PR [#2898](https://github.com/javaparser/javaparser/pull/2898), by [@jlerbsc](https://github.com/jlerbsc)) +* Issue 2062 Type inference issue for method arguments + (PR [#2900](https://github.com/javaparser/javaparser/pull/2900), by [@jlerbsc](https://github.com/jlerbsc)) +* Fix LOOKAHEAD for ReferenceType + (PR [#2904](https://github.com/javaparser/javaparser/pull/2904), by [@mernst](https://github.com/mernst)) +* Issue 2578 Orphaned Comments exist but not printed on unrelated change to AST + (PR [#2916](https://github.com/javaparser/javaparser/pull/2916), by [@jlerbsc](https://github.com/jlerbsc)) +* Issue 2909 Unexpected result when solving an outer class reference + (PR [#2914](https://github.com/javaparser/javaparser/pull/2914), by [@jlerbsc](https://github.com/jlerbsc)) * Issue 2909 Improving how to resolve inner classes - (PR [#2920](https://github.com/javaparser/javaparser/pull/2920), by [@jlerbsc](https://github.com/jlerbsc)) - (PR [#2921](https://github.com/javaparser/javaparser/pull/2921), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2920](https://github.com/javaparser/javaparser/pull/2920), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2921](https://github.com/javaparser/javaparser/pull/2921), by [@jlerbsc](https://github.com/jlerbsc)) * Ensure spaces between annotations and types for lexical-preserving printing - (PR [#2795](https://github.com/javaparser/javaparser/pull/2918), by [@jwaataja](https://github.com/jwaataja)) + (PR [#2795](https://github.com/javaparser/javaparser/pull/2918), by [@jwaataja](https://github.com/jwaataja)) ### Changed * Updated dependencies, and dependabot config - (PR [#2893](https://github.com/javaparser/javaparser/pull/2893), by [@mysteraitch](https://github.com/mysteraitch)) - (PR [#2902](https://github.com/javaparser/javaparser/pull/2902), by Dependabot) -* Issue 2613 Auto update the version in the readme - (PR [#2903](https://github.com/javaparser/javaparser/pull/2903), by [@mysteraitch](https://github.com/mysteraitch)) + (PR [#2893](https://github.com/javaparser/javaparser/pull/2893), by [@mysteraitch](https://github.com/mysteraitch)) + (PR [#2902](https://github.com/javaparser/javaparser/pull/2902), by Dependabot) +* Issue 2613 Auto update the version in the readme + (PR [#2903](https://github.com/javaparser/javaparser/pull/2903), by [@mysteraitch](https://github.com/mysteraitch)) * Fix jacoco and enable codecov.io action - (PR [#2906](https://github.com/javaparser/javaparser/pull/2906), by [@mysteraitch](https://github.com/mysteraitch)) -* Minor refactoring of binary numeric promotion - (PR [#2915](https://github.com/javaparser/javaparser/pull/2915), by [@jlerbsc](https://github.com/jlerbsc)) -* Testcases for logical and/or - (PR [#2907](https://github.com/javaparser/javaparser/pull/2907), by [@mysteraitch](https://github.com/mysteraitch)) -* Format and document the grammar - (PR [#2901](https://github.com/javaparser/javaparser/pull/2901), by [@mysteraitch](https://github.com/mysteraitch)) - (PR [#2913](https://github.com/javaparser/javaparser/pull/2913), by [@mernst](https://github.com/mernst)) + (PR [#2906](https://github.com/javaparser/javaparser/pull/2906), by [@mysteraitch](https://github.com/mysteraitch)) +* Minor refactoring of binary numeric promotion + (PR [#2915](https://github.com/javaparser/javaparser/pull/2915), by [@jlerbsc](https://github.com/jlerbsc)) +* Testcases for logical and/or + (PR [#2907](https://github.com/javaparser/javaparser/pull/2907), by [@mysteraitch](https://github.com/mysteraitch)) +* Format and document the grammar + (PR [#2901](https://github.com/javaparser/javaparser/pull/2901), by [@mysteraitch](https://github.com/mysteraitch)) + (PR [#2913](https://github.com/javaparser/javaparser/pull/2913), by [@mernst](https://github.com/mernst)) Version 3.16.3 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/177?closed=1) * ADDED: Created MANY test cases for older issues resolved but not directly linked/closed. - (PRs - [#2838](https://github.com/javaparser/javaparser/pull/2838), - [#2842](https://github.com/javaparser/javaparser/pull/2842), - [#2843](https://github.com/javaparser/javaparser/pull/2843), - [#2852](https://github.com/javaparser/javaparser/pull/2852), - [#2853](https://github.com/javaparser/javaparser/pull/2853), - [#2854](https://github.com/javaparser/javaparser/pull/2854), - [#2855](https://github.com/javaparser/javaparser/pull/2855), - [#2867](https://github.com/javaparser/javaparser/pull/2867), - [#2868](https://github.com/javaparser/javaparser/pull/2868), - [#2862](https://github.com/javaparser/javaparser/pull/2862), - [#2873](https://github.com/javaparser/javaparser/pull/2873), - by [@jlerbsc](https://github.com/jlerbsc) - ) + (PRs + [#2838](https://github.com/javaparser/javaparser/pull/2838), + [#2842](https://github.com/javaparser/javaparser/pull/2842), + [#2843](https://github.com/javaparser/javaparser/pull/2843), + [#2852](https://github.com/javaparser/javaparser/pull/2852), + [#2853](https://github.com/javaparser/javaparser/pull/2853), + [#2854](https://github.com/javaparser/javaparser/pull/2854), + [#2855](https://github.com/javaparser/javaparser/pull/2855), + [#2867](https://github.com/javaparser/javaparser/pull/2867), + [#2868](https://github.com/javaparser/javaparser/pull/2868), + [#2862](https://github.com/javaparser/javaparser/pull/2862), + [#2873](https://github.com/javaparser/javaparser/pull/2873), + by [@jlerbsc](https://github.com/jlerbsc) + ) * ADDED: Added helper method to `ResolvedPrimitiveType.java` which checks if it is a boolean - (PR [#2856](https://github.com/javaparser/javaparser/pull/2856), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2856](https://github.com/javaparser/javaparser/pull/2856), by [@jlerbsc](https://github.com/jlerbsc)) * ADDED: Added helper method to `ResolvedPrimitiveType.java` which returns all numeric types - (PR [#2858](https://github.com/javaparser/javaparser/pull/2858), by [@jlerbsc](https://github.com/jlerbsc)) -* ADDED/CHANGED: Minor refactoring - formatting code and adding convenient methods to `TypeHelper` - and `ResolvedPrimitveType` - (PR [#2860](https://github.com/javaparser/javaparser/pull/2860), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2858](https://github.com/javaparser/javaparser/pull/2858), by [@jlerbsc](https://github.com/jlerbsc)) +* ADDED/CHANGED: Minor refactoring - formatting code and adding convenient methods to `TypeHelper` and `ResolvedPrimitveType` + (PR [#2860](https://github.com/javaparser/javaparser/pull/2860), by [@jlerbsc](https://github.com/jlerbsc)) * ADDED: Allow the symbol resolver for a `SymbolSolverCollectionStrategy` to be set via the given parser configuration - (PR [#2864](https://github.com/javaparser/javaparser/pull/2864), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2864](https://github.com/javaparser/javaparser/pull/2864), by [@jlerbsc](https://github.com/jlerbsc)) * FIXED: `MethodResolutionLogic.findMostApplicable` not return correct symbol reference when resolving overloaded method - (PR [#2866](https://github.com/javaparser/javaparser/pull/2866), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2866](https://github.com/javaparser/javaparser/pull/2866), by [@jlerbsc](https://github.com/jlerbsc)) * FIXED: Updated `AbstractSymbolResolutionTest.java` with better `@BeforeEach`/`@AfterEach` - (PR [#2871](https://github.com/javaparser/javaparser/pull/2871), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2871](https://github.com/javaparser/javaparser/pull/2871), by [@jlerbsc](https://github.com/jlerbsc)) * FIXED: `TypeResolver` fails on method with args to static imported fields - (PR [#2872](https://github.com/javaparser/javaparser/pull/2872), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2872](https://github.com/javaparser/javaparser/pull/2872), by [@jlerbsc](https://github.com/jlerbsc)) * FIXED: Fix issue Resolution error for non-generic constructor if generic constructor declared - (PR [#2874](https://github.com/javaparser/javaparser/pull/2874), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2874](https://github.com/javaparser/javaparser/pull/2874), by [@jlerbsc](https://github.com/jlerbsc)) * FIXED: Fix issue Fails to calculate the type of a generic return type constructed from a Primitive type - (PR [#2875](https://github.com/javaparser/javaparser/pull/2875), by [@jlerbsc](https://github.com/jlerbsc)) -* FIXED: Fix issue Can't get qualified signature of a resolved method inside a Constant Enum declaration - (PR [#2876](https://github.com/javaparser/javaparser/pull/2876), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2875](https://github.com/javaparser/javaparser/pull/2875), by [@jlerbsc](https://github.com/jlerbsc)) +* FIXED: Fix issue Can't get qualified signature of a resolved method inside a Constant Enum declaration + (PR [#2876](https://github.com/javaparser/javaparser/pull/2876), by [@jlerbsc](https://github.com/jlerbsc)) * FIXED: Fix issue Constructor resolution error for overloaded variadic constructor - (PR [#2877](https://github.com/javaparser/javaparser/pull/2877), by [@jlerbsc](https://github.com/jlerbsc)) -* FIXED: Fix issue Unable to find the constructor declaration when the argument list contains - multiple `Optional.empty()` for different `Optional` - (PR [#2880](https://github.com/javaparser/javaparser/pull/2880), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2877](https://github.com/javaparser/javaparser/pull/2877), by [@jlerbsc](https://github.com/jlerbsc)) +* FIXED: Fix issue Unable to find the constructor declaration when the argument list contains multiple `Optional.empty()` for different `Optional` + (PR [#2880](https://github.com/javaparser/javaparser/pull/2880), by [@jlerbsc](https://github.com/jlerbsc)) * FIXED: Fix issue Solving symbol as value in the case where the scope is a constraint - (PR [#2883](https://github.com/javaparser/javaparser/pull/2883), by [@jlerbsc](https://github.com/jlerbsc)) + (PR [#2883](https://github.com/javaparser/javaparser/pull/2883), by [@jlerbsc](https://github.com/jlerbsc)) Version 3.16.2 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/176?closed=1) * FIXED: Enhanced the handling of line separator, introducing an enum `LineSeparator` that can be used. - (PR [#2685](https://github.com/javaparser/javaparser/pull/2685), by [@MysterAitch](https://github.com/MysterAitch)) -* FIXED: The generated metamodel classes now have the `@Generated` annotation - (PR [#2706](https://github.com/javaparser/javaparser/pull/2706), by [@MysterAitch](https://github.com/MysterAitch)) + (PR [#2685](https://github.com/javaparser/javaparser/pull/2685), by [@MysterAitch](https://github.com/MysterAitch)) +* FIXED: The generated metamodel classes now have the `@Generated` annotation + (PR [#2706](https://github.com/javaparser/javaparser/pull/2706), by [@MysterAitch](https://github.com/MysterAitch)) * various other bugfixes and enhancements @@ -1967,61 +1545,55 @@ Version 3.16.1 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/175?closed=1) * FIXED: Fixed typo - (PR [#2697](https://github.com/javaparser/javaparser/pull/2697), by [@hfreeb](https://github.com/hfreeb)) + (PR [#2697](https://github.com/javaparser/javaparser/pull/2697), by [@hfreeb](https://github.com/hfreeb)) Version 3.16.0 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/174?closed=1) -There are two breaking changes within this release. +There are two breaking changes within this release. If you would like assistance with upgrading, get in touch. -* FIXED: Edits to the value of a string value are now correctly handled for use with Lexical Preservation - (PR [#2646](https://github.com/javaparser/javaparser/pull/2646), by [@lemoncurry](https://github.com/lemoncurry)) -* FIXED: Edits to the value of other literal values also now handled - (PR [#2679](https://github.com/javaparser/javaparser/pull/2679), by [@MysterAitch](https://github.com/MysterAitch)) -* BREAKING CHANGE: Tokens relating to literal values now have the category of `JavaToken.Category.LITERAL` ( - previously `JavaToken.Category.KEYWORD`) - (PR [#2679](https://github.com/javaparser/javaparser/pull/2679), by [@MysterAitch](https://github.com/MysterAitch)) -* FIXED: Add symbol solver support for variadic parameters given zero or more than one argument, and when an array is - given - (PR [#2675](https://github.com/javaparser/javaparser/pull/2675), by [@hfreeb](https://github.com/hfreeb)) -* CHANGED: Added the keyword `synchronized` to `JavaParserFacade#get`. This is specifically in response to #2668 - - JavaParser is not otherwise threadsafe. - (PR [#2694](https://github.com/javaparser/javaparser/pull/2694), by [@MysterAitch](https://github.com/MysterAitch)) +* FIXED: Edits to the value of a string value are now correctly handled for use with Lexical Preservation + (PR [#2646](https://github.com/javaparser/javaparser/pull/2646), by [@lemoncurry](https://github.com/lemoncurry)) +* FIXED: Edits to the value of other literal values also now handled + (PR [#2679](https://github.com/javaparser/javaparser/pull/2679), by [@MysterAitch](https://github.com/MysterAitch)) +* BREAKING CHANGE: Tokens relating to literal values now have the category of `JavaToken.Category.LITERAL` (previously `JavaToken.Category.KEYWORD`) + (PR [#2679](https://github.com/javaparser/javaparser/pull/2679), by [@MysterAitch](https://github.com/MysterAitch)) +* FIXED: Add symbol solver support for variadic parameters given zero or more than one argument, and when an array is given + (PR [#2675](https://github.com/javaparser/javaparser/pull/2675), by [@hfreeb](https://github.com/hfreeb)) +* CHANGED: Added the keyword `synchronized` to `JavaParserFacade#get`. This is specifically in response to #2668 - JavaParser is not otherwise threadsafe. + (PR [#2694](https://github.com/javaparser/javaparser/pull/2694), by [@MysterAitch](https://github.com/MysterAitch)) * BREAKING CHANGE: The following methods now return `Optional<>` _(as do all classes which implement/extend them)_: - `ResolvedClassDeclaration#getSuperClass()`, - `ResolvedReferenceType#getTypeDeclaration()`. - _Note that Converting to use optional should be as simple as adding `.get()`, given that any cases where - returning `Optional.empty()` causes problems would have also previously triggered a `NullPointerException`. - You might also use `.orElseThrow()`._ - (PR [#2693](https://github.com/javaparser/javaparser/pull/2693), by [@MysterAitch](https://github.com/MysterAitch)) -* CHANGED: Added some temporary logic to allow tests to use slightly different expected results based on the version of - java used _(e.g. `java.lang.Object.registerNatives()` removed in JDK14)_ - (PR [#2637](https://github.com/javaparser/javaparser/pull/2637), by [@EFregnan](https://github.com/EFregnan)) + `ResolvedClassDeclaration#getSuperClass()`, + `ResolvedReferenceType#getTypeDeclaration()`. + _Note that Converting to use optional should be as simple as adding `.get()`, given that any cases where returning `Optional.empty()` causes problems would have also previously triggered a `NullPointerException`. + You might also use `.orElseThrow()`._ + (PR [#2693](https://github.com/javaparser/javaparser/pull/2693), by [@MysterAitch](https://github.com/MysterAitch)) +* CHANGED: Added some temporary logic to allow tests to use slightly different expected results based on the version of java used _(e.g. `java.lang.Object.registerNatives()` removed in JDK14)_ + (PR [#2637](https://github.com/javaparser/javaparser/pull/2637), by [@EFregnan](https://github.com/EFregnan)) * FIXED: Fix resolving overloaded methods of external types - (PR [#2687](https://github.com/javaparser/javaparser/pull/2687), by [@maartenc](https://github.com/maartenc)) + (PR [#2687](https://github.com/javaparser/javaparser/pull/2687), by [@maartenc](https://github.com/maartenc)) * FIXED: Fix resolving method references on expressions other than ReferenceType::methodname - (PR [#2674](https://github.com/javaparser/javaparser/pull/2674), by [@maartenc](https://github.com/maartenc)) + (PR [#2674](https://github.com/javaparser/javaparser/pull/2674), by [@maartenc](https://github.com/maartenc)) + + Version 3.15.22 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/173?closed=1) - -* REVERT: Rollback of upgrade to `ph-javacc-maven-plugin` from v4.1.3 to v4.1.2 - _(this undoes the transitive dependency update `parser-generator-cc` from v1.1.2 to v1.1.1, which appears to have - isuse with handling tokens longer than the buffer length)_ - ([#2646](https://github.com/javaparser/javaparser/pull/2646)) +* REVERT: Rollback of upgrade to `ph-javacc-maven-plugin` from v4.1.3 to v4.1.2 + _(this undoes the transitive dependency update `parser-generator-cc` from v1.1.2 to v1.1.1, which appears to have isuse with handling tokens longer than the buffer length)_ + ([#2646](https://github.com/javaparser/javaparser/pull/2646)) * ADDED: Support resolving an enum's `valueOf` method - ([#2652](https://github.com/javaparser/javaparser/pull/2652)) -* FIXED: Fixed build warning -- bnd-maven-plugin flagging missing id - ([#2605](https://github.com/javaparser/javaparser/pull/2605)) -* FIXED: Fixed cases where nodes added after a trailing comment would incorrectly be added to the same line (thus be - part of the comment) - ([#2646](https://github.com/javaparser/javaparser/pull/2646)) + ([#2652](https://github.com/javaparser/javaparser/pull/2652)) +* FIXED: Fixed build warning -- bnd-maven-plugin flagging missing id + ([#2605](https://github.com/javaparser/javaparser/pull/2605)) +* FIXED: Fixed cases where nodes added after a trailing comment would incorrectly be added to the same line (thus be part of the comment) + ([#2646](https://github.com/javaparser/javaparser/pull/2646)) * FIXED: Fixed resolving overloaded static method references (e.g. `String::valueOf` in a stream map/filter) - ([#2662](https://github.com/javaparser/javaparser/pull/2662)) + ([#2662](https://github.com/javaparser/javaparser/pull/2662)) Version 3.15.21 @@ -2029,21 +1601,18 @@ Version 3.15.21 [issues resolved](https://github.com/javaparser/javaparser/milestone/172?closed=1) * DEPRECATED: Deprecated and documented `JarTypeSolver#getJarTypeSolver(String)`, with a view to later removal. - ([#2598](https://github.com/javaparser/javaparser/pull/2598)) - ([#2622](https://github.com/javaparser/javaparser/pull/2622)) + ([#2598](https://github.com/javaparser/javaparser/pull/2598)) + ([#2622](https://github.com/javaparser/javaparser/pull/2622)) * FIXED: Fix issue #2552 : UnsupportedOperationException caused by resolving inner annotation - ([#2553](https://github.com/javaparser/javaparser/pull/2553)) -* FIXED: Parents of `NodeList`s now correctly retain their parent when a child is replaced - ([#2594](https://github.com/javaparser/javaparser/pull/2594)) -* FIXED: Fix JavaParserClassDeclaration canBeAssignedTo() to not cause a recursion when a node is its own parent ( - e.g. `java.lang.Object`) - ([#2608](https://github.com/javaparser/javaparser/pull/2608)) -* FIXED: Fix replacing an expression preceded by a comment (`LexicalPreservation` would previously throw - an `UnsupportedOperation`) - ([#2611](https://github.com/javaparser/javaparser/pull/2611)) -* FIXED: The collection strategies now correctly take into account the parser configuration that is passed in via the - constructor. - ([#2619](https://github.com/javaparser/javaparser/pull/2619)) + ([#2553](https://github.com/javaparser/javaparser/pull/2553)) +* FIXED: Parents of `NodeList`s now correctly retain their parent when a child is replaced + ([#2594](https://github.com/javaparser/javaparser/pull/2594)) +* FIXED: Fix JavaParserClassDeclaration canBeAssignedTo() to not cause a recursion when a node is its own parent (e.g. `java.lang.Object`) + ([#2608](https://github.com/javaparser/javaparser/pull/2608)) +* FIXED: Fix replacing an expression preceded by a comment (`LexicalPreservation` would previously throw an `UnsupportedOperation`) + ([#2611](https://github.com/javaparser/javaparser/pull/2611)) +* FIXED: The collection strategies now correctly take into account the parser configuration that is passed in via the constructor. + ([#2619](https://github.com/javaparser/javaparser/pull/2619)) Version 3.15.20 @@ -2058,30 +1627,29 @@ Version 3.15.18 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/170?closed=1) -* CHANGED: Dependencies should now all be up-to-date. +* CHANGED: Dependencies should now all be up-to-date. ([#2572](https://github.com/javaparser/javaparser/pull/2572) / [#2581](https://github.com/javaparser/javaparser/pull/2581)) - - Note that the JavaCC update introduced a breaking change that now requires a StreamProvider to be passed a charset - if using an InputStream source. -* FIXED (possible CHANGED/BREAKING): + - Note that the JavaCC update introduced a breaking change that now requires a StreamProvider to be passed a charset if using an InputStream source. +* FIXED (possible CHANGED/BREAKING): Improvements have been made to method `PositionUtils#nodeContains()` for clarity and precision in behaviour. ([#2502](https://github.com/javaparser/javaparser/pull/2502)) - It is believed that there are no changes to behaviour, but if you do see anything please do reach out. - See some additional commentary/thoughts in #2502 * FIXED: Resolving super methodcalls in anonymous inner classes (fixes #1962) - ([#2585](https://github.com/javaparser/javaparser/pull/2585)) + ([#2585](https://github.com/javaparser/javaparser/pull/2585)) * ADDED: `NodeList#getFirst(): Optional` - ([#2502](https://github.com/javaparser/javaparser/pull/2502)) + ([#2502](https://github.com/javaparser/javaparser/pull/2502)) * ADDED: `NodeList#getLast(): Optional` - ([#2502](https://github.com/javaparser/javaparser/pull/2502)) + ([#2502](https://github.com/javaparser/javaparser/pull/2502)) Version 3.15.17 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/169?closed=1) * CHANGED: Merged symbol solver modules, for java 9 module compatibility - ([#2564](https://github.com/javaparser/javaparser/pull/2564)) -* CHANGED: Renamed the pretty printer configuration option `isSpacesBetweenOperators` to `isSpaceAroundOperators` - ([#2555](https://github.com/javaparser/javaparser/pull/2555)) + ([#2564](https://github.com/javaparser/javaparser/pull/2564)) +* CHANGED: Renamed the pretty printer configuration option `isSpacesBetweenOperators` to `isSpaceAroundOperators` + ([#2555](https://github.com/javaparser/javaparser/pull/2555)) Version 3.15.16 ------------------ @@ -2092,14 +1660,14 @@ Version 3.15.15 [issues resolved](https://github.com/javaparser/javaparser/milestone/168?closed=1) * Often requested, finally implemented by [ReallyLiri](https://github.com/ReallyLiri): - configurable cache sizes for the symbol solver. +configurable cache sizes for the symbol solver. Version 3.15.14 (buggy) ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/167?closed=1) * a suggestion for a new Javadoc parsing API was merged too quickly, - causing issues parsing Javadoc while parsing Java normally. +causing issues parsing Javadoc while parsing Java normally. Version 3.15.13 ------------------ @@ -2138,7 +1706,7 @@ Version 3.15.6 Version 3.15.5 ------------------ * BREAKING: bugs have been fixed in how SourceRoot configures parsing, - so behaviour may change (which can be fixed by setting configuration on SourceRoot correctly.) +so behaviour may change (which can be fixed by setting configuration on SourceRoot correctly.) [issues resolved](https://github.com/javaparser/javaparser/milestone/158?closed=1) @@ -2161,8 +1729,8 @@ Version 3.15.1 Version 3.15.0 ------------------ - The funny "PI" version number messed up the release order in the maven site, - so here is a new minor release. - [issues resolved](https://github.com/javaparser/javaparser/milestone/153?closed=1) + so here is a new minor release. +[issues resolved](https://github.com/javaparser/javaparser/milestone/153?closed=1) Version 3.14.16 ------------------ @@ -2172,7 +1740,7 @@ Version 3.14.159265359 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/151?closed=1) -Version 3.14.14 +Version 3.14.14 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/150?closed=1) @@ -2183,25 +1751,25 @@ Version 3.14.13 Version 3.14.12 ------------------ - BREAKING: `NodeWithConstructors` has been merged into `NodeWithMembers`, - so if you don't have a very specific need to only find nodes that support constructors, - you can use `NodeWithMembers` instead. +so if you don't have a very specific need to only find nodes that support constructors, +you can use `NodeWithMembers` instead. [issues resolved](https://github.com/javaparser/javaparser/milestone/148?closed=1) Version 3.14.11 ------------------ - BREAKING: the pseudo-language levels have been turned into constants with the same name in the same place. - With a little luck everything will keep compiling. +With a little luck everything will keep compiling. [issues resolved](https://github.com/javaparser/javaparser/milestone/147?closed=1) Version 3.14.10 (buggy!) ------------------ - BREAKING: Java 13: `break` no longer has an expression, this was part of a language preview in Java 12 - and has been removed in Java 13. +and has been removed in Java 13. - BREAKING: Java 13: `YieldStatement` and the keyword `yield` have been added. - This means the token numbers have changed, and this affects serialization. - If you rely on serialized tokens, be sure to deserialize with your current version and serialize with this version. +This means the token numbers have changed, and this affects serialization. +If you rely on serialized tokens, be sure to deserialize with your current version and serialize with this version. - Java 13: `TextBlockLiteralExpr` has been added. - This release is broken because no identifier called `yield` can be used. @@ -2246,8 +1814,8 @@ Version 3.14.1 Version 3.14.0 ------------------ * BREAKING: `SuperExpr` and `ThisExpr` used to have an `Expression classExpr`. - this has been tightened to `Name typeName` which is more specific and easier to use. - Checking if the expression is a `FieldAccessExpr` or `NameExpr` is no longer needed. +this has been tightened to `Name typeName` which is more specific and easier to use. +Checking if the expression is a `FieldAccessExpr` or `NameExpr` is no longer needed. [issues resolved](https://github.com/javaparser/javaparser/milestone/136?closed=1) @@ -2273,12 +1841,9 @@ Version 3.13.6 Version 3.13.5 ------------------ - -* "BREAKING": `ReferenceType.getDirectAncestors()` no longer returns `java.lang.Object` when called on a `ReferenceType` - of `java.lang.Object`. - This remedies infinite recursions in certain edge cases. If you relied on the old behavior, you have to add - a `ReferenceType` instance of `java.lang.Object` - to the List returned by `ReferenceType.getDirectAncestors()` yourself. +* "BREAKING": `ReferenceType.getDirectAncestors()` no longer returns `java.lang.Object` when called on a `ReferenceType` of `java.lang.Object`. +This remedies infinite recursions in certain edge cases. If you relied on the old behavior, you have to add a `ReferenceType` instance of `java.lang.Object` +to the List returned by `ReferenceType.getDirectAncestors()` yourself. [issues resolved](https://github.com/javaparser/javaparser/milestone/131?closed=1) @@ -2298,8 +1863,7 @@ Version 3.13.2 Version 3.13.1 (buggy!) ------------------ - -* Slightly breaking: most parameters to Log methods now take consumers to avoid evaluating them when not necessary. +* Slightly breaking: most parameters to Log methods now take consumers to avoid evaluating them when not necessary. [issues resolved](https://github.com/javaparser/javaparser/milestone/127?closed=1) @@ -2312,8 +1876,8 @@ Version 3.13.0 (buggy!) Version 3.12.0 ------------------ * "BREAKING": all deprecated code was removed. - If you don't know what to do, try version 3.11.0 and read the Javadoc for the deprecated methods. - It tells you what to use instead. +If you don't know what to do, try version 3.11.0 and read the Javadoc for the deprecated methods. +It tells you what to use instead. [issues resolved](https://github.com/javaparser/javaparser/milestone/124?closed=1) @@ -2321,10 +1885,10 @@ Version 3.11.0 ------------------ * BREAKING: `SwitchEntryStmt` is now `SwitchEntry`, because it was never a statement. * BREAKING: a case in a switch can now have multiple labels, - so `SwitchEntry` no longer has an `Expression label`, - but a `NodeList label`. +so `SwitchEntry` no longer has an `Expression label`, +but a `NodeList label`. * This completes *parsing* support for Java 12. - Symbol resolution is still to be done. +Symbol resolution is still to be done. [issues resolved](https://github.com/javaparser/javaparser/milestone/123?closed=1) @@ -2339,10 +1903,10 @@ Version 3.10.1 Version 3.10.0 ------------------ * slightly breaking: besides `break;` and `break [label];` there is now `break [expression];` like - `break 1+2;` or `break "bye!";` . That means that `BreakStmt` no longer has a `label`, - it has a `value` which is of type `Expression`. - This is to prepare for Java 12 switch expressions. - You can find the details in the Javadoc. +`break 1+2;` or `break "bye!";` . That means that `BreakStmt` no longer has a `label`, +it has a `value` which is of type `Expression`. +This is to prepare for Java 12 switch expressions. +You can find the details in the Javadoc. [issues resolved](https://github.com/javaparser/javaparser/milestone/120?closed=1) @@ -2353,9 +1917,9 @@ Version 3.9.1 Version 3.9.0 ------------------ * MAJOR BREAKAGE: modifiers (like public, static, transient) used to be a special case: - they were enums stored in an EnumSet. - This meant they were not true `Node`s, had to be treated in a special way, and missed some information. - This has now been corrected in [PR 1975](https://github.com/javaparser/javaparser/pull/1975). +they were enums stored in an EnumSet. +This meant they were not true `Node`s, had to be treated in a special way, and missed some information. +This has now been corrected in [PR 1975](https://github.com/javaparser/javaparser/pull/1975). [issues resolved](https://github.com/javaparser/javaparser/milestone/118?closed=1) @@ -2382,8 +1946,7 @@ Version 3.8.0 Version 3.7.1 ------------------ * slightly breaking: the enum constants in JsonToken are now capitalized. -* slightly - breaking: [some obscure methods in the symbol solver changed](https://github.com/javaparser/javaparser/pull/1922) +* slightly breaking: [some obscure methods in the symbol solver changed](https://github.com/javaparser/javaparser/pull/1922) [issues resolved](https://github.com/javaparser/javaparser/milestone/115?closed=1) @@ -2397,14 +1960,14 @@ Version 3.7.0 Version 3.6.27 ------------------ * The Json serialization now serializes more fields, - which *should* not impact existing code. +which *should* not impact existing code. [issues resolved](https://github.com/javaparser/javaparser/milestone/111?closed=1) Version 3.6.26 ------------------ * BREAKING: Node.getData now throws an exception if the data was not set before. - This can be rewritten by checking with Node.containsData before doing getData. +This can be rewritten by checking with Node.containsData before doing getData. [issues resolved](https://github.com/javaparser/javaparser/milestone/110?closed=1) @@ -2449,14 +2012,14 @@ Version 3.6.18 Version 3.6.17 ------------------ * A new artifact was added: javaparser-core-serialization. - It contains a JSON serializer, and might get more serializers in the future. +It contains a JSON serializer, and might get more serializers in the future. [issues resolved](https://github.com/javaparser/javaparser/milestone/100?closed=1) Version 3.6.16 ------------------ * BREAKING: some parts of the module syntax used `Type` where they should have used `Name`. - This is now fixed, but your code may need to be adapted if you are parsing modules. +This is now fixed, but your code may need to be adapted if you are parsing modules. [issues resolved](https://github.com/javaparser/javaparser/milestone/99?closed=1) @@ -2471,10 +2034,9 @@ Version 3.6.14 Version 3.6.13 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/96?closed=1) - -* JavaParserFacade.getType now can also handle NameExpr referring to types - while before they were not supported. - See [issue #1491](https://github.com/javaparser/javaparser/issues/1491#issuecomment-403277963) +* JavaParserFacade.getType now can also handle NameExpr referring to types +while before they were not supported. +See [issue #1491](https://github.com/javaparser/javaparser/issues/1491#issuecomment-403277963) Version 3.6.12 ------------------ @@ -2494,8 +2056,8 @@ Version 3.6.8 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/92?closed=1) * Intellij Idea project files were deleted from the repository, - so if you have a clone of the JP source, your local files will be deleted as well. - Save anything you want to keep. +so if you have a clone of the JP source, your local files will be deleted as well. +Save anything you want to keep. Version 3.6.7 ------------------ @@ -2560,15 +2122,15 @@ Version 3.5.15 [issues resolved](https://github.com/javaparser/javaparser/milestone/78?closed=1) * Java 10 support is complete. * BREAKING: Java language level support has changed to make Java 10 support possible. - [Here's a little article about it](https://matozoid.github.io/2017/04/11/enable-java-9-support.html) +[Here's a little article about it](https://matozoid.github.io/2017/04/11/enable-java-9-support.html) Version 3.5.14 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/77?closed=1) * Java 10's `var` can now be parsed and will be turned into a `VarType` node. - It can not be resolved yet. +It can not be resolved yet. * `NodeList` now has a pretty complete set of `...First` and `...Last` methods. - Thanks stephenramthun ! +Thanks stephenramthun ! Version 3.5.13 ------------------ @@ -2600,7 +2162,7 @@ Version 3.5.9 [issues resolved](https://github.com/javaparser/javaparser/milestone/72?closed=1) * BREAKING: the very confusing constructor `NodeList(Node)` (which sets the parent) was removed. * To avoid using the int type for token kinds, use the new `JavaToken.Kind` enum. - It can convert to and from the int kind. +It can convert to and from the int kind. Version 3.5.8 ------------------ @@ -2620,8 +2182,7 @@ Version 3.5.6 Version 3.5.5 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/68?closed=1) - -* SourceRoot is now silent by default - look at the Log class if you want to change that. +* SourceRoot is now silent by default - look at the Log class if you want to change that. * BETA: the below work on Java Symbol Solver is still ongoing. Version 3.5.4 @@ -2633,7 +2194,7 @@ Version 3.5.3 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/66?closed=1) * Unicode escapes (`\u1234`) are now retained in the AST, - but they are now only allowed in comments, string and character literals, and identifiers. + but they are now only allowed in comments, string and character literals, and identifiers. * BETA: the below work on Java Symbol Solver is still ongoing. Version 3.5.2 @@ -2653,8 +2214,7 @@ Version 3.5.0 * A functional visitor API has been added. See [PR 1195](https://github.com/javaparser/javaparser/pull/1195) for now. * Build is working again on Windows thanks to Leonardo Herrera. * The pretty printer now has an option to order imports, also thanks to Leonardo Herrera. -* Receiver parameters are now well-supported instead of being a hack. - See [issue 1194](https://github.com/javaparser/javaparser/pull/1194) for a description. +* Receiver parameters are now well-supported instead of being a hack. See [issue 1194](https://github.com/javaparser/javaparser/pull/1194) for a description. * BETA: the below work on Java Symbol Solver is still ongoing. Version 3.4.4 @@ -2665,50 +2225,41 @@ Version 3.4.4 Version 3.4.3 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/61?closed=1) - -* BETA: we're still doing work to integrate parts - of [Java Symbol Solver](https://github.com/javaparser/javasymbolsolver) to simplify its API. -* `VisitorMap` is joined by `VisitorSet` and `VisitorList`, - for when you want to store `Node`s in collection but don't want its default equals/hascode behaviour +* BETA: we're still doing work to integrate parts of [Java Symbol Solver](https://github.com/javaparser/javasymbolsolver) to simplify its API. +* `VisitorMap` is joined by `VisitorSet` and `VisitorList`, +for when you want to store `Node`s in collection but don't want its default equals/hascode behaviour Version 3.4.2 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/60?closed=1) - -* BETA: we're doing work to integrate parts of [Java Symbol Solver](https://github.com/javaparser/javasymbolsolver) to - simplify its API. +* BETA: we're doing work to integrate parts of [Java Symbol Solver](https://github.com/javaparser/javasymbolsolver) to simplify its API. * JDK 9 will compile JavaParser now. * [An official sample Maven setup](https://github.com/javaparser/javaparser-maven-sample) was added. Version 3.4.1 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/59?closed=1) - -* Two visitors were added: `NoCommentEqualsVisitor` and `NoCommentHashCodeVisitor` - - as the name implies you can use these to compare nodes without considering comments. - Thanks Ryan Beckett! +* Two visitors were added: `NoCommentEqualsVisitor` and `NoCommentHashCodeVisitor` - +as the name implies you can use these to compare nodes without considering comments. +Thanks Ryan Beckett! * `isSomeType()` methods have been added for many types that help avoid `instanceof`. * `asSomeType()` methods have been added for many types that help avoid casting to that type. -* `ifSomeType()` methods have been added for many types, giving a nice functional way of doing - if-is-type-then-cast-to-type-then-use. +* `ifSomeType()` methods have been added for many types, giving a nice functional way of doing if-is-type-then-cast-to-type-then-use. * The `LexicalPreservingPrinter` had its API changed a little: setup and printing are now separate things, - so you don't have to drag an instance of `LexicalPreservingPrinter` through your code anymore. -* `traverseScope` was added to all nodes with a scope, so you can travel through the scope without tripping over (non-) - optionality. +so you don't have to drag an instance of `LexicalPreservingPrinter` through your code anymore. +* `traverseScope` was added to all nodes with a scope, so you can travel through the scope without tripping over (non-)optionality. Version 3.4.0 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/58?closed=1) - -* BREAKING: We missed a Java 9 feature which is now on board: try with resources can now refer to a resource declared - outside of the statement. - This means that the node type you get for those resources is now `Expression` instead of `VariableDeclarationExpr`. - For Java 8 and below you can simply cast it to `VariableDeclarationExpr` again. - See also the Javadoc for `TryStmt`. +* BREAKING: We missed a Java 9 feature which is now on board: try with resources can now refer to a resource declared outside of the statement. +This means that the node type you get for those resources is now `Expression` instead of `VariableDeclarationExpr`. +For Java 8 and below you can simply cast it to `VariableDeclarationExpr` again. +See also the Javadoc for `TryStmt`. * You can now inspect the AST by exporting it to XML, JSON, YAML, or a Graphviz's dot diagram, thanks to Ryan Beckett! -* `GenericVisitorWithDefaults` and `VoidVisitorWithDefaults` were added which function like empty visitors, - but all the visit methods call a default method by default. +* `GenericVisitorWithDefaults` and `VoidVisitorWithDefaults` were added which function like empty visitors, +but all the visit methods call a default method by default. * Annotation support was cleaned up, adding some obscure locations where you can have annotations. * `EnumDeclaration` regained its constructor builder methods. They were accidentally lost around 3.2.2. * `ArrayType` now has an `origin` field which indicates in which position the array brackets were found. @@ -2721,12 +2272,12 @@ Version 3.3.4 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/56?closed=1) * `SourceZip` has been added. - Use it to read source code from jars or zip files. - Thank you @ryan-beckett ! +Use it to read source code from jars or zip files. +Thank you @ryan-beckett ! * JavaCC was upgraded to 7.0.2 * A new option for the pretty printer was added. - You can now wrap-and-column-align parameters of method calls. - Thank you @tarilabs ! +You can now wrap-and-column-align parameters of method calls. +Thank you @tarilabs ! Version 3.3.3 ------------------ @@ -2743,14 +2294,13 @@ Version 3.3.1 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/53?closed=1) * The token list is now mutable - see methods on `JavaToken`. - This caused mild breakage - some fields have become `Optional`. +This caused mild breakage - some fields have become `Optional`. Version 3.3.0 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/52?closed=1) * Breaking: `TryStmt::tryBlock` and `EnclosedExpr::inner` were optional for no good reason. Now they are required. -* You can now ask a `JavaToken` for its category, which is useful for examining the token list or doing syntax - highlighting or so. +* You can now ask a `JavaToken` for its category, which is useful for examining the token list or doing syntax highlighting or so. * `enum` and `strictfp` can now be used as identifiers on lower Java versions. Version 3.2.12 @@ -2774,27 +2324,21 @@ Scrapped due to release problem. Version 3.2.8 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/48?closed=1) - -* Added `isInnerClass()` that checks if a `ClassOrInterfaceDeclaration` is an inner class (note: this is different from - a nested class!) -* @ryan-beckett contributed a - huge [Eclipse setup guide](https://github.com/javaparser/javaparser/wiki/Eclipse-Project-Setup-Guide) +* Added `isInnerClass()` that checks if a `ClassOrInterfaceDeclaration` is an inner class (note: this is different from a nested class!) +* @ryan-beckett contributed a huge [Eclipse setup guide](https://github.com/javaparser/javaparser/wiki/Eclipse-Project-Setup-Guide) Version 3.2.7 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/47?closed=1) - -* We now recover from some parse - errors! [Here is an article](https://matozoid.github.io/2017/06/11/parse-error-recovery.html) +* We now recover from some parse errors! [Here is an article](https://matozoid.github.io/2017/06/11/parse-error-recovery.html) Version 3.2.6 ------------------ [issues resolved](https://github.com/javaparser/javaparser/milestone/46?closed=1) - -* `EmptyMemberDeclaration` is gone! - It was deprecated for a while because it was in the AST, but doesn't have any meaning in a Java program. - `EmptyStmt` was also deprecated, but that has been reverted. - This node *does* have meaning. +* `EmptyMemberDeclaration` is gone! +It was deprecated for a while because it was in the AST, but doesn't have any meaning in a Java program. +`EmptyStmt` was also deprecated, but that has been reverted. +This node *does* have meaning. Version 3.2.5 ------------------ @@ -2803,20 +2347,18 @@ Version 3.2.5 * Lots of work on improving lexical preservation. * If a file was parsed from a file system, you can now get path information etc. from `CompilationUnit` * API BREAKING: every node now points to its start and end token. - Some of the API has started returning `TokenRange` instead of `Range` - you can call `toRange` to get the old object - type. - We may still change the naming of some of this code in the following month. +Some of the API has started returning `TokenRange` instead of `Range` - you can call `toRange` to get the old object type. +We may still change the naming of some of this code in the following month. Version 3.2.4 ------------------ -New style changelog, no more issue numbers, but a link: +New style changelog, no more issue numbers, but a link: [issues resolved](https://github.com/javaparser/javaparser/milestone/44?closed=1) and any notable changes: * the new method `Node.removeForced()` by removing it, or removing the first parent that is optional. - This is different from `Node.remove()`, `remove()` only tries to remove the node from the parent and fails if it - can't. +This is different from `Node.remove()`, `remove()` only tries to remove the node from the parent and fails if it can't. * `FieldAccessExpr.scope` is now a required property. - You might find some `get()`s in your code that are no longer necessary. +You might find some `get()`s in your code that are no longer necessary. * `ReferenceType` no longer has a type parameter, so every `ReferenceType` can be replaced by `ReferenceType` now. Version 3.2.3 @@ -2833,7 +2375,7 @@ Version 3.2.1 ------------------ Beta: `TreeStructureVisitor`. -* Maven dependencies were updated to their latest versions +* Maven dependencies were updated to their latest versions * 890 the concept of "method signature" now exists in JavaParser * 896 891 889 887 882 789 smaller improvements and fixes @@ -2874,10 +2416,9 @@ Version 3.1.2 ------------------ Beta: `TreeStructureVisitor`, `ConcreteSyntaxModel`, and `LexicalPreservingPrinter`. -* 594 849 831 a validation framework was introduced to inform about problems in the AST without needing to change the - grammar, - and without requiring parsing code. - It is open for extension by users. +* 594 849 831 a validation framework was introduced to inform about problems in the AST without needing to change the grammar, +and without requiring parsing code. +It is open for extension by users. * 852 853 826 832 846 839 smaller improvements and fixes Version 3.1.1 @@ -2885,12 +2426,12 @@ Version 3.1.1 Beta: `TreeStructureVisitor`, `ConcreteSyntaxModel`, and `LexicalPreservingPrinter`. * 654 124 lexical preservation (printing source code with the same formatting it had when parsing) has been added. - Thank you @ftomassetti for a lot of work! + Thank you @ftomassetti for a lot of work! * 554 800 first (big) step towards Java 9 support: JavaParser can read project Jigsaw module definitions. * 795 786 751 extend the TreeVisitor with more traversal options. Thanks @ryan-beckett! * 791 `GenericListVisitorAdapter` has been added which collects its results in a list. Thanks @Gottox! * 815 798 797 813 clean up Problem text -* 819 818 817 816 441 809 808 807 fix various absurd annotation related issues. +* 819 818 817 816 441 809 808 807 fix various absurd annotation related issues. * 777 805 802 796 790 792 793 781 784 785 783 782 779 357 799 763 smaller improvements and fixes Version 3.1.0 @@ -2906,8 +2447,7 @@ Version 3.1.0-beta.2 This version is a beta because `TreeStructureVisitor` is not in its definite state yet. * 762 761 772 merge `javaparser-metamodel` and `javaparser-generator-utils` into `javaparser-core`. -* 766 the `ModifierVisitor` is now created by a code generator. Its behaviour has been made logical, and may give - different results than before. +* 766 the `ModifierVisitor` is now created by a code generator. Its behaviour has been made logical, and may give different results than before. * 755 `ConstructorDeclaration` and `MethodDeclaration` now share a parent: `CallableDeclaration` * 687 759 773 769 768 767 765 759 smaller improvements and fixes @@ -2915,24 +2455,19 @@ Version 3.1.0-beta.1 ------------------ This version is a beta because there are a lot of new features that may still change. -This version needs a minor version increase because of a backwards compatability issue: - -* 719 `getJavadoc`, `getJavadocComment` and `getComment` could return null. Our promise was to return `Optional`, so - that is what they do now. +This version needs a minor version increase because of a backwards compatability issue: +* 719 `getJavadoc`, `getJavadocComment` and `getComment` could return null. Our promise was to return `Optional`, so that is what they do now. New: * 658 718 736 737 we have created a metamodel. - It gives information about the structure of the various AST nodes, as if you are introspecting them. - You can find it in `javaparser-metamodel`, the main class is `JavaParserMetaModel` -* 353 365 visitors are no longer hand made, they are now generated from the metamodel. This should make them 100% - reliable. - Affected visitors - are: `GenericVisitorAdapter`, `EqualsVisitor`, `VoidVisitorAdapter`, `VoidVisitor`, `GenericVisitor`, `HashCodeVisitor`, `CloneVisitor`. +It gives information about the structure of the various AST nodes, as if you are introspecting them. +You can find it in `javaparser-metamodel`, the main class is `JavaParserMetaModel` +* 353 365 visitors are no longer hand made, they are now generated from the metamodel. This should make them 100% reliable. +Affected visitors are: `GenericVisitorAdapter`, `EqualsVisitor`, `VoidVisitorAdapter`, `VoidVisitor`, `GenericVisitor`, `HashCodeVisitor`, `CloneVisitor`. If you want to generate your own visitors, you can use the `VisitorGenerator` class from `javaparser-core-generators` -If you want to reuse the code generation utilities, look at module `javaparser-generator-utils` - there is a very -useful `SourceRoot` class in there that takes away a lot of file management troubles. +If you want to reuse the code generation utilities, look at module `javaparser-generator-utils` - there is a very useful `SourceRoot` class in there that takes away a lot of file management troubles. * 538 735 `TreeStructureVisitor` has been added, which should be considered beta. * 220 733 717 749 745 750 743 748 666 732 746 734 733 smaller improvements and fixes @@ -2953,22 +2488,19 @@ Version 3.0.0-RC.4 * 668 669 TypeDeclarationStmt became LocalClassDeclarationStmt * 347 665 every node now has some documentation * 660 670 673 four types of import declaration have been merged back into the old ImportDeclaration -* 659 The pretty printer can now take customized visitors +* 659 The pretty printer can now take customized visitors * 650 671 672 674 524 smaller improvements and fixes Version 3.0.0-RC.3 ------------------ - -* 639 622 632 657 656 652 653 647 648 645 194 643 630 624 628 627 626 625 623 cleanups, small fixes, and general - housekeeping +* 639 622 632 657 656 652 653 647 648 645 194 643 630 624 628 627 626 625 623 cleanups, small fixes, and general housekeeping Version 3.0.0-RC.2 ------------------ * 593 EmptyImportDeclaration and NonEmptyImportDeclaration have been removed * 612 VariableDeclaratorId has been removed. It has been substituted by "SimpleName name" * 614 617 the list of tokens has been linearized and simplified -* 615 support for arrays has once more been changed. - See [the issue](https://github.com/javaparser/javaparser/issues/592) +* 615 support for arrays has once more been changed. See [the issue](https://github.com/javaparser/javaparser/issues/592) * 580 453 380 618 580 611 610 424 608 smaller improvements and fixes Version 3.0.0-RC.1 @@ -2987,9 +2519,7 @@ Version 3.0.0-alpha.10 Version 3.0.0-alpha.9 ------------------ - -* 403 358 549 Make all names nodes: either SimpleName or Name. This makes every name in the AST visitable. NameExpr is - now a wrapper to use SimpleName in an expression. +* 403 358 549 Make all names nodes: either SimpleName or Name. This makes every name in the AST visitable. NameExpr is now a wrapper to use SimpleName in an expression. * 516 536 use Optional<> for return values. * 556 557 558 550 small improvements and fixes. * 560 559 make nodes observable. @@ -3013,25 +2543,19 @@ Version 3.0.0-alpha.6 Version 3.0.0-alpha.5 ------------------ - -* 451 null is no longer allowed in the - AST. [See last post in issue](https://github.com/javaparser/javaparser/issues/451) -* 501 421 420 316 use a special type of list for nodes: - NodeList. [See last post in issue](https://github.com/javaparser/javaparser/issues/421) +* 451 null is no longer allowed in the AST. [See last post in issue](https://github.com/javaparser/javaparser/issues/451) +* 501 421 420 316 use a special type of list for nodes: NodeList. [See last post in issue](https://github.com/javaparser/javaparser/issues/421) Version 3.0.0-alpha.4 ------------------ * 463 471 nodes can now be removed easily -* 491 import handling changed. Instead of "ImportDeclaration", we now have the four types of import as described in the - JLS. [See issue](https://github.com/javaparser/javaparser/pull/491) +* 491 import handling changed. Instead of "ImportDeclaration", we now have the four types of import as described in the JLS. [See issue](https://github.com/javaparser/javaparser/pull/491) * 452 355 474 494 various improvements * 493 492 485 Simplify the JavaParser interface Version 3.0.0-alpha.3 ------------------ - -* 112 237 466 465 461 460 458 457 fundamentally changes how we deal with - arrays. [It is explained in the last post here](https://github.com/javaparser/javaparser/issues/237) +* 112 237 466 465 461 460 458 457 fundamentally changes how we deal with arrays. [It is explained in the last post here](https://github.com/javaparser/javaparser/issues/237) * 472 456 makes the "data" field on every node more structured. * 477 468 refactor TypeArguments. You will find that TypeArguments is no longer a type, it is just a list in some nodes. * 482 adds the "nodeTypes" packages to the osgi export. @@ -3068,7 +2592,7 @@ API breaking changes: * 371: code is now compiled with Java 8 * 342, 331: ModifierVisitorAdapter detects and removes broken nodes * 328, 270: upgrade JavaCC (use TokenMgrException now) - Other changes: +Other changes: * 297: enable access to tokens. * 341, 361: node positions are now OO @@ -3078,7 +2602,7 @@ API breaking changes: * 343, 309, 332, 57: take advantage of common interfaces * 329, 326, 327: deal with platform issues * 163, 236, 252, 296, 269, 339, 321, 322, 252, 253, 293, 295: various fixes -* 310, 311, 313, 301, 294: some code clean-ups +* 310, 311, 313, 301, 294: some code clean-ups Version 2.4.0 ------------- @@ -3130,28 +2654,26 @@ Version 2.0.0 Version 1.0.8 (2010-01-17) ------------- * Fixed issues: - * Issue 17: A refactor suggestion for AnnotationExpr and its subclasses - * Issue 21: Java 5 JavaParser compiled JARs - * Issue 22: Please use java.lang.reflect.Modifier constants in japa.parser.ast.body.ModifierSet - * Issue 27: Implement the "equal" method - * Issue 30: equals and hashCode methods + * Issue 17: A refactor suggestion for AnnotationExpr and its subclasses + * Issue 21: Java 5 JavaParser compiled JARs + * Issue 22: Please use java.lang.reflect.Modifier constants in japa.parser.ast.body.ModifierSet + * Issue 27: Implement the "equal" method + * Issue 30: equals and hashCode methods Version 1.0.7 (2009-04-12) ------------- - -* Issue 19 fixed: -* Tests changed to run with junit 4 +* Issue 19 fixed: +* Tests changed to run with junit 4 Version 1.0.6 (2009-01-11) ------------- * Issue 11 fixed: changed method get/setPakage to get/setPackage in the class CompilationUnit * Created new visitor adapter to help AST modification: ModifierVisitorAdapter -* Changed visitor adapters to abstract +* Changed visitor adapters to abstract Version 1.0.5 (2008-10-26) ------------- - -* Created simplified constructors in the nodes of the AST (without positional arguments) +* Created simplified constructors in the nodes of the AST (without positional arguments) * Created ASTHelper class with some helpful methods (more methods are still needed) Version 1.0.4 (2008-10-07) @@ -3163,8 +2685,8 @@ Version 1.0.3 (2008-09-06) ------------- * Removed SuperMemberAccessExpr class, it was no longer used * Removed the methods get/setTypeArgs() from ArrayCreationExpr, this node shouldn't have these methods. -* Fixed the bug with start/end position of the nodes IntegerLiteralMinValueExpr and LongLiteralMinValueExpr -* The methods get/setAnnotations() from all BodyDeclaration subclasses were pushed down to BodyDeclaration class +* Fixed the bug with start/end position of the nodes IntegerLiteralMinValueExpr and LongLiteralMinValueExpr +* The methods get/setAnnotations() from all BodyDeclaration subclasses were pushed down to BodyDeclaration class Version 1.0.2 (2008-07-20) ------------- @@ -3180,19 +2702,17 @@ Version 1.0.0 (2008-06-25) * Javadoc done for packages: * japa.parser * japa.parser.ast -* Corrected bug when parsing in multithread: - * JavaParser.setCacheParser(false) must be called before to use the parser concurrent +* Corrected bug when parsing in multithread: + * JavaParser.setCacheParser(false) must be called before to use the parser concurrent 2008-06-19 ------------- - -* No code changes, added binary distribution to download page +* No code changes, added binary distribution to download page 2008-06-11 ------------- - -* Bug corrected: NPE in VoidVisitorAdapter - * http://code.google.com/p/javaparser/issues/detail?id=2 +* Bug corrected: NPE in VoidVisitorAdapter + * http://code.google.com/p/javaparser/issues/detail?id=2 2008-06-09 ------------- @@ -3201,15 +2721,13 @@ Version 1.0.0 (2008-06-25) 2008-05-28 ------------- * This project now is published at Google Code: - * http://code.google.com/p/javaparser/ + * http://code.google.com/p/javaparser/ 2008-05-25 ------------- - -* Added support for comments and javadoc to the tree. - * Javadocs are stored directly to members (BodyDeclaration and all deriveds (classes, methods, fields, etc.)), - accessible by the method getJavadoc(). - * All comments are stored in the CompilationUnit, accessible by the method getComments(). +* Added support for comments and javadoc to the tree. + * Javadocs are stored directly to members (BodyDeclaration and all deriveds (classes, methods, fields, etc.)), accessible by the method getJavadoc(). + * All comments are stored in the CompilationUnit, accessible by the method getComments(). 2008-04-01 ------------- @@ -3227,9 +2745,8 @@ Version 1.0.0 (2008-06-25) 2007-10-21 ------------- - -* Bugs corrected: - * Created PackageDeclaration member of CompilationUnit to add suport for annotations in the package declaration +* Bugs corrected: + * Created PackageDeclaration member of CompilationUnit to add suport for annotations in the package declaration * Parameterized anonymous constructor invocation * Explicit constructor invotation Type Arguments * ctrl+z ("\u001A") ar end of compilation unit @@ -3242,7 +2759,7 @@ Version 1.0.0 (2008-06-25) 2007-10-03 ------------- * Bug corrected: "MotifComboPopup.this.super()" statement was generating parser error - + 2007-10-01 ------------- * Bug corrected: Casting signed primitive values @@ -3261,19 +2778,17 @@ Version 1.0.0 (2008-06-25) 2007-06-26 ------------- * Bug fixes from Leon Poyyayil work - * suport for hex floating point - * unicode digits in indentifier - * MemberValueArrayInitializer + * suport for hex floating point + * unicode digits in indentifier + * MemberValueArrayInitializer 2007-03-09 ------------- - -* Long and Integer literal MIN_VALUE bug +* Long and Integer literal MIN_VALUE bug 2007-02-24 ------------- - -* '\0' bug fixed +* '\0' bug fixed 2007-02-01 ------------- diff --git a/doc/docs/readme.md b/doc/docs/readme.md index 2631875b95..a5d31628b4 100644 --- a/doc/docs/readme.md +++ b/doc/docs/readme.md @@ -7,7 +7,7 @@ [![Maven Central](https://img.shields.io/maven-central/v/com.github.javaparser/javaparser-core.svg)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.javaparser%22%20AND%20a%3A%22javaparser-core%22) [![Build Status](https://travis-ci.org/javaparser/javaparser.svg?branch=master)](https://travis-ci.org/javaparser/javaparser) -[![Coverage Status](https://coveralls.io/repos/javaparser/javaparser/badge.svg?branch=master&service=github)](https://coveralls.io/github/javaparser/javaparser?branch=master) +[![Coverage Status](https://codecov.io/gh/javaparser/javaparser/branch/master/graphs/badge.svg?branch=master)](https://app.codecov.io/gh/javaparser/javaparser?branch=master) [![Join the chat at https://gitter.im/javaparser/javaparser](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/javaparser/javaparser?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![License LGPL-3/Apache-2.0](https://img.shields.io/badge/license-LGPL--3%2FApache--2.0-blue.svg)](LICENSE) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2667378.svg)](https://doi.org/10.5281/zenodo.2667378) diff --git a/javaparser-core-generators/pom.xml b/javaparser-core-generators/pom.xml index b574bbdfe1..9a56f540b2 100644 --- a/javaparser-core-generators/pom.xml +++ b/javaparser-core-generators/pom.xml @@ -4,7 +4,7 @@ jmlparser-parent io.github.jmltoolkit - 3.25.6 + 3.25.8 4.0.0 diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/CompilationUnitGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/CompilationUnitGenerator.java index ccfcf99ef7..a377d0e733 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/CompilationUnitGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/CompilationUnitGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/Generator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/Generator.java index a78ad3e0ed..9a1618e4b1 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/Generator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/Generator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -107,7 +107,7 @@ private void addMethod( throw new AssertionError(f("Wanted to regenerate a method with signature %s in %s, but found more than one.", callable.getSignature(), containingClassOrInterface.getNameAsString())); } final CallableDeclaration existingCallable = existingCallables.get(0); - callable.setJavadocComment(callable.getJavadocComment().orElse(existingCallable.getJavadocComment().orElse(null))); + callable.setJavadocComment(callable.getJavadocComment().orElseGet(() -> existingCallable.getJavadocComment().orElse(null))); annotateGenerated(callable); containingClassOrInterface.getMembers().replace(existingCallable, callable); } diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/NodeGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/NodeGenerator.java index 6aaadc237e..ce991da195 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/NodeGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/NodeGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/VisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/VisitorGenerator.java index c03daa2087..20c3d469af 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/VisitorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/VisitorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/CoreGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/CoreGenerator.java index b0d23671b6..fcb3d135a0 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/CoreGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/CoreGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/AcceptGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/AcceptGenerator.java index bf55b17d41..02fac16f0b 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/AcceptGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/AcceptGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/CloneGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/CloneGenerator.java index e488c8d37a..7cb0123ed3 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/CloneGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/CloneGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/GetMetaModelGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/GetMetaModelGenerator.java index 10b2cd5bb5..3c5829bcd1 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/GetMetaModelGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/GetMetaModelGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/MainConstructorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/MainConstructorGenerator.java index a364061c27..6ff9946d6c 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/MainConstructorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/MainConstructorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/NodeModifierGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/NodeModifierGenerator.java index 64a8838f19..d8fc8082c1 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/NodeModifierGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/NodeModifierGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/PropertyGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/PropertyGenerator.java index 85ed632ea4..9a64f55a95 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/PropertyGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/PropertyGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/RemoveMethodGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/RemoveMethodGenerator.java index c399ae6124..e10c9a2ffa 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/RemoveMethodGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/RemoveMethodGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/ReplaceMethodGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/ReplaceMethodGenerator.java index 9634673d11..acef16ed77 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/ReplaceMethodGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/ReplaceMethodGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/TypeCastingGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/TypeCastingGenerator.java index 97af9b17b6..0cd16015c2 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/TypeCastingGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/TypeCastingGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/BndGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/BndGenerator.java index b68fc131d8..7270e06bdb 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/BndGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/BndGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/GrammarLetterGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/GrammarLetterGenerator.java index 36b1987712..8affb4b7b6 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/GrammarLetterGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/GrammarLetterGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/TokenKindGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/TokenKindGenerator.java index aea13cda64..9de626391e 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/TokenKindGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/TokenKindGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/quality/NotNullGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/quality/NotNullGenerator.java index 55e7cbde5c..e395f25077 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/quality/NotNullGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/quality/NotNullGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/utils/CodeUtils.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/utils/CodeUtils.java index 75b0b086de..1b7ba5d413 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/utils/CodeUtils.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/utils/CodeUtils.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/CloneVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/CloneVisitorGenerator.java index 287e091a09..2551b4623b 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/CloneVisitorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/CloneVisitorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/EqualsVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/EqualsVisitorGenerator.java index 4410d354ad..23ea256f21 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/EqualsVisitorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/EqualsVisitorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericListVisitorAdapterGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericListVisitorAdapterGenerator.java index 9b52361020..6dc192a756 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericListVisitorAdapterGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericListVisitorAdapterGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorAdapterGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorAdapterGenerator.java index eea0f94514..542e7e7320 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorAdapterGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorAdapterGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorGenerator.java index 10b679a07a..d40ef7a125 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorWithDefaultsGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorWithDefaultsGenerator.java index 93f1dd4d2b..1dd02d35e2 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorWithDefaultsGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorWithDefaultsGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/HashCodeVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/HashCodeVisitorGenerator.java index 9d56e61d99..18cc695d58 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/HashCodeVisitorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/HashCodeVisitorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ModifierVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ModifierVisitorGenerator.java index 33c532acf3..4acc379e03 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ModifierVisitorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ModifierVisitorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/NoCommentEqualsVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/NoCommentEqualsVisitorGenerator.java index a9448c21e0..104ea2e7e4 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/NoCommentEqualsVisitorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/NoCommentEqualsVisitorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/NoCommentHashCodeVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/NoCommentHashCodeVisitorGenerator.java index 9169b3b755..b7e4169c9a 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/NoCommentHashCodeVisitorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/NoCommentHashCodeVisitorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ObjectIdentityEqualsVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ObjectIdentityEqualsVisitorGenerator.java index 1985cb18bd..066bdd85cd 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ObjectIdentityEqualsVisitorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ObjectIdentityEqualsVisitorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ObjectIdentityHashCodeVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ObjectIdentityHashCodeVisitorGenerator.java index 8d82cce16f..8081bc3e38 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ObjectIdentityHashCodeVisitorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ObjectIdentityHashCodeVisitorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorAdapterGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorAdapterGenerator.java index dce958a7f1..d1cc8d38ea 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorAdapterGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorAdapterGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorGenerator.java index 1c83066a04..a4fefe1d7d 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorWithDefaultsGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorWithDefaultsGenerator.java index 45f17391ec..8a36f476ff 100644 --- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorWithDefaultsGenerator.java +++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorWithDefaultsGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/test/java/com/github/javaparser/generator/core/quality/NotNullGeneratorTest.java b/javaparser-core-generators/src/test/java/com/github/javaparser/generator/core/quality/NotNullGeneratorTest.java index 994bf25a7f..6760307b46 100644 --- a/javaparser-core-generators/src/test/java/com/github/javaparser/generator/core/quality/NotNullGeneratorTest.java +++ b/javaparser-core-generators/src/test/java/com/github/javaparser/generator/core/quality/NotNullGeneratorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-generators/src/test/java/com/github/javaparser/generator/core/utils/CodeUtilsTest.java b/javaparser-core-generators/src/test/java/com/github/javaparser/generator/core/utils/CodeUtilsTest.java index c75a54f2a5..5dab9836ed 100644 --- a/javaparser-core-generators/src/test/java/com/github/javaparser/generator/core/utils/CodeUtilsTest.java +++ b/javaparser-core-generators/src/test/java/com/github/javaparser/generator/core/utils/CodeUtilsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-metamodel-generator/pom.xml b/javaparser-core-metamodel-generator/pom.xml index 94765bdaed..6e5b226e56 100644 --- a/javaparser-core-metamodel-generator/pom.xml +++ b/javaparser-core-metamodel-generator/pom.xml @@ -4,7 +4,7 @@ jmlparser-parent io.github.jmltoolkit - 3.25.6 + 3.25.8 4.0.0 diff --git a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/AbstractGenerator.java b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/AbstractGenerator.java index da5d86a546..ba61d5a00b 100644 --- a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/AbstractGenerator.java +++ b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/AbstractGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -56,7 +56,7 @@ public abstract class AbstractGenerator { protected static final String COPYRIGHT_NOTICE_JP_CORE = "\n" + " * Copyright (C) 2007-2010 Júlio Vilmar Gesser.\n" + - " * Copyright (C) 2011, 2013-2023 The JavaParser Team.\n" + + " * Copyright (C) 2011, 2013-2024 The JavaParser Team.\n" + " *\n" + " * This file is part of JavaParser.\n" + " *\n" + @@ -77,7 +77,7 @@ public abstract class AbstractGenerator { protected static final String COPYRIGHT_NOTICE_JP_SS = "\n" + " * Copyright (C) 2015-2016 Federico Tomassetti\n" + - " * Copyright (C) 2017-2023 The JavaParser Team.\n" + + " * Copyright (C) 2017-2024 The JavaParser Team.\n" + " *\n" + " * This file is part of JavaParser.\n" + " *\n" + @@ -128,7 +128,7 @@ private void addOrReplaceMethod( Optional callableComment = callable.getComment(); Optional existingCallableComment = existingCallable.getComment(); - callable.setComment(callableComment.orElse(existingCallable.getComment().orElse(null))); + callable.setComment(callableComment.orElseGet(() -> existingCallable.getComment().orElse(null))); // callable.setJavadocComment(callableJavadocComment.orElse(existingCallableJavadocComment.orElse(null))); // Mark the method as having been fully/partially generated. diff --git a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/AstTypeAnalysis.java b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/AstTypeAnalysis.java index 020bec86be..5c7a86480d 100644 --- a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/AstTypeAnalysis.java +++ b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/AstTypeAnalysis.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/InitializeConstructorParametersStatementsGenerator.java b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/InitializeConstructorParametersStatementsGenerator.java index bff336ae2c..56da7da80a 100644 --- a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/InitializeConstructorParametersStatementsGenerator.java +++ b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/InitializeConstructorParametersStatementsGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/InitializePropertyMetaModelsStatementsGenerator.java b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/InitializePropertyMetaModelsStatementsGenerator.java index 6160c26c3a..741aded389 100644 --- a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/InitializePropertyMetaModelsStatementsGenerator.java +++ b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/InitializePropertyMetaModelsStatementsGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/MetaModelGenerator.java b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/MetaModelGenerator.java index 479a67e59f..8aae3a39c8 100644 --- a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/MetaModelGenerator.java +++ b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/MetaModelGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/NodeMetaModelGenerator.java b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/NodeMetaModelGenerator.java index 7995880899..4a1301d9de 100644 --- a/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/NodeMetaModelGenerator.java +++ b/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/NodeMetaModelGenerator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-serialization/pom.xml b/javaparser-core-serialization/pom.xml index d732a50207..64b6bbd016 100644 --- a/javaparser-core-serialization/pom.xml +++ b/javaparser-core-serialization/pom.xml @@ -3,7 +3,7 @@ jmlparser-parent io.github.jmltoolkit - 3.25.6 + 3.25.8 4.0.0 @@ -60,14 +60,15 @@ ${project.version} - javax.json - javax.json-api - 1.1.4 + jakarta.json + jakarta.json-api + 2.1.3 + - org.glassfish - javax.json - 1.1.4 + org.eclipse.parsson + parsson + 1.1.5 test diff --git a/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/JavaParserJsonDeserializer.java b/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/JavaParserJsonDeserializer.java index 9a0e73a51d..bf52bde2f1 100644 --- a/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/JavaParserJsonDeserializer.java +++ b/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/JavaParserJsonDeserializer.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -30,10 +30,11 @@ import com.github.javaparser.metamodel.PropertyMetaModel; import com.github.javaparser.utils.Log; -import javax.json.JsonArray; -import javax.json.JsonObject; -import javax.json.JsonReader; -import javax.json.JsonValue; +import jakarta.json.JsonArray; +import jakarta.json.JsonObject; +import jakarta.json.JsonReader; +import jakarta.json.JsonValue; + import java.util.HashMap; import java.util.Map; import java.util.Optional; diff --git a/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/JavaParserJsonSerializer.java b/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/JavaParserJsonSerializer.java index 8616db1201..386f30116d 100644 --- a/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/JavaParserJsonSerializer.java +++ b/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/JavaParserJsonSerializer.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -30,7 +30,7 @@ import com.github.javaparser.metamodel.PropertyMetaModel; import com.github.javaparser.utils.Log; -import javax.json.stream.JsonGenerator; +import jakarta.json.stream.JsonGenerator; import static com.github.javaparser.utils.Utils.decapitalize; import static java.util.Objects.requireNonNull; diff --git a/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/JavaParserJsonDeserializerTest.java b/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/JavaParserJsonDeserializerTest.java index 3f92839fc2..0db7a4536f 100644 --- a/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/JavaParserJsonDeserializerTest.java +++ b/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/JavaParserJsonDeserializerTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -37,10 +37,12 @@ import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration; import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.utils.LineSeparator; + +import jakarta.json.Json; + import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; -import javax.json.Json; import java.io.StringReader; import static com.github.javaparser.StaticJavaParser.*; @@ -51,7 +53,7 @@ class JavaParserJsonDeserializerTest { private final JavaParserJsonDeserializer deserializer = new JavaParserJsonDeserializer(); - + @Test void simpleTest() { CompilationUnit cu = parse("public class X{} class Z{}"); diff --git a/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/JavaParserJsonSerializerTest.java b/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/JavaParserJsonSerializerTest.java index d1b6788ccb..cefa335f62 100644 --- a/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/JavaParserJsonSerializerTest.java +++ b/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/JavaParserJsonSerializerTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -22,8 +22,6 @@ import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.Node; -import com.google.common.truth.Truth; -import org.junit.Assume; import org.junit.jupiter.api.Test; import javax.json.Json; diff --git a/javaparser-core-testing-bdd/pom.xml b/javaparser-core-testing-bdd/pom.xml index 55bbbdb30a..6ecd784b68 100644 --- a/javaparser-core-testing-bdd/pom.xml +++ b/javaparser-core-testing-bdd/pom.xml @@ -3,7 +3,7 @@ jmlparser-parent io.github.jmltoolkit - 3.25.6 + 3.25.8 4.0.0 @@ -127,7 +127,6 @@ org.hamcrest hamcrest - 2.2 test diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/BasicJBehaveTest.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/BasicJBehaveTest.java index eb91df2479..df29a5de5e 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/BasicJBehaveTest.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/BasicJBehaveTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/CommentParsingTest.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/CommentParsingTest.java index 9a1a54b3e7..b421b591e7 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/CommentParsingTest.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/CommentParsingTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ComparingTest.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ComparingTest.java index 49b9067a3c..7072ab7a11 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ComparingTest.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ComparingTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ManipulationTest.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ManipulationTest.java index b9637fa05d..559ae9bdac 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ManipulationTest.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ManipulationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ParsingTest.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ParsingTest.java index 6cd778dc49..3e73badcb3 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ParsingTest.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/ParsingTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/PositionRangeTest.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/PositionRangeTest.java index abd183069d..615794bb11 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/PositionRangeTest.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/PositionRangeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/PrettyPrintingTest.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/PrettyPrintingTest.java index a2e9101d12..cf98815628 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/PrettyPrintingTest.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/PrettyPrintingTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/TestUtils.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/TestUtils.java index 9ca52efaa7..10c9e97ae0 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/TestUtils.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/TestUtils.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/VisitorTest.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/VisitorTest.java index 6d3c03887e..5ef26e1c82 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/VisitorTest.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/VisitorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/CommentParsingSteps.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/CommentParsingSteps.java index 70bd1b22aa..d61864dce1 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/CommentParsingSteps.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/CommentParsingSteps.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ComparingSteps.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ComparingSteps.java index 760461b79a..9a09e92584 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ComparingSteps.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ComparingSteps.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ExistenceOfParentNodeVerifier.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ExistenceOfParentNodeVerifier.java index de7a92cbd3..69b60891a2 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ExistenceOfParentNodeVerifier.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ExistenceOfParentNodeVerifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ManipulationSteps.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ManipulationSteps.java index 9a9712184e..eb9047fc00 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ManipulationSteps.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ManipulationSteps.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ParsingSteps.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ParsingSteps.java index 5c84729a7b..38c059b30d 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ParsingSteps.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ParsingSteps.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/PositionRangeSteps.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/PositionRangeSteps.java index c389527b62..9ca8969b03 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/PositionRangeSteps.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/PositionRangeSteps.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/PrettyPrintingSteps.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/PrettyPrintingSteps.java index 0942629e76..8a536b747f 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/PrettyPrintingSteps.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/PrettyPrintingSteps.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/SharedSteps.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/SharedSteps.java index 22f3027417..73ae736993 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/SharedSteps.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/SharedSteps.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/VisitorSteps.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/VisitorSteps.java index 66b2ed4121..5894711c84 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/VisitorSteps.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/VisitorSteps.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/visitors/PositionTestVisitor.java b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/visitors/PositionTestVisitor.java index 674a91ad94..f3659052b3 100644 --- a/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/visitors/PositionTestVisitor.java +++ b/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/visitors/PositionTestVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/pom.xml b/javaparser-core-testing/pom.xml index 874a3cf077..8ed367b401 100644 --- a/javaparser-core-testing/pom.xml +++ b/javaparser-core-testing/pom.xml @@ -3,7 +3,7 @@ jmlparser-parent io.github.jmltoolkit - 3.25.6 + 3.25.8 4.0.0 @@ -122,13 +122,13 @@ org.hamcrest - hamcrest-library + hamcrest test org.assertj assertj-core - 3.24.2 + 3.25.0 test diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/CommentsInserterTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/CommentsInserterTest.java index 41256cfe28..f375f9b6e7 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/CommentsInserterTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/CommentsInserterTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ExpectedTokensTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ExpectedTokensTest.java index 28e5f681c1..fd49aa3a74 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ExpectedTokensTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ExpectedTokensTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/GeneratedJavaParserTokenManagerTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/GeneratedJavaParserTokenManagerTest.java index db16f434fc..2a141cb6a8 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/GeneratedJavaParserTokenManagerTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/GeneratedJavaParserTokenManagerTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/Issue1017Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/Issue1017Test.java index d3b12920f3..1224b34339 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/Issue1017Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/Issue1017Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/Issue2482Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/Issue2482Test.java index 7461aac9ad..df0c380c10 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/Issue2482Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/Issue2482Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/Issue3064Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/Issue3064Test.java index 23deff0485..3af87b62eb 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/Issue3064Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/Issue3064Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/Issue3577Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/Issue3577Test.java index 66e9b8fee2..0f231c5b48 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/Issue3577Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/Issue3577Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/JavaParserAdapterTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/JavaParserAdapterTest.java index 3781914c53..2aabac03ef 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/JavaParserAdapterTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/JavaParserAdapterTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/JavaParserTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/JavaParserTest.java index 849745c2f8..c78ded8bdf 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/JavaParserTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/JavaParserTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -162,6 +162,14 @@ void parseIntersectionType() { assertEquals("Serializable", intersectionType.getElements().get(1).asClassOrInterfaceType().getNameAsString()); } + @Test + void parseArrayInitialization() { + String code = "{1,2,3}"; + ArrayInitializerExpr expression = parseArrayInitializerExpr(code); + + assertEquals(3, expression.getValues().size()); + } + @Test void rangeOfIntersectionType() { String code = "class A {" + SYSTEM_EOL diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/JavaTokenTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/JavaTokenTest.java index 0eede446cc..3e770ff90c 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/JavaTokenTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/JavaTokenTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/JavadocParserTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/JavadocParserTest.java index 4967804d53..1745005cdd 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/JavadocParserTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/JavadocParserTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/LineSeparatorProcessorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/LineSeparatorProcessorTest.java index 9456a2abfc..378303b496 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/LineSeparatorProcessorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/LineSeparatorProcessorTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ParseErrorRecoveryTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ParseErrorRecoveryTest.java index 487dd86604..c0f316c7e8 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ParseErrorRecoveryTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ParseErrorRecoveryTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ParserConfigurationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ParserConfigurationTest.java index 8552cf022c..247181fe5f 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ParserConfigurationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ParserConfigurationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/PositionMappingTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/PositionMappingTest.java index 038404e0dc..5813cedbff 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/PositionMappingTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/PositionMappingTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/PositionTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/PositionTest.java index 5b5b16e312..6664cd84f9 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/PositionTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/PositionTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ProblemTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ProblemTest.java index 87233b7c6e..6416b21f78 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ProblemTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ProblemTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ProvidersTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ProvidersTest.java index 925207edf1..9673f2c2d8 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ProvidersTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ProvidersTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/RangeTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/RangeTest.java index 4fc8e280ac..f6a3467d62 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/RangeTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/RangeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/TokenRangeTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/TokenRangeTest.java index 1592d941fd..835839d72f 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/TokenRangeTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/TokenRangeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/TokenTypesTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/TokenTypesTest.java index 466a94123c..023d43cc9f 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/TokenTypesTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/TokenTypesTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/UnicodeEscapeProcessingProviderTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/UnicodeEscapeProcessingProviderTest.java index 9b98ca00ff..737866faf6 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/UnicodeEscapeProcessingProviderTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/UnicodeEscapeProcessingProviderTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/AncestorDescendantTests.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/AncestorDescendantTests.java index b9c875948d..37123c25d1 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/AncestorDescendantTests.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/AncestorDescendantTests.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/CompilationUnitTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/CompilationUnitTest.java index 90827489d7..5b45f2f84a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/CompilationUnitTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/CompilationUnitTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/DataKeyTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/DataKeyTest.java index 62dabcd25e..f30a39a9d4 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/DataKeyTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/DataKeyTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/FindNodeTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/FindNodeTest.java index b4021b67fc..260fe462a6 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/FindNodeTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/FindNodeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ListObservationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ListObservationTest.java index f6a987b1db..d428e1c8d0 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ListObservationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ListObservationTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodeListTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodeListTest.java index 393ecbeb60..09868e6d33 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodeListTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodeListTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodePositionTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodePositionTest.java index f3557e234c..402456ac40 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodePositionTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodePositionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodeTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodeTest.java index 37e7934ebc..417c14b98e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodeTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/NodeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ObservationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ObservationTest.java index 1fa8b61651..c0bfd890a0 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ObservationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ObservationTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ParseResultTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ParseResultTest.java index dbdfe6d674..e262727f8e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ParseResultTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ParseResultTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ReplaceNodeTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ReplaceNodeTest.java index 44ad0c5b13..565d8cab38 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ReplaceNodeTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ReplaceNodeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/WalkFindTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/WalkFindTest.java index 7e363d2d24..9a4afd16bb 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/WalkFindTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/WalkFindTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/AnnotationDeclarationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/AnnotationDeclarationTest.java index aaf1399a0c..3cfe93237a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/AnnotationDeclarationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/AnnotationDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/AnnotationMemberDeclarationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/AnnotationMemberDeclarationTest.java index 5a06b7f6b3..ee2d4a5a7a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/AnnotationMemberDeclarationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/AnnotationMemberDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/ClassOrInterfaceDeclarationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/ClassOrInterfaceDeclarationTest.java index 2cff24c989..6ca9caa26c 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/ClassOrInterfaceDeclarationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/ClassOrInterfaceDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/ConstructorDeclarationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/ConstructorDeclarationTest.java index 974080dda5..b0802c1ebf 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/ConstructorDeclarationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/ConstructorDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/FieldDeclarationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/FieldDeclarationTest.java index fe99fd3951..1cb77dc2d4 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/FieldDeclarationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/FieldDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/MethodDeclarationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/MethodDeclarationTest.java index ce1acf7418..a981fe9cb7 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/MethodDeclarationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/MethodDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/RecordDeclarationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/RecordDeclarationTest.java index 9ce4e44a33..df72ce8e6a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/RecordDeclarationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/RecordDeclarationTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/TypeDeclarationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/TypeDeclarationTest.java index 326d82db7b..33562710b0 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/TypeDeclarationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/TypeDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/comments/CommentTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/comments/CommentTest.java index e2a0bfcac2..fd25638459 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/comments/CommentTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/comments/CommentTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ArrayCreationExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ArrayCreationExprTest.java index 238af9c07a..f1ec609587 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ArrayCreationExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ArrayCreationExprTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/AssignExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/AssignExprTest.java index 8e3eed347b..09968f084f 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/AssignExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/AssignExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/BinaryExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/BinaryExprTest.java index bcc33dca82..5123425007 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/BinaryExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/BinaryExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/CharLiteralExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/CharLiteralExprTest.java index 34df1f0252..529c18feef 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/CharLiteralExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/CharLiteralExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/DoubleLiteralExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/DoubleLiteralExprTest.java index 70f16ab77c..b2d87539ac 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/DoubleLiteralExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/DoubleLiteralExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/InstanceOfExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/InstanceOfExprTest.java index e2eb4fed05..78363ba568 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/InstanceOfExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/InstanceOfExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/LambdaExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/LambdaExprTest.java index 19de16816a..f4b7efb6bf 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/LambdaExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/LambdaExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/LiteralStringValueExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/LiteralStringValueExprTest.java index d1d0c22d84..18c39547aa 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/LiteralStringValueExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/LiteralStringValueExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/MethodCallExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/MethodCallExprTest.java index f8f838077d..a8df551483 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/MethodCallExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/MethodCallExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/MethodReferenceExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/MethodReferenceExprTest.java index b935f75a31..4a9a9a2194 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/MethodReferenceExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/MethodReferenceExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/NameTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/NameTest.java index 0f5aa1030b..f5f9007dd7 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/NameTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/NameTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ObjectCreationExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ObjectCreationExprTest.java index ddd0597cba..f94be49cb6 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ObjectCreationExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ObjectCreationExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SimpleNameTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SimpleNameTest.java index 8db298cd6f..159d9e80d2 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SimpleNameTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SimpleNameTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/StringLiteralExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/StringLiteralExprTest.java index d1baeab716..d0416597a6 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/StringLiteralExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/StringLiteralExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SuperExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SuperExprTest.java index df9b08b7bb..0b4e1f01fa 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SuperExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SuperExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SwitchExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SwitchExprTest.java index f91714a607..0646252fa7 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SwitchExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/SwitchExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/TextBlockLiteralExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/TextBlockLiteralExprTest.java index 106893c7e1..12863ad805 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/TextBlockLiteralExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/TextBlockLiteralExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ThisExprTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ThisExprTest.java index 88be898a6f..5d10628c9b 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ThisExprTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ThisExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/imports/ImportDeclarationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/imports/ImportDeclarationTest.java index 7a1ec58246..1ce9d0b7c7 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/imports/ImportDeclarationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/imports/ImportDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithArgumentsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithArgumentsTest.java index 6d99deeb96..5c7a4b5ef7 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithArgumentsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithArgumentsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithBodyTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithBodyTest.java index 7745defb98..7d25e08830 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithBodyTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithBodyTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithJavadocTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithJavadocTest.java index 47a77cca86..88eeff1b81 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithJavadocTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithJavadocTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithModifiersTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithModifiersTest.java index ebaa5ca298..30ef2e1c2b 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithModifiersTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithModifiersTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalScopeTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalScopeTest.java index e1b6def163..0511142875 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalScopeTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalScopeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithTraversableScopeTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithTraversableScopeTest.java index 123c909ef2..6662d3bf66 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithTraversableScopeTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithTraversableScopeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithVariablesTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithVariablesTest.java index f0b10f5d97..9dd4713102 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithVariablesTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/NodeWithVariablesTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/observer/PropagatingAstObserverTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/observer/PropagatingAstObserverTest.java index 8776cec5a9..a1bb86f255 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/observer/PropagatingAstObserverTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/observer/PropagatingAstObserverTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/BreakStmtTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/BreakStmtTest.java index fb94a57174..1cc47714fa 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/BreakStmtTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/BreakStmtTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/ForEachStmtTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/ForEachStmtTest.java index 57ea33975b..417aa9469b 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/ForEachStmtTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/ForEachStmtTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/IfElseStmtTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/IfElseStmtTest.java index c482efe0e4..03773c4b8e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/IfElseStmtTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/IfElseStmtTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/SwitchStmtTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/SwitchStmtTest.java index b0b55ad4e9..48f600c4a4 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/SwitchStmtTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/SwitchStmtTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/TryStmtTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/TryStmtTest.java index da9fadc842..5568a0b52f 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/TryStmtTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/TryStmtTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/YieldStmtTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/YieldStmtTest.java index 0a8c4539e5..333074b744 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/YieldStmtTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/YieldStmtTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/ArrayTypeTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/ArrayTypeTest.java index 3c86c62a42..60d7e59174 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/ArrayTypeTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/ArrayTypeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/ClassOrInterfaceTypeTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/ClassOrInterfaceTypeTest.java index b6858af2fa..709b6e344d 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/ClassOrInterfaceTypeTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/ClassOrInterfaceTypeTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/TypeTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/TypeTest.java index 896b7e97a6..f52baa091e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/TypeTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/TypeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java10ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java10ValidatorTest.java index 355bbf374b..171d4f4edd 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java10ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java10ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java11ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java11ValidatorTest.java index 4c7e5bac60..ce96ae28fd 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java11ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java11ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java12ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java12ValidatorTest.java index 0c9ca9ad68..01ede069ea 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java12ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java12ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java13ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java13ValidatorTest.java index 75c74f75c4..1982571c63 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java13ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java13ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java14PreviewValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java14PreviewValidatorTest.java index dc91d50d3b..76110179d1 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java14PreviewValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java14PreviewValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java14ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java14ValidatorTest.java index dc0c96d16b..7414129b8a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java14ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java14ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java15PreviewValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java15PreviewValidatorTest.java index 7c4a036715..49722999bc 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java15PreviewValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java15PreviewValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java15ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java15ValidatorTest.java index 11f295086e..d36cdc8cf8 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java15ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java15ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java16PreviewValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java16PreviewValidatorTest.java index 3e9f5c4279..f52e647257 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java16PreviewValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java16PreviewValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java16ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java16ValidatorTest.java index ae1c02990b..43749a4c3e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java16ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java16ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java17ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java17ValidatorTest.java index 78355b9366..e0626fffa8 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java17ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java17ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java18ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java18ValidatorTest.java new file mode 100755 index 0000000000..ef98914154 --- /dev/null +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java18ValidatorTest.java @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2007-2010 Júlio Vilmar Gesser. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.ast.validator; + +import com.github.javaparser.JavaParser; +import com.github.javaparser.ParserConfiguration; + +import static com.github.javaparser.ParserConfiguration.LanguageLevel.JAVA_18; + +class Java18ValidatorTest { + + private final JavaParser javaParser = new JavaParser(new ParserConfiguration().setLanguageLevel(JAVA_18)); + + +} diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_0ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_0ValidatorTest.java index 3e8e43790c..db4d5f24d3 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_0ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_0ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_1ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_1ValidatorTest.java index 0359e25b2b..1756e097c9 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_1ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_1ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_2ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_2ValidatorTest.java index 8ff6a10fa7..a9fae48258 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_2ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_2ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_3ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_3ValidatorTest.java index c37e61a7e1..67a6b563f6 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_3ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_3ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_4ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_4ValidatorTest.java index 69fbf4dec4..b8021335f0 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_4ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java1_4ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java5ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java5ValidatorTest.java index ff8e5bb49c..6826264b02 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java5ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java5ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java6ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java6ValidatorTest.java index 664c6dda5a..7d26c15efd 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java6ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java6ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java7ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java7ValidatorTest.java index a5f4a45a8a..0908275eb6 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java7ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java7ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java8ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java8ValidatorTest.java index 5384335096..cd89028130 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java8ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java8ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java9ValidatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java9ValidatorTest.java index ffc45e4173..9df80cf709 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java9ValidatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/Java9ValidatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/CloneVisitorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/CloneVisitorTest.java index 3caab0e183..9433f55a8b 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/CloneVisitorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/CloneVisitorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/GenericListVisitorAdapterTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/GenericListVisitorAdapterTest.java new file mode 100644 index 0000000000..6250f3e8b0 --- /dev/null +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/GenericListVisitorAdapterTest.java @@ -0,0 +1,2553 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.ast.visitor; + +import com.github.javaparser.ast.*; +import com.github.javaparser.ast.body.*; +import com.github.javaparser.ast.comments.BlockComment; +import com.github.javaparser.ast.comments.Comment; +import com.github.javaparser.ast.comments.JavadocComment; +import com.github.javaparser.ast.comments.LineComment; +import com.github.javaparser.ast.expr.*; +import com.github.javaparser.ast.modules.*; +import com.github.javaparser.ast.stmt.*; +import com.github.javaparser.ast.type.*; +import org.junit.jupiter.api.Test; +import org.mockito.InOrder; +import org.mockito.Mockito; + +import java.util.List; +import java.util.Optional; + +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; + +class GenericListVisitorAdapterTest { + + private final GenericListVisitorAdapter visitor = new GenericListVisitorAdapter() {}; + + @Test + void visit_GivenAnnotationDeclaration() { + // Given + Object argument = mock(Object.class); + AnnotationDeclaration node = mock(AnnotationDeclaration.class); + + // When + Mockito.when(node.getMembers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getMembers(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenAnnotationMemberDeclaration() { + // Given + Object argument = mock(Object.class); + AnnotationMemberDeclaration node = mock(AnnotationMemberDeclaration.class); + + // When + Mockito.when(node.getDefaultValue()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getDefaultValue(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getType(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenArrayAccessExpr() { + // Given + Object argument = mock(Object.class); + ArrayAccessExpr node = mock(ArrayAccessExpr.class); + + // When + Mockito.when(node.getIndex()).thenReturn(mock(Expression.class)); + Mockito.when(node.getName()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getIndex(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenArrayCreationExpr() { + // Given + Object argument = mock(Object.class); + ArrayCreationExpr node = mock(ArrayCreationExpr.class); + + // When + Mockito.when(node.getElementType()).thenReturn(mock(Type.class)); + Mockito.when(node.getInitializer()).thenReturn(Optional.of(mock(ArrayInitializerExpr.class))); + Mockito.when(node.getLevels()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getElementType(); + order.verify(node, times(2)).getInitializer(); + order.verify(node).getLevels(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenArrayCreationLevel() { + // Given + Object argument = mock(Object.class); + ArrayCreationLevel node = mock(ArrayCreationLevel.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getDimension()).thenReturn(Optional.of(mock(ArrayInitializerExpr.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getDimension(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenArrayInitializerExpr() { + // Given + Object argument = mock(Object.class); + ArrayInitializerExpr node = mock(ArrayInitializerExpr.class); + + // When + Mockito.when(node.getValues()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getValues(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenArrayType() { + // Given + Object argument = mock(Object.class); + ArrayType node = mock(ArrayType.class); + + // When + Mockito.when(node.getComponentType()).thenReturn(mock(Type.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getComponentType(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenAssertStmt() { + // Given + Object argument = mock(Object.class); + AssertStmt node = mock(AssertStmt.class); + + // When + Mockito.when(node.getCheck()).thenReturn(mock(Expression.class)); + Mockito.when(node.getMessage()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getCheck(); + order.verify(node, times(2)).getMessage(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenAssignExpr() { + // Given + Object argument = mock(Object.class); + AssignExpr node = mock(AssignExpr.class); + + // When + Mockito.when(node.getTarget()).thenReturn(mock(Expression.class)); + Mockito.when(node.getValue()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getTarget(); + order.verify(node).getValue(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenBinaryExpr() { + // Given + Object argument = mock(Object.class); + BinaryExpr node = mock(BinaryExpr.class); + + // When + Mockito.when(node.getLeft()).thenReturn(mock(Expression.class)); + Mockito.when(node.getRight()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getLeft(); + order.verify(node).getRight(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenBlockComment() { + // Given + Object argument = mock(Object.class); + BlockComment node = mock(BlockComment.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenBlockStmt() { + // Given + Object argument = mock(Object.class); + BlockStmt node = mock(BlockStmt.class); + + // When + Mockito.when(node.getStatements()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getStatements(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenBooleanLiteralExpr() { + // Given + Object argument = mock(Object.class); + BooleanLiteralExpr node = mock(BooleanLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenBreakStmt() { + // Given + Object argument = mock(Object.class); + BreakStmt node = mock(BreakStmt.class); + + // When + Mockito.when(node.getLabel()).thenReturn(Optional.of(mock(SimpleName.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getLabel(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenCastExpr() { + // Given + Object argument = mock(Object.class); + CastExpr node = mock(CastExpr.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenCatchClause() { + // Given + Object argument = mock(Object.class); + CatchClause node = mock(CatchClause.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getParameter()).thenReturn(mock(Parameter.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getParameter(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenCharLiteralExpr() { + // Given + Object argument = mock(Object.class); + CharLiteralExpr node = mock(CharLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenClassExpr() { + // Given + Object argument = mock(Object.class); + ClassExpr node = mock(ClassExpr.class); + + // When + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenClassOrInterfaceDeclaration() { + // Given + Object argument = mock(Object.class); + ClassOrInterfaceDeclaration node = mock(ClassOrInterfaceDeclaration.class); + + // When + Mockito.when(node.getExtendedTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getImplementedTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getPermittedTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getTypeParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getMembers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExtendedTypes(); + order.verify(node).getImplementedTypes(); + order.verify(node).getPermittedTypes(); + order.verify(node).getTypeParameters(); + order.verify(node).getMembers(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenClassOrInterfaceType() { + // Given + Object argument = mock(Object.class); + ClassOrInterfaceType node = mock(ClassOrInterfaceType.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getScope()).thenReturn(Optional.of(mock(ClassOrInterfaceType.class))); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node, times(2)).getScope(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenCompilationUnit() { + // Given + Object argument = mock(Object.class); + CompilationUnit node = mock(CompilationUnit.class); + + // When + Mockito.when(node.getImports()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModule()).thenReturn(Optional.of(mock(ModuleDeclaration.class))); + Mockito.when(node.getPackageDeclaration()).thenReturn(Optional.of(mock(PackageDeclaration.class))); + Mockito.when(node.getTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getImports(); + order.verify(node, times(2)).getModule(); + order.verify(node, times(2)).getPackageDeclaration(); + order.verify(node).getTypes(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenConditionalExpr() { + // Given + Object argument = mock(Object.class); + ConditionalExpr node = mock(ConditionalExpr.class); + + // When + Mockito.when(node.getCondition()).thenReturn(mock(Expression.class)); + Mockito.when(node.getElseExpr()).thenReturn(mock(Expression.class)); + Mockito.when(node.getThenExpr()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getCondition(); + order.verify(node).getElseExpr(); + order.verify(node).getThenExpr(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenConstructorDeclaration() { + // Given + Object argument = mock(Object.class); + ConstructorDeclaration node = mock(ConstructorDeclaration.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getReceiverParameter()).thenReturn(Optional.of(mock(ReceiverParameter.class))); + Mockito.when(node.getThrownExceptions()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getTypeParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getParameters(); + order.verify(node, times(2)).getReceiverParameter(); + order.verify(node).getThrownExceptions(); + order.verify(node).getTypeParameters(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenContinueStmt() { + // Given + Object argument = mock(Object.class); + ContinueStmt node = mock(ContinueStmt.class); + + // When + Mockito.when(node.getLabel()).thenReturn(Optional.of(mock(SimpleName.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getLabel(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenDoStmt() { + // Given + Object argument = mock(Object.class); + DoStmt node = mock(DoStmt.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(Statement.class)); + Mockito.when(node.getCondition()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getCondition(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenDoubleLiteralExpr() { + // Given + Object argument = mock(Object.class); + DoubleLiteralExpr node = mock(DoubleLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenEmptyStmt() { + // Given + Object argument = mock(Object.class); + EmptyStmt node = mock(EmptyStmt.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenEnclosedExpr() { + // Given + Object argument = mock(Object.class); + EnclosedExpr node = mock(EnclosedExpr.class); + + // When + Mockito.when(node.getInner()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getInner(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenEnumConstantDeclaration() { + // Given + Object argument = mock(Object.class); + EnumConstantDeclaration node = mock(EnumConstantDeclaration.class); + + // When + Mockito.when(node.getArguments()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getClassBody()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getArguments(); + order.verify(node).getClassBody(); + order.verify(node).getName(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenEnumDeclaration() { + // Given + Object argument = mock(Object.class); + EnumDeclaration node = mock(EnumDeclaration.class); + + // When + Mockito.when(node.getEntries()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getImplementedTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getMembers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getEntries(); + order.verify(node).getImplementedTypes(); + order.verify(node).getMembers(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenExplicitConstructorInvocationStmt() { + // Given + Object argument = mock(Object.class); + ExplicitConstructorInvocationStmt node = mock(ExplicitConstructorInvocationStmt.class); + + // When + Mockito.when(node.getArguments()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getExpression()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getArguments(); + order.verify(node, times(2)).getExpression(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenExpressionStmt() { + // Given + Object argument = mock(Object.class); + ExpressionStmt node = mock(ExpressionStmt.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenFieldAccessExpr() { + // Given + Object argument = mock(Object.class); + FieldAccessExpr node = mock(FieldAccessExpr.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getScope()).thenReturn(mock(Expression.class)); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node).getScope(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenFieldDeclaration() { + // Given + Object argument = mock(Object.class); + FieldDeclaration node = mock(FieldDeclaration.class); + + // When + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getVariables()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getModifiers(); + order.verify(node).getVariables(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenForStmt() { + // Given + Object argument = mock(Object.class); + ForStmt node = mock(ForStmt.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(Statement.class)); + Mockito.when(node.getCompare()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getInitialization()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getUpdate()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node, times(2)).getCompare(); + order.verify(node).getInitialization(); + order.verify(node).getUpdate(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenForEachStmt() { + // Given + Object argument = mock(Object.class); + ForEachStmt node = mock(ForEachStmt.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(Statement.class)); + Mockito.when(node.getIterable()).thenReturn(mock(Expression.class)); + Mockito.when(node.getVariable()).thenReturn(mock(VariableDeclarationExpr.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getIterable(); + order.verify(node).getVariable(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenIfStmt() { + // Given + Object argument = mock(Object.class); + IfStmt node = mock(IfStmt.class); + + // When + Mockito.when(node.getCondition()).thenReturn(mock(ConditionalExpr.class)); + Mockito.when(node.getElseStmt()).thenReturn(Optional.of(mock(Statement.class))); + Mockito.when(node.getThenStmt()).thenReturn(mock(Statement.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getCondition(); + order.verify(node, times(2)).getElseStmt(); + order.verify(node).getThenStmt(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenImportDeclaration() { + // Given + Object argument = mock(Object.class); + ImportDeclaration node = mock(ImportDeclaration.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenInitializerDeclaration() { + // Given + Object argument = mock(Object.class); + InitializerDeclaration node = mock(InitializerDeclaration.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenInstanceOfExpr() { + // Given + Object argument = mock(Object.class); + InstanceOfExpr node = mock(InstanceOfExpr.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getPattern()).thenReturn(Optional.of(mock(PatternExpr.class))); + Mockito.when(node.getType()).thenReturn(mock(ReferenceType.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node, times(2)).getPattern(); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenIntegerLiteralExpr() { + // Given + Object argument = mock(Object.class); + IntegerLiteralExpr node = mock(IntegerLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenIntersectionType() { + // Given + Object argument = mock(Object.class); + IntersectionType node = mock(IntersectionType.class); + + // When + Mockito.when(node.getElements()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getElements(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenJavadocComment() { + // Given + Object argument = mock(Object.class); + JavadocComment node = mock(JavadocComment.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLabeledStmt() { + // Given + Object argument = mock(Object.class); + LabeledStmt node = mock(LabeledStmt.class); + + // When + Mockito.when(node.getLabel()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getStatement()).thenReturn(mock(Statement.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getLabel(); + order.verify(node).getStatement(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLambdaExpr() { + // Given + Object argument = mock(Object.class); + LambdaExpr node = mock(LambdaExpr.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(Statement.class)); + Mockito.when(node.getParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getParameters(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLineComment() { + // Given + Object argument = mock(Object.class); + LineComment node = mock(LineComment.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLocalClassDeclarationStmt() { + // Given + Object argument = mock(Object.class); + LocalClassDeclarationStmt node = mock(LocalClassDeclarationStmt.class); + + // When + Mockito.when(node.getClassDeclaration()).thenReturn(mock(ClassOrInterfaceDeclaration.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getClassDeclaration(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLocalRecordDeclarationStmt() { + // Given + Object argument = mock(Object.class); + LocalRecordDeclarationStmt node = mock(LocalRecordDeclarationStmt.class); + + // When + Mockito.when(node.getRecordDeclaration()).thenReturn(mock(RecordDeclaration.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getRecordDeclaration(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLongLiteralExpr() { + // Given + Object argument = mock(Object.class); + LongLiteralExpr node = mock(LongLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenMarkerAnnotationExpr() { + // Given + Object argument = mock(Object.class); + MarkerAnnotationExpr node = mock(MarkerAnnotationExpr.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenMemberValuePair() { + // Given + Object argument = mock(Object.class); + MemberValuePair node = mock(MemberValuePair.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getValue()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node).getValue(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenMethodCallExpr() { + // Given + Object argument = mock(Object.class); + MethodCallExpr node = mock(MethodCallExpr.class); + + // When + Mockito.when(node.getArguments()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getScope()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getArguments(); + order.verify(node).getName(); + order.verify(node, times(2)).getScope(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenMethodDeclaration() { + // Given + Object argument = mock(Object.class); + MethodDeclaration node = mock(MethodDeclaration.class); + + // When + Mockito.when(node.getBody()).thenReturn(Optional.of(mock(BlockStmt.class))); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getThrownExceptions()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getTypeParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getBody(); + order.verify(node).getType(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getParameters(); + order.verify(node).getThrownExceptions(); + order.verify(node).getTypeParameters(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenMethodReferenceExpr() { + // Given + Object argument = mock(Object.class); + MethodReferenceExpr node = mock(MethodReferenceExpr.class); + + // When + Mockito.when(node.getScope()).thenReturn(mock(Expression.class)); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getScope(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenNameExpr() { + // Given + Object argument = mock(Object.class); + NameExpr node = mock(NameExpr.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenName() { + // Given + Object argument = mock(Object.class); + Name node = mock(Name.class); + + // When + Mockito.when(node.getQualifier()).thenReturn(Optional.of(mock(Name.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getQualifier(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenNormalAnnotationExpr() { + // Given + Object argument = mock(Object.class); + NormalAnnotationExpr node = mock(NormalAnnotationExpr.class); + + // When + Mockito.when(node.getPairs()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getPairs(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenNullLiteralExpr() { + // Given + Object argument = mock(Object.class); + NullLiteralExpr node = mock(NullLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenObjectCreationExpr() { + // Given + Object argument = mock(Object.class); + ObjectCreationExpr node = mock(ObjectCreationExpr.class); + + // When + Mockito.when(node.getAnonymousClassBody()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getArguments()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getScope()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getType()).thenReturn(mock(ClassOrInterfaceType.class)); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getAnonymousClassBody(); + order.verify(node).getArguments(); + order.verify(node, times(2)).getScope(); + order.verify(node).getType(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenPackageDeclaration() { + // Given + Object argument = mock(Object.class); + PackageDeclaration node = mock(PackageDeclaration.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenParameter() { + // Given + Object argument = mock(Object.class); + Parameter node = mock(Parameter.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getVarArgsAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getType(); + order.verify(node).getVarArgsAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenPrimitiveType() { + // Given + Object argument = mock(Object.class); + PrimitiveType node = mock(PrimitiveType.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenReturnStmt() { + // Given + Object argument = mock(Object.class); + ReturnStmt node = mock(ReturnStmt.class); + + // When + Mockito.when(node.getExpression()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSimpleName() { + // Given + Object argument = mock(Object.class); + SimpleName node = mock(SimpleName.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSingleMemberAnnotationExpr() { + // Given + Object argument = mock(Object.class); + SingleMemberAnnotationExpr node = mock(SingleMemberAnnotationExpr.class); + + // When + Mockito.when(node.getMemberValue()).thenReturn(mock(Expression.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getMemberValue(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenStringLiteralExpr() { + // Given + Object argument = mock(Object.class); + StringLiteralExpr node = mock(StringLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSuperExpr() { + // Given + Object argument = mock(Object.class); + SuperExpr node = mock(SuperExpr.class); + + // When + Mockito.when(node.getTypeName()).thenReturn(Optional.of(mock(Name.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getTypeName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSwitchEntry() { + // Given + Object argument = mock(Object.class); + SwitchEntry node = mock(SwitchEntry.class); + + // When + Mockito.when(node.getLabels()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getStatements()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getLabels(); + order.verify(node).getStatements(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSwitchStmt() { + // Given + Object argument = mock(Object.class); + SwitchStmt node = mock(SwitchStmt.class); + + // When + Mockito.when(node.getEntries()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getSelector()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getEntries(); + order.verify(node).getSelector(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSynchronizedStmt() { + // Given + Object argument = mock(Object.class); + SynchronizedStmt node = mock(SynchronizedStmt.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenThisExpr() { + // Given + Object argument = mock(Object.class); + ThisExpr node = mock(ThisExpr.class); + + // When + Mockito.when(node.getTypeName()).thenReturn(Optional.of(mock(Name.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getTypeName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenThrowStmt() { + // Given + Object argument = mock(Object.class); + ThrowStmt node = mock(ThrowStmt.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenTryStmt() { + // Given + Object argument = mock(Object.class); + TryStmt node = mock(TryStmt.class); + + // When + Mockito.when(node.getCatchClauses()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getFinallyBlock()).thenReturn(Optional.of(mock(BlockStmt.class))); + Mockito.when(node.getResources()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getTryBlock()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getCatchClauses(); + order.verify(node, times(2)).getFinallyBlock(); + order.verify(node).getResources(); + order.verify(node).getTryBlock(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenTypeExpr() { + // Given + Object argument = mock(Object.class); + TypeExpr node = mock(TypeExpr.class); + + // When + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenTypeParameter() { + // Given + Object argument = mock(Object.class); + TypeParameter node = mock(TypeParameter.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getTypeBound()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node).getTypeBound(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenUnaryExpr() { + // Given + Object argument = mock(Object.class); + UnaryExpr node = mock(UnaryExpr.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenUnionType() { + // Given + Object argument = mock(Object.class); + UnionType node = mock(UnionType.class); + + // When + Mockito.when(node.getElements()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getElements(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenUnknownType() { + // Given + Object argument = mock(Object.class); + UnknownType node = mock(UnknownType.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenVariableDeclarationExpr() { + // Given + Object argument = mock(Object.class); + VariableDeclarationExpr node = mock(VariableDeclarationExpr.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getVariables()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node).getModifiers(); + order.verify(node).getVariables(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenVariableDeclarator() { + // Given + Object argument = mock(Object.class); + VariableDeclarator node = mock(VariableDeclarator.class); + + // When + Mockito.when(node.getInitializer()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getInitializer(); + order.verify(node).getName(); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenVoidType() { + // Given + Object argument = mock(Object.class); + VoidType node = mock(VoidType.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenWhileStmt() { + // Given + Object argument = mock(Object.class); + WhileStmt node = mock(WhileStmt.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(Statement.class)); + Mockito.when(node.getCondition()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getCondition(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenWildcardType() { + // Given + Object argument = mock(Object.class); + WildcardType node = mock(WildcardType.class); + + // When + Mockito.when(node.getExtendedType()).thenReturn(Optional.of(mock(ReferenceType.class))); + Mockito.when(node.getSuperType()).thenReturn(Optional.of(mock(ReferenceType.class))); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getExtendedType(); + order.verify(node, times(2)).getSuperType(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleDeclaration() { + // Given + Object argument = mock(Object.class); + ModuleDeclaration node = mock(ModuleDeclaration.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getDirectives()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node).getDirectives(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleExportsDirective() { + // Given + Object argument = mock(Object.class); + ModuleExportsDirective node = mock(ModuleExportsDirective.class); + + // When + Mockito.when(node.getModuleNames()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getModuleNames(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleOpensDirective() { + // Given + Object argument = mock(Object.class); + ModuleOpensDirective node = mock(ModuleOpensDirective.class); + + // When + Mockito.when(node.getModuleNames()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getModuleNames(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleProvidesDirective() { + // Given + Object argument = mock(Object.class); + ModuleProvidesDirective node = mock(ModuleProvidesDirective.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getWith()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node).getWith(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleRequiresDirective() { + // Given + Object argument = mock(Object.class); + ModuleRequiresDirective node = mock(ModuleRequiresDirective.class); + + // When + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleUsesDirective() { + // Given + Object argument = mock(Object.class); + ModuleUsesDirective node = mock(ModuleUsesDirective.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenUnparsableStmt() { + // Given + Object argument = mock(Object.class); + UnparsableStmt node = mock(UnparsableStmt.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenReceiverParameter() { + // Given + Object argument = mock(Object.class); + ReceiverParameter node = mock(ReceiverParameter.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node).getName(); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenVarType() { + // Given + Object argument = mock(Object.class); + VarType node = mock(VarType.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModifier() { + // Given + Object argument = mock(Object.class); + Modifier node = mock(Modifier.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSwitchExpr() { + // Given + Object argument = mock(Object.class); + SwitchExpr node = mock(SwitchExpr.class); + + // When + Mockito.when(node.getEntries()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getSelector()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getEntries(); + order.verify(node).getSelector(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenYieldStmt() { + // Given + Object argument = mock(Object.class); + YieldStmt node = mock(YieldStmt.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenTextBlockLiteralExpr() { + // Given + Object argument = mock(Object.class); + TextBlockLiteralExpr node = mock(TextBlockLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenPatternExpr() { + // Given + Object argument = mock(Object.class); + PatternExpr node = mock(PatternExpr.class); + + // When + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getType()).thenReturn(mock(ReferenceType.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenRecordDeclaration() { + // Given + Object argument = mock(Object.class); + RecordDeclaration node = mock(RecordDeclaration.class); + + // When + Mockito.when(node.getImplementedTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getReceiverParameter()).thenReturn(Optional.of(mock(ReceiverParameter.class))); + Mockito.when(node.getTypeParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getMembers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getImplementedTypes(); + order.verify(node).getParameters(); + order.verify(node, times(2)).getReceiverParameter(); + order.verify(node).getTypeParameters(); + order.verify(node).getMembers(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_CompactConstructorDeclaration () { + // Given + Object argument = mock(Object.class); + CompactConstructorDeclaration node = mock(CompactConstructorDeclaration .class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getThrownExceptions()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getTypeParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + List result = visitor.visit(node, argument); + + // Assert + assertNotNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getThrownExceptions(); + order.verify(node).getTypeParameters(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + +} \ No newline at end of file diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/GenericVisitorAdapterTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/GenericVisitorAdapterTest.java new file mode 100644 index 0000000000..a2fcff0e56 --- /dev/null +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/GenericVisitorAdapterTest.java @@ -0,0 +1,2552 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.ast.visitor; + +import com.github.javaparser.ast.*; +import com.github.javaparser.ast.body.*; +import com.github.javaparser.ast.comments.BlockComment; +import com.github.javaparser.ast.comments.Comment; +import com.github.javaparser.ast.comments.JavadocComment; +import com.github.javaparser.ast.comments.LineComment; +import com.github.javaparser.ast.expr.*; +import com.github.javaparser.ast.modules.*; +import com.github.javaparser.ast.stmt.*; +import com.github.javaparser.ast.type.*; +import org.junit.jupiter.api.Test; +import org.mockito.InOrder; +import org.mockito.Mockito; + +import java.util.Optional; + +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; + +public class GenericVisitorAdapterTest { + + private final GenericVisitorAdapter visitor = new GenericVisitorAdapter() {}; + + @Test + void visit_GivenAnnotationDeclaration() { + // Given + Object argument = mock(Object.class); + AnnotationDeclaration node = mock(AnnotationDeclaration.class); + + // When + Mockito.when(node.getMembers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getMembers(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenAnnotationMemberDeclaration() { + // Given + Object argument = mock(Object.class); + AnnotationMemberDeclaration node = mock(AnnotationMemberDeclaration.class); + + // When + Mockito.when(node.getDefaultValue()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getDefaultValue(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getType(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenArrayAccessExpr() { + // Given + Object argument = mock(Object.class); + ArrayAccessExpr node = mock(ArrayAccessExpr.class); + + // When + Mockito.when(node.getIndex()).thenReturn(mock(Expression.class)); + Mockito.when(node.getName()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getIndex(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenArrayCreationExpr() { + // Given + Object argument = mock(Object.class); + ArrayCreationExpr node = mock(ArrayCreationExpr.class); + + // When + Mockito.when(node.getElementType()).thenReturn(mock(Type.class)); + Mockito.when(node.getInitializer()).thenReturn(Optional.of(mock(ArrayInitializerExpr.class))); + Mockito.when(node.getLevels()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getElementType(); + order.verify(node, times(2)).getInitializer(); + order.verify(node).getLevels(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenArrayCreationLevel() { + // Given + Object argument = mock(Object.class); + ArrayCreationLevel node = mock(ArrayCreationLevel.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getDimension()).thenReturn(Optional.of(mock(ArrayInitializerExpr.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getDimension(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenArrayInitializerExpr() { + // Given + Object argument = mock(Object.class); + ArrayInitializerExpr node = mock(ArrayInitializerExpr.class); + + // When + Mockito.when(node.getValues()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getValues(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenArrayType() { + // Given + Object argument = mock(Object.class); + ArrayType node = mock(ArrayType.class); + + // When + Mockito.when(node.getComponentType()).thenReturn(mock(Type.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getComponentType(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenAssertStmt() { + // Given + Object argument = mock(Object.class); + AssertStmt node = mock(AssertStmt.class); + + // When + Mockito.when(node.getCheck()).thenReturn(mock(Expression.class)); + Mockito.when(node.getMessage()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getCheck(); + order.verify(node, times(2)).getMessage(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenAssignExpr() { + // Given + Object argument = mock(Object.class); + AssignExpr node = mock(AssignExpr.class); + + // When + Mockito.when(node.getTarget()).thenReturn(mock(Expression.class)); + Mockito.when(node.getValue()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getTarget(); + order.verify(node).getValue(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenBinaryExpr() { + // Given + Object argument = mock(Object.class); + BinaryExpr node = mock(BinaryExpr.class); + + // When + Mockito.when(node.getLeft()).thenReturn(mock(Expression.class)); + Mockito.when(node.getRight()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getLeft(); + order.verify(node).getRight(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenBlockComment() { + // Given + Object argument = mock(Object.class); + BlockComment node = mock(BlockComment.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenBlockStmt() { + // Given + Object argument = mock(Object.class); + BlockStmt node = mock(BlockStmt.class); + + // When + Mockito.when(node.getStatements()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getStatements(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenBooleanLiteralExpr() { + // Given + Object argument = mock(Object.class); + BooleanLiteralExpr node = mock(BooleanLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenBreakStmt() { + // Given + Object argument = mock(Object.class); + BreakStmt node = mock(BreakStmt.class); + + // When + Mockito.when(node.getLabel()).thenReturn(Optional.of(mock(SimpleName.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getLabel(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenCastExpr() { + // Given + Object argument = mock(Object.class); + CastExpr node = mock(CastExpr.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenCatchClause() { + // Given + Object argument = mock(Object.class); + CatchClause node = mock(CatchClause.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getParameter()).thenReturn(mock(Parameter.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getParameter(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenCharLiteralExpr() { + // Given + Object argument = mock(Object.class); + CharLiteralExpr node = mock(CharLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenClassExpr() { + // Given + Object argument = mock(Object.class); + ClassExpr node = mock(ClassExpr.class); + + // When + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenClassOrInterfaceDeclaration() { + // Given + Object argument = mock(Object.class); + ClassOrInterfaceDeclaration node = mock(ClassOrInterfaceDeclaration.class); + + // When + Mockito.when(node.getExtendedTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getImplementedTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getPermittedTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getTypeParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getMembers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExtendedTypes(); + order.verify(node).getImplementedTypes(); + order.verify(node).getPermittedTypes(); + order.verify(node).getTypeParameters(); + order.verify(node).getMembers(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenClassOrInterfaceType() { + // Given + Object argument = mock(Object.class); + ClassOrInterfaceType node = mock(ClassOrInterfaceType.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getScope()).thenReturn(Optional.of(mock(ClassOrInterfaceType.class))); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node, times(2)).getScope(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenCompilationUnit() { + // Given + Object argument = mock(Object.class); + CompilationUnit node = mock(CompilationUnit.class); + + // When + Mockito.when(node.getImports()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModule()).thenReturn(Optional.of(mock(ModuleDeclaration.class))); + Mockito.when(node.getPackageDeclaration()).thenReturn(Optional.of(mock(PackageDeclaration.class))); + Mockito.when(node.getTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getImports(); + order.verify(node, times(2)).getModule(); + order.verify(node, times(2)).getPackageDeclaration(); + order.verify(node).getTypes(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenConditionalExpr() { + // Given + Object argument = mock(Object.class); + ConditionalExpr node = mock(ConditionalExpr.class); + + // When + Mockito.when(node.getCondition()).thenReturn(mock(Expression.class)); + Mockito.when(node.getElseExpr()).thenReturn(mock(Expression.class)); + Mockito.when(node.getThenExpr()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getCondition(); + order.verify(node).getElseExpr(); + order.verify(node).getThenExpr(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenConstructorDeclaration() { + // Given + Object argument = mock(Object.class); + ConstructorDeclaration node = mock(ConstructorDeclaration.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getReceiverParameter()).thenReturn(Optional.of(mock(ReceiverParameter.class))); + Mockito.when(node.getThrownExceptions()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getTypeParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getParameters(); + order.verify(node, times(2)).getReceiverParameter(); + order.verify(node).getThrownExceptions(); + order.verify(node).getTypeParameters(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenContinueStmt() { + // Given + Object argument = mock(Object.class); + ContinueStmt node = mock(ContinueStmt.class); + + // When + Mockito.when(node.getLabel()).thenReturn(Optional.of(mock(SimpleName.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getLabel(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenDoStmt() { + // Given + Object argument = mock(Object.class); + DoStmt node = mock(DoStmt.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(Statement.class)); + Mockito.when(node.getCondition()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getCondition(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenDoubleLiteralExpr() { + // Given + Object argument = mock(Object.class); + DoubleLiteralExpr node = mock(DoubleLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenEmptyStmt() { + // Given + Object argument = mock(Object.class); + EmptyStmt node = mock(EmptyStmt.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenEnclosedExpr() { + // Given + Object argument = mock(Object.class); + EnclosedExpr node = mock(EnclosedExpr.class); + + // When + Mockito.when(node.getInner()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getInner(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenEnumConstantDeclaration() { + // Given + Object argument = mock(Object.class); + EnumConstantDeclaration node = mock(EnumConstantDeclaration.class); + + // When + Mockito.when(node.getArguments()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getClassBody()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getArguments(); + order.verify(node).getClassBody(); + order.verify(node).getName(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenEnumDeclaration() { + // Given + Object argument = mock(Object.class); + EnumDeclaration node = mock(EnumDeclaration.class); + + // When + Mockito.when(node.getEntries()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getImplementedTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getMembers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getEntries(); + order.verify(node).getImplementedTypes(); + order.verify(node).getMembers(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenExplicitConstructorInvocationStmt() { + // Given + Object argument = mock(Object.class); + ExplicitConstructorInvocationStmt node = mock(ExplicitConstructorInvocationStmt.class); + + // When + Mockito.when(node.getArguments()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getExpression()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getArguments(); + order.verify(node, times(2)).getExpression(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenExpressionStmt() { + // Given + Object argument = mock(Object.class); + ExpressionStmt node = mock(ExpressionStmt.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenFieldAccessExpr() { + // Given + Object argument = mock(Object.class); + FieldAccessExpr node = mock(FieldAccessExpr.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getScope()).thenReturn(mock(Expression.class)); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node).getScope(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenFieldDeclaration() { + // Given + Object argument = mock(Object.class); + FieldDeclaration node = mock(FieldDeclaration.class); + + // When + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getVariables()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getModifiers(); + order.verify(node).getVariables(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenForStmt() { + // Given + Object argument = mock(Object.class); + ForStmt node = mock(ForStmt.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(Statement.class)); + Mockito.when(node.getCompare()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getInitialization()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getUpdate()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node, times(2)).getCompare(); + order.verify(node).getInitialization(); + order.verify(node).getUpdate(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenForEachStmt() { + // Given + Object argument = mock(Object.class); + ForEachStmt node = mock(ForEachStmt.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(Statement.class)); + Mockito.when(node.getIterable()).thenReturn(mock(Expression.class)); + Mockito.when(node.getVariable()).thenReturn(mock(VariableDeclarationExpr.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getIterable(); + order.verify(node).getVariable(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenIfStmt() { + // Given + Object argument = mock(Object.class); + IfStmt node = mock(IfStmt.class); + + // When + Mockito.when(node.getCondition()).thenReturn(mock(ConditionalExpr.class)); + Mockito.when(node.getElseStmt()).thenReturn(Optional.of(mock(Statement.class))); + Mockito.when(node.getThenStmt()).thenReturn(mock(Statement.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getCondition(); + order.verify(node, times(2)).getElseStmt(); + order.verify(node).getThenStmt(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenImportDeclaration() { + // Given + Object argument = mock(Object.class); + ImportDeclaration node = mock(ImportDeclaration.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenInitializerDeclaration() { + // Given + Object argument = mock(Object.class); + InitializerDeclaration node = mock(InitializerDeclaration.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenInstanceOfExpr() { + // Given + Object argument = mock(Object.class); + InstanceOfExpr node = mock(InstanceOfExpr.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getPattern()).thenReturn(Optional.of(mock(PatternExpr.class))); + Mockito.when(node.getType()).thenReturn(mock(ReferenceType.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node, times(2)).getPattern(); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenIntegerLiteralExpr() { + // Given + Object argument = mock(Object.class); + IntegerLiteralExpr node = mock(IntegerLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenIntersectionType() { + // Given + Object argument = mock(Object.class); + IntersectionType node = mock(IntersectionType.class); + + // When + Mockito.when(node.getElements()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getElements(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenJavadocComment() { + // Given + Object argument = mock(Object.class); + JavadocComment node = mock(JavadocComment.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLabeledStmt() { + // Given + Object argument = mock(Object.class); + LabeledStmt node = mock(LabeledStmt.class); + + // When + Mockito.when(node.getLabel()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getStatement()).thenReturn(mock(Statement.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getLabel(); + order.verify(node).getStatement(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLambdaExpr() { + // Given + Object argument = mock(Object.class); + LambdaExpr node = mock(LambdaExpr.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(Statement.class)); + Mockito.when(node.getParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getParameters(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLineComment() { + // Given + Object argument = mock(Object.class); + LineComment node = mock(LineComment.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLocalClassDeclarationStmt() { + // Given + Object argument = mock(Object.class); + LocalClassDeclarationStmt node = mock(LocalClassDeclarationStmt.class); + + // When + Mockito.when(node.getClassDeclaration()).thenReturn(mock(ClassOrInterfaceDeclaration.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getClassDeclaration(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLocalRecordDeclarationStmt() { + // Given + Object argument = mock(Object.class); + LocalRecordDeclarationStmt node = mock(LocalRecordDeclarationStmt.class); + + // When + Mockito.when(node.getRecordDeclaration()).thenReturn(mock(RecordDeclaration.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getRecordDeclaration(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenLongLiteralExpr() { + // Given + Object argument = mock(Object.class); + LongLiteralExpr node = mock(LongLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenMarkerAnnotationExpr() { + // Given + Object argument = mock(Object.class); + MarkerAnnotationExpr node = mock(MarkerAnnotationExpr.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenMemberValuePair() { + // Given + Object argument = mock(Object.class); + MemberValuePair node = mock(MemberValuePair.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getValue()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node).getValue(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenMethodCallExpr() { + // Given + Object argument = mock(Object.class); + MethodCallExpr node = mock(MethodCallExpr.class); + + // When + Mockito.when(node.getArguments()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getScope()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getArguments(); + order.verify(node).getName(); + order.verify(node, times(2)).getScope(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenMethodDeclaration() { + // Given + Object argument = mock(Object.class); + MethodDeclaration node = mock(MethodDeclaration.class); + + // When + Mockito.when(node.getBody()).thenReturn(Optional.of(mock(BlockStmt.class))); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getThrownExceptions()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getTypeParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getBody(); + order.verify(node).getType(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getParameters(); + order.verify(node).getThrownExceptions(); + order.verify(node).getTypeParameters(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenMethodReferenceExpr() { + // Given + Object argument = mock(Object.class); + MethodReferenceExpr node = mock(MethodReferenceExpr.class); + + // When + Mockito.when(node.getScope()).thenReturn(mock(Expression.class)); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getScope(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenNameExpr() { + // Given + Object argument = mock(Object.class); + NameExpr node = mock(NameExpr.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenName() { + // Given + Object argument = mock(Object.class); + Name node = mock(Name.class); + + // When + Mockito.when(node.getQualifier()).thenReturn(Optional.of(mock(Name.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getQualifier(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenNormalAnnotationExpr() { + // Given + Object argument = mock(Object.class); + NormalAnnotationExpr node = mock(NormalAnnotationExpr.class); + + // When + Mockito.when(node.getPairs()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getPairs(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenNullLiteralExpr() { + // Given + Object argument = mock(Object.class); + NullLiteralExpr node = mock(NullLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenObjectCreationExpr() { + // Given + Object argument = mock(Object.class); + ObjectCreationExpr node = mock(ObjectCreationExpr.class); + + // When + Mockito.when(node.getAnonymousClassBody()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getArguments()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getScope()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getType()).thenReturn(mock(ClassOrInterfaceType.class)); + Mockito.when(node.getTypeArguments()).thenReturn(Optional.of(mock(NodeList.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getAnonymousClassBody(); + order.verify(node).getArguments(); + order.verify(node, times(2)).getScope(); + order.verify(node).getType(); + order.verify(node, times(2)).getTypeArguments(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenPackageDeclaration() { + // Given + Object argument = mock(Object.class); + PackageDeclaration node = mock(PackageDeclaration.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenParameter() { + // Given + Object argument = mock(Object.class); + Parameter node = mock(Parameter.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getVarArgsAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getType(); + order.verify(node).getVarArgsAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenPrimitiveType() { + // Given + Object argument = mock(Object.class); + PrimitiveType node = mock(PrimitiveType.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenReturnStmt() { + // Given + Object argument = mock(Object.class); + ReturnStmt node = mock(ReturnStmt.class); + + // When + Mockito.when(node.getExpression()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSimpleName() { + // Given + Object argument = mock(Object.class); + SimpleName node = mock(SimpleName.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSingleMemberAnnotationExpr() { + // Given + Object argument = mock(Object.class); + SingleMemberAnnotationExpr node = mock(SingleMemberAnnotationExpr.class); + + // When + Mockito.when(node.getMemberValue()).thenReturn(mock(Expression.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getMemberValue(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenStringLiteralExpr() { + // Given + Object argument = mock(Object.class); + StringLiteralExpr node = mock(StringLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSuperExpr() { + // Given + Object argument = mock(Object.class); + SuperExpr node = mock(SuperExpr.class); + + // When + Mockito.when(node.getTypeName()).thenReturn(Optional.of(mock(Name.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getTypeName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSwitchEntry() { + // Given + Object argument = mock(Object.class); + SwitchEntry node = mock(SwitchEntry.class); + + // When + Mockito.when(node.getLabels()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getStatements()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getLabels(); + order.verify(node).getStatements(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSwitchStmt() { + // Given + Object argument = mock(Object.class); + SwitchStmt node = mock(SwitchStmt.class); + + // When + Mockito.when(node.getEntries()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getSelector()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getEntries(); + order.verify(node).getSelector(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSynchronizedStmt() { + // Given + Object argument = mock(Object.class); + SynchronizedStmt node = mock(SynchronizedStmt.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenThisExpr() { + // Given + Object argument = mock(Object.class); + ThisExpr node = mock(ThisExpr.class); + + // When + Mockito.when(node.getTypeName()).thenReturn(Optional.of(mock(Name.class))); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getTypeName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenThrowStmt() { + // Given + Object argument = mock(Object.class); + ThrowStmt node = mock(ThrowStmt.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenTryStmt() { + // Given + Object argument = mock(Object.class); + TryStmt node = mock(TryStmt.class); + + // When + Mockito.when(node.getCatchClauses()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getFinallyBlock()).thenReturn(Optional.of(mock(BlockStmt.class))); + Mockito.when(node.getResources()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getTryBlock()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getCatchClauses(); + order.verify(node, times(2)).getFinallyBlock(); + order.verify(node).getResources(); + order.verify(node).getTryBlock(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenTypeExpr() { + // Given + Object argument = mock(Object.class); + TypeExpr node = mock(TypeExpr.class); + + // When + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenTypeParameter() { + // Given + Object argument = mock(Object.class); + TypeParameter node = mock(TypeParameter.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getTypeBound()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node).getTypeBound(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenUnaryExpr() { + // Given + Object argument = mock(Object.class); + UnaryExpr node = mock(UnaryExpr.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenUnionType() { + // Given + Object argument = mock(Object.class); + UnionType node = mock(UnionType.class); + + // When + Mockito.when(node.getElements()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getElements(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenUnknownType() { + // Given + Object argument = mock(Object.class); + UnknownType node = mock(UnknownType.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenVariableDeclarationExpr() { + // Given + Object argument = mock(Object.class); + VariableDeclarationExpr node = mock(VariableDeclarationExpr.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getVariables()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node).getModifiers(); + order.verify(node).getVariables(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenVariableDeclarator() { + // Given + Object argument = mock(Object.class); + VariableDeclarator node = mock(VariableDeclarator.class); + + // When + Mockito.when(node.getInitializer()).thenReturn(Optional.of(mock(Expression.class))); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getInitializer(); + order.verify(node).getName(); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenVoidType() { + // Given + Object argument = mock(Object.class); + VoidType node = mock(VoidType.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenWhileStmt() { + // Given + Object argument = mock(Object.class); + WhileStmt node = mock(WhileStmt.class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(Statement.class)); + Mockito.when(node.getCondition()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getCondition(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenWildcardType() { + // Given + Object argument = mock(Object.class); + WildcardType node = mock(WildcardType.class); + + // When + Mockito.when(node.getExtendedType()).thenReturn(Optional.of(mock(ReferenceType.class))); + Mockito.when(node.getSuperType()).thenReturn(Optional.of(mock(ReferenceType.class))); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getExtendedType(); + order.verify(node, times(2)).getSuperType(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleDeclaration() { + // Given + Object argument = mock(Object.class); + ModuleDeclaration node = mock(ModuleDeclaration.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getDirectives()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node).getDirectives(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleExportsDirective() { + // Given + Object argument = mock(Object.class); + ModuleExportsDirective node = mock(ModuleExportsDirective.class); + + // When + Mockito.when(node.getModuleNames()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getModuleNames(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleOpensDirective() { + // Given + Object argument = mock(Object.class); + ModuleOpensDirective node = mock(ModuleOpensDirective.class); + + // When + Mockito.when(node.getModuleNames()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getModuleNames(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleProvidesDirective() { + // Given + Object argument = mock(Object.class); + ModuleProvidesDirective node = mock(ModuleProvidesDirective.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getWith()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node).getWith(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleRequiresDirective() { + // Given + Object argument = mock(Object.class); + ModuleRequiresDirective node = mock(ModuleRequiresDirective.class); + + // When + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModuleUsesDirective() { + // Given + Object argument = mock(Object.class); + ModuleUsesDirective node = mock(ModuleUsesDirective.class); + + // When + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getName(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenUnparsableStmt() { + // Given + Object argument = mock(Object.class); + UnparsableStmt node = mock(UnparsableStmt.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenReceiverParameter() { + // Given + Object argument = mock(Object.class); + ReceiverParameter node = mock(ReceiverParameter.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(Name.class)); + Mockito.when(node.getType()).thenReturn(mock(Type.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node).getName(); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenVarType() { + // Given + Object argument = mock(Object.class); + VarType node = mock(VarType.class); + + // When + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenModifier() { + // Given + Object argument = mock(Object.class); + Modifier node = mock(Modifier.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenSwitchExpr() { + // Given + Object argument = mock(Object.class); + SwitchExpr node = mock(SwitchExpr.class); + + // When + Mockito.when(node.getEntries()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getSelector()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getEntries(); + order.verify(node).getSelector(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenYieldStmt() { + // Given + Object argument = mock(Object.class); + YieldStmt node = mock(YieldStmt.class); + + // When + Mockito.when(node.getExpression()).thenReturn(mock(Expression.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getExpression(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenTextBlockLiteralExpr() { + // Given + Object argument = mock(Object.class); + TextBlockLiteralExpr node = mock(TextBlockLiteralExpr.class); + + // When + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenPatternExpr() { + // Given + Object argument = mock(Object.class); + PatternExpr node = mock(PatternExpr.class); + + // When + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getType()).thenReturn(mock(ReferenceType.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getType(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_GivenRecordDeclaration() { + // Given + Object argument = mock(Object.class); + RecordDeclaration node = mock(RecordDeclaration.class); + + // When + Mockito.when(node.getImplementedTypes()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getReceiverParameter()).thenReturn(Optional.of(mock(ReceiverParameter.class))); + Mockito.when(node.getTypeParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getMembers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getImplementedTypes(); + order.verify(node).getParameters(); + order.verify(node, times(2)).getReceiverParameter(); + order.verify(node).getTypeParameters(); + order.verify(node).getMembers(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + + @Test + void visit_CompactConstructorDeclaration () { + // Given + Object argument = mock(Object.class); + CompactConstructorDeclaration node = mock(CompactConstructorDeclaration .class); + + // When + Mockito.when(node.getBody()).thenReturn(mock(BlockStmt.class)); + Mockito.when(node.getModifiers()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getName()).thenReturn(mock(SimpleName.class)); + Mockito.when(node.getThrownExceptions()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getTypeParameters()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getAnnotations()).thenReturn(mock(NodeList.class)); + Mockito.when(node.getComment()).thenReturn(Optional.of(mock(Comment.class))); + + // Then + Object result = visitor.visit(node, argument); + + // Assert + assertNull(result); + + // Verify + InOrder order = Mockito.inOrder(node); + order.verify(node).getBody(); + order.verify(node).getModifiers(); + order.verify(node).getName(); + order.verify(node).getThrownExceptions(); + order.verify(node).getTypeParameters(); + order.verify(node).getAnnotations(); + order.verify(node, times(2)).getComment(); + order.verifyNoMoreInteractions(); + } + +} diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/GenericVisitorWithDefaultsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/GenericVisitorWithDefaultsTest.java index dd78fb51a4..3a32a035a3 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/GenericVisitorWithDefaultsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/GenericVisitorWithDefaultsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/HashCodeVisitorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/HashCodeVisitorTest.java index 1c2ab7a3de..bab289a0df 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/HashCodeVisitorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/HashCodeVisitorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ModifierVisitorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ModifierVisitorTest.java index b11fe4caa0..a8f1a0dc82 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ModifierVisitorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ModifierVisitorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/NoCommentEqualsVisitorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/NoCommentEqualsVisitorTest.java index 30c5b97560..1f6c88b535 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/NoCommentEqualsVisitorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/NoCommentEqualsVisitorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/NoCommentHashCodeVisitorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/NoCommentHashCodeVisitorTest.java index 2bb20e8952..b88a2feff8 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/NoCommentHashCodeVisitorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/NoCommentHashCodeVisitorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/NodeFinderVisitorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/NodeFinderVisitorTest.java new file mode 100644 index 0000000000..549d35829c --- /dev/null +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/NodeFinderVisitorTest.java @@ -0,0 +1,100 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.ast.visitor; + +import static com.github.javaparser.StaticJavaParser.parse; +import static org.junit.jupiter.api.Assertions.*; + +import org.junit.jupiter.api.Test; + +import com.github.javaparser.Position; +import com.github.javaparser.Range; +import com.github.javaparser.ast.CompilationUnit; +import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; +import com.github.javaparser.ast.body.MethodDeclaration; +import com.github.javaparser.ast.expr.VariableDeclarationExpr; +import com.github.javaparser.ast.type.Type; + +class NodeFinderVisitorTest { + + NodeFinderVisitor finder = new NodeFinderVisitor(NodeFinderVisitor.fConveringNode); + + @Test + void testNoCoveringNode() { + CompilationUnit cu = parse("class X { }"); + Position position = new Position(0,0); + Range range = new Range(position, position); + cu.accept(finder, range); + assertTrue(finder.getSelectedNode() == null); + } + + @Test + void testClassOrInterfaceDeclarationIsCovering() { + CompilationUnit cu = parse("class X { }"); + ClassOrInterfaceDeclaration cid = cu.findFirst(ClassOrInterfaceDeclaration.class).get(); + Range range = new Range(Position.HOME, Position.HOME); + cu.accept(finder, range); + assertEquals(cid , finder.getSelectedNode()); + } + + @Test + void testClassOrInterfaceDeclarationIsCovering2() { + CompilationUnit cu = parse("class X { }"); + ClassOrInterfaceDeclaration cid = cu.findFirst(ClassOrInterfaceDeclaration.class).get(); + cu.accept(finder, range(1, 11)); + assertEquals(cid , finder.getSelectedNode()); + } + + @Test + void testClassOrInterfaceDeclarationCovering() { + CompilationUnit cu = parse( + "class X {\n" + + " Boolean f;\n" + + "}"); + + ClassOrInterfaceDeclaration cid = cu.findFirst(ClassOrInterfaceDeclaration.class).get(); + cu.accept(finder, range(2, 11)); + assertEquals(cid , finder.getSelectedNode()); + } + + @Test + void testNoCoveringOrCoveredNode2() { + CompilationUnit cu = parse( + "class X {\n" + + " void f() {\n" + + " int i = 0;\n" + + " }\n" + + "}"); + MethodDeclaration md = cu.findFirst(MethodDeclaration.class).get(); + cu.accept(finder, range(3, 11)); + System.out.println(finder.getSelectedNode().toString()); + assertEquals(md.getBody().get() , finder.getSelectedNode()); + } + + private Range range(int line, int length) { + return range(line, 1, length); + } + + private Range range(int line, int begin, int length) { + return new Range(new Position(line, begin), new Position(line, length)); + } + +} diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ObjectIdentityEqualsVisitorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ObjectIdentityEqualsVisitorTest.java new file mode 100644 index 0000000000..43eb4d87df --- /dev/null +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ObjectIdentityEqualsVisitorTest.java @@ -0,0 +1,928 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.ast.visitor; + +import com.github.javaparser.ast.*; +import com.github.javaparser.ast.body.*; +import com.github.javaparser.ast.comments.BlockComment; +import com.github.javaparser.ast.comments.JavadocComment; +import com.github.javaparser.ast.comments.LineComment; +import com.github.javaparser.ast.expr.*; +import com.github.javaparser.ast.modules.*; +import com.github.javaparser.ast.stmt.*; +import com.github.javaparser.ast.type.*; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +class ObjectIdentityEqualsVisitorTest { + + @Test + void equals_GivenCompilationUnit() { + Node nodeA = new CompilationUnit(); + Node nodeB = new CompilationUnit(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenPackageDeclaration() { + Node nodeA = new PackageDeclaration(); + Node nodeB = new PackageDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenTypeParameter() { + Node nodeA = new TypeParameter(); + Node nodeB = new TypeParameter(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenLineComment() { + Node nodeA = new LineComment(); + Node nodeB = new LineComment(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenBlockComment() { + Node nodeA = new BlockComment(); + Node nodeB = new BlockComment(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenClassOrInterfaceDeclaration() { + Node nodeA = new ClassOrInterfaceDeclaration(); + Node nodeB = new ClassOrInterfaceDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenEnumDeclaration() { + Node nodeA = new EnumDeclaration(); + Node nodeB = new EnumDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenEnumConstantDeclaration() { + Node nodeA = new EnumConstantDeclaration(); + Node nodeB = new EnumConstantDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenAnnotationDeclaration() { + Node nodeA = new AnnotationDeclaration(); + Node nodeB = new AnnotationDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenAnnotationMemberDeclaration() { + Node nodeA = new AnnotationMemberDeclaration(); + Node nodeB = new AnnotationMemberDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenFieldDeclaration() { + Node nodeA = new FieldDeclaration(); + Node nodeB = new FieldDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenVariableDeclarator() { + Node nodeA = new VariableDeclarator(); + Node nodeB = new VariableDeclarator(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenConstructorDeclaration() { + Node nodeA = new ConstructorDeclaration(); + Node nodeB = new ConstructorDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenMethodDeclaration() { + Node nodeA = new MethodDeclaration(); + Node nodeB = new MethodDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenParameter() { + Node nodeA = new Parameter(); + Node nodeB = new Parameter(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenInitializerDeclaration() { + Node nodeA = new InitializerDeclaration(); + Node nodeB = new InitializerDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenJavadocComment() { + Node nodeA = new JavadocComment(); + Node nodeB = new JavadocComment(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenClassOrInterfaceType() { + Node nodeA = new ClassOrInterfaceType(); + Node nodeB = new ClassOrInterfaceType(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenPrimitiveType() { + Node nodeA = new PrimitiveType(); + Node nodeB = new PrimitiveType(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenArrayType() { + Node nodeA = new ArrayType(new VoidType()); + Node nodeB = new ArrayType(new VoidType()); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenArrayCreationLevel() { + Node nodeA = new ArrayCreationLevel(); + Node nodeB = new ArrayCreationLevel(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenIntersectionType() { + Node nodeA = new IntersectionType(new NodeList<>()); + Node nodeB = new IntersectionType(new NodeList<>()); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenUnionType() { + Node nodeA = new UnionType(); + Node nodeB = new UnionType(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenVoidType() { + Node nodeA = new VoidType(); + Node nodeB = new VoidType(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenWildcardType() { + Node nodeA = new WildcardType(); + Node nodeB = new WildcardType(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenUnknownType() { + Node nodeA = new UnknownType(); + Node nodeB = new UnknownType(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenArrayAccessExpr() { + Node nodeA = new ArrayAccessExpr(); + Node nodeB = new ArrayAccessExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenArrayCreationExpr() { + Node nodeA = new ArrayCreationExpr(); + Node nodeB = new ArrayCreationExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenArrayInitializerExpr() { + Node nodeA = new ArrayInitializerExpr(); + Node nodeB = new ArrayInitializerExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenAssignExpr() { + Node nodeA = new AssignExpr(); + Node nodeB = new AssignExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenBinaryExpr() { + Node nodeA = new BinaryExpr(); + Node nodeB = new BinaryExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenCastExpr() { + Node nodeA = new CastExpr(); + Node nodeB = new CastExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenClassExpr() { + Node nodeA = new ClassExpr(); + Node nodeB = new ClassExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenConditionalExpr() { + Node nodeA = new ConditionalExpr(); + Node nodeB = new ConditionalExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenEnclosedExpr() { + Node nodeA = new EnclosedExpr(); + Node nodeB = new EnclosedExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenFieldAccessExpr() { + Node nodeA = new FieldAccessExpr(); + Node nodeB = new FieldAccessExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenInstanceOfExpr() { + Node nodeA = new InstanceOfExpr(); + Node nodeB = new InstanceOfExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenStringLiteralExpr() { + Node nodeA = new StringLiteralExpr(); + Node nodeB = new StringLiteralExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenIntegerLiteralExpr() { + Node nodeA = new IntegerLiteralExpr(); + Node nodeB = new IntegerLiteralExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenLongLiteralExpr() { + Node nodeA = new LongLiteralExpr(); + Node nodeB = new LongLiteralExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenCharLiteralExpr() { + Node nodeA = new CharLiteralExpr(); + Node nodeB = new CharLiteralExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenDoubleLiteralExpr() { + Node nodeA = new DoubleLiteralExpr(); + Node nodeB = new DoubleLiteralExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenBooleanLiteralExpr() { + Node nodeA = new BooleanLiteralExpr(); + Node nodeB = new BooleanLiteralExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenNullLiteralExpr() { + Node nodeA = new NullLiteralExpr(); + Node nodeB = new NullLiteralExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenMethodCallExpr() { + Node nodeA = new MethodCallExpr(); + Node nodeB = new MethodCallExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenNameExpr() { + Node nodeA = new NameExpr(); + Node nodeB = new NameExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenObjectCreationExpr() { + Node nodeA = new ObjectCreationExpr(); + Node nodeB = new ObjectCreationExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenName() { + Node nodeA = new Name(); + Node nodeB = new Name(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenSimpleName() { + Node nodeA = new SimpleName(); + Node nodeB = new SimpleName(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenThisExpr() { + Node nodeA = new ThisExpr(); + Node nodeB = new ThisExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenSuperExpr() { + Node nodeA = new SuperExpr(); + Node nodeB = new SuperExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenUnaryExpr() { + Node nodeA = new UnaryExpr(); + Node nodeB = new UnaryExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenVariableDeclarationExpr() { + Node nodeA = new VariableDeclarationExpr(); + Node nodeB = new VariableDeclarationExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenMarkerAnnotationExpr() { + Node nodeA = new MarkerAnnotationExpr(); + Node nodeB = new MarkerAnnotationExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenSingleMemberAnnotationExpr() { + Node nodeA = new SingleMemberAnnotationExpr(); + Node nodeB = new SingleMemberAnnotationExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenNormalAnnotationExpr() { + Node nodeA = new NormalAnnotationExpr(); + Node nodeB = new NormalAnnotationExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenMemberValuePair() { + Node nodeA = new MemberValuePair(); + Node nodeB = new MemberValuePair(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenExplicitConstructorInvocationStmt() { + Node nodeA = new ExplicitConstructorInvocationStmt(); + Node nodeB = new ExplicitConstructorInvocationStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenLocalClassDeclarationStmt() { + Node nodeA = new LocalClassDeclarationStmt(); + Node nodeB = new LocalClassDeclarationStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenLocalRecordDeclarationStmt() { + Node nodeA = new LocalRecordDeclarationStmt(); + Node nodeB = new LocalRecordDeclarationStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenAssertStmt() { + Node nodeA = new AssertStmt(); + Node nodeB = new AssertStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenBlockStmt() { + Node nodeA = new BlockStmt(); + Node nodeB = new BlockStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenLabeledStmt() { + Node nodeA = new LabeledStmt(); + Node nodeB = new LabeledStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenEmptyStmt() { + Node nodeA = new EmptyStmt(); + Node nodeB = new EmptyStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenExpressionStmt() { + Node nodeA = new ExpressionStmt(); + Node nodeB = new ExpressionStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenSwitchStmt() { + Node nodeA = new SwitchStmt(); + Node nodeB = new SwitchStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenSwitchEntry() { + Node nodeA = new SwitchEntry(); + Node nodeB = new SwitchEntry(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenBreakStmt() { + Node nodeA = new BreakStmt(); + Node nodeB = new BreakStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenReturnStmt() { + Node nodeA = new ReturnStmt(); + Node nodeB = new ReturnStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenIfStmt() { + Node nodeA = new IfStmt(); + Node nodeB = new IfStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenWhileStmt() { + Node nodeA = new WhileStmt(); + Node nodeB = new WhileStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenContinueStmt() { + Node nodeA = new ContinueStmt(); + Node nodeB = new ContinueStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenDoStmt() { + Node nodeA = new DoStmt(); + Node nodeB = new DoStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenForEachStmt() { + Node nodeA = new ForEachStmt(); + Node nodeB = new ForEachStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenForStmt() { + Node nodeA = new ForStmt(); + Node nodeB = new ForStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenThrowStmt() { + Node nodeA = new ThrowStmt(); + Node nodeB = new ThrowStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenSynchronizedStmt() { + Node nodeA = new SynchronizedStmt(); + Node nodeB = new SynchronizedStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenTryStmt() { + Node nodeA = new TryStmt(); + Node nodeB = new TryStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenCatchClause() { + Node nodeA = new CatchClause(); + Node nodeB = new CatchClause(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenLambdaExpr() { + Node nodeA = new LambdaExpr(); + Node nodeB = new LambdaExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenMethodReferenceExpr() { + Node nodeA = new MethodReferenceExpr(); + Node nodeB = new MethodReferenceExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenTypeExpr() { + Node nodeA = new TypeExpr(); + Node nodeB = new TypeExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenImportDeclaration() { + Node nodeA = new ImportDeclaration("a", false, false); + Node nodeB = new ImportDeclaration("b", false, false); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenModuleDeclaration() { + Node nodeA = new ModuleDeclaration(); + Node nodeB = new ModuleDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenModuleRequiresDirective() { + Node nodeA = new ModuleRequiresDirective(); + Node nodeB = new ModuleRequiresDirective(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenModuleExportsDirective() { + Node nodeA = new ModuleExportsDirective(); + Node nodeB = new ModuleExportsDirective(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenModuleProvidesDirective() { + Node nodeA = new ModuleProvidesDirective(); + Node nodeB = new ModuleProvidesDirective(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenModuleUsesDirective() { + Node nodeA = new ModuleUsesDirective(); + Node nodeB = new ModuleUsesDirective(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenModuleOpensDirective() { + Node nodeA = new ModuleOpensDirective(); + Node nodeB = new ModuleOpensDirective(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenUnparsableStmt() { + Node nodeA = new UnparsableStmt(); + Node nodeB = new UnparsableStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenReceiverParameter() { + Node nodeA = new ReceiverParameter(); + Node nodeB = new ReceiverParameter(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenVarType() { + Node nodeA = new VarType(); + Node nodeB = new VarType(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenModifier() { + Node nodeA = new Modifier(); + Node nodeB = new Modifier(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenSwitchExpr() { + Node nodeA = new SwitchExpr(); + Node nodeB = new SwitchExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenYieldStmt() { + Node nodeA = new YieldStmt(); + Node nodeB = new YieldStmt(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenTextBlockLiteralExpr() { + Node nodeA = new TextBlockLiteralExpr(); + Node nodeB = new TextBlockLiteralExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenPatternExpr() { + Node nodeA = new PatternExpr(); + Node nodeB = new PatternExpr(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenRecordDeclaration() { + Node nodeA = new RecordDeclaration(); + Node nodeB = new RecordDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + + @Test + void equals_GivenCompactConstructorDeclaration() { + Node nodeA = new CompactConstructorDeclaration(); + Node nodeB = new CompactConstructorDeclaration(); + + Assertions.assertTrue(ObjectIdentityEqualsVisitor.equals(nodeA, nodeA)); + Assertions.assertFalse(ObjectIdentityEqualsVisitor.equals(nodeA, nodeB)); + } + +} diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ObjectIdentityHashCodeVisitorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ObjectIdentityHashCodeVisitorTest.java index c9db6ee2f5..36599f2307 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ObjectIdentityHashCodeVisitorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ObjectIdentityHashCodeVisitorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/TreeVisitorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/TreeVisitorTest.java index 96e3c35373..eb0fec1d31 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/TreeVisitorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/TreeVisitorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/VoidVisitorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/VoidVisitorTest.java index 2423274b50..72c8d254a2 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/VoidVisitorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/VoidVisitorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/VoidVisitorWithDefaultsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/VoidVisitorWithDefaultsTest.java index 5a3736c209..cd45dc3190 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/VoidVisitorWithDefaultsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/VoidVisitorWithDefaultsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/ClassOrInterfaceDeclarationBuildersTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/ClassOrInterfaceDeclarationBuildersTest.java index 47d8563b75..84147c369d 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/ClassOrInterfaceDeclarationBuildersTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/ClassOrInterfaceDeclarationBuildersTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/CompilationUnitBuildersTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/CompilationUnitBuildersTest.java index 9fbc7a4e68..0ba1132571 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/CompilationUnitBuildersTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/CompilationUnitBuildersTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/EnumDeclarationBuildersTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/EnumDeclarationBuildersTest.java index 37ff28b02f..508dc157b5 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/EnumDeclarationBuildersTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/EnumDeclarationBuildersTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/FieldDeclarationBuildersTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/FieldDeclarationBuildersTest.java index 025fc483af..31f157bab5 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/FieldDeclarationBuildersTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/FieldDeclarationBuildersTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithAnnotationsBuildersTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithAnnotationsBuildersTest.java index a4bb1a63c3..c525b3b388 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithAnnotationsBuildersTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithAnnotationsBuildersTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithMembersBuildersTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithMembersBuildersTest.java index d1acb56ca3..35e2b76129 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithMembersBuildersTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithMembersBuildersTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithParametersBuildersTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithParametersBuildersTest.java index 0954b9a64e..9e3afc3b2a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithParametersBuildersTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithParametersBuildersTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithThrownExceptionsBuildersTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithThrownExceptionsBuildersTest.java index f7d6696747..5282ab82e2 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithThrownExceptionsBuildersTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/builders/NodeWithThrownExceptionsBuildersTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue2627Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue2627Test.java index 864fe49f93..ec02e417b9 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue2627Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue2627Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue3113Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue3113Test.java index 09c0850747..878a62f82a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue3113Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue3113Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue3255Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue3255Test.java index a717d80602..8473fcb6ea 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue3255Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/issues/Issue3255Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/JavadocExtractorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/JavadocExtractorTest.java index e36a9e1f8b..2e38971630 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/JavadocExtractorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/JavadocExtractorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/JavadocTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/JavadocTest.java index 2513b5db96..84d4ea8ab9 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/JavadocTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/JavadocTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/description/JavadocInlineTagTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/description/JavadocInlineTagTest.java index c4c9749159..2673a6fad5 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/description/JavadocInlineTagTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/javadoc/description/JavadocInlineTagTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/manual/BulkParseTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/manual/BulkParseTest.java index 4f7fb63492..1be1fc9b81 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/manual/BulkParseTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/manual/BulkParseTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/metamodel/BaseNodeMetaModelTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/metamodel/BaseNodeMetaModelTest.java index d48784830d..a263709fd0 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/metamodel/BaseNodeMetaModelTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/metamodel/BaseNodeMetaModelTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/metamodel/PropertyMetaModelTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/metamodel/PropertyMetaModelTest.java index a8ed8a2bd6..aa0ba1ad9f 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/metamodel/PropertyMetaModelTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/metamodel/PropertyMetaModelTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/modules/ModuleDeclarationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/modules/ModuleDeclarationTest.java index ea248bccb0..52e79aef45 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/modules/ModuleDeclarationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/modules/ModuleDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/ConcreteSyntaxModelAcceptanceTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/ConcreteSyntaxModelAcceptanceTest.java index 144c953814..dda8f69d46 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/ConcreteSyntaxModelAcceptanceTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/ConcreteSyntaxModelAcceptanceTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/ConcreteSyntaxModelTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/ConcreteSyntaxModelTest.java index d9d30bc853..df91566902 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/ConcreteSyntaxModelTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/ConcreteSyntaxModelTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/DefaultPrettyPrinterTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/DefaultPrettyPrinterTest.java index f8ede933fe..fe1579470e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/DefaultPrettyPrinterTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/DefaultPrettyPrinterTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/DotPrinterTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/DotPrinterTest.java index 6b8e2ea628..8365c2b9ff 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/DotPrinterTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/DotPrinterTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/JsonPrinterTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/JsonPrinterTest.java index fb59e448d1..81a86c6c6f 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/JsonPrinterTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/JsonPrinterTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrettyPrintVisitorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrettyPrintVisitorTest.java index b5f33f5165..9cb667a8b8 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrettyPrintVisitorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrettyPrintVisitorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrettyPrinterTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrettyPrinterTest.java index 314ff72fb5..41c6c22b7e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrettyPrinterTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrettyPrinterTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrinterConfigurationTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrinterConfigurationTest.java index 49a5b68ed6..01aac671b7 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrinterConfigurationTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/PrinterConfigurationTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/TestVisitor.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/TestVisitor.java index de69c322cb..54da894144 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/TestVisitor.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/TestVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/XmlPrinterTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/XmlPrinterTest.java index 1acb3246b8..cbe43fb96e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/XmlPrinterTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/XmlPrinterTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/YamlPrinterTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/YamlPrinterTest.java index f224574be3..12f7da252e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/YamlPrinterTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/YamlPrinterTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/DefaultImportOrderingStrategyTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/DefaultImportOrderingStrategyTest.java index 4017218f92..c471074f2a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/DefaultImportOrderingStrategyTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/DefaultImportOrderingStrategyTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/EclipseImportOrderingStrategyTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/EclipseImportOrderingStrategyTest.java index 8973290290..323b43a1a3 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/EclipseImportOrderingStrategyTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/EclipseImportOrderingStrategyTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/IntelliJImportOrderingStrategyTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/IntelliJImportOrderingStrategyTest.java index 3ba9546c38..82314e9750 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/IntelliJImportOrderingStrategyTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/configuration/imports/IntelliJImportOrderingStrategyTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/AbstractLexicalPreservingTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/AbstractLexicalPreservingTest.java index 89e10a0473..e30db4d1f0 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/AbstractLexicalPreservingTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/AbstractLexicalPreservingTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/AnnotationSpaceTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/AnnotationSpaceTest.java index 3acde19da7..1d65a40901 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/AnnotationSpaceTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/AnnotationSpaceTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElementCalculatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElementCalculatorTest.java index 5e48723b39..80e739b5d1 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElementCalculatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElementCalculatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1467Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1467Test.java index 9a8f1c6d3d..41cb3b3cef 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1467Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1467Test.java @@ -2,7 +2,7 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1634Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1634Test.java index 4b61bbf3e2..e70341a4ed 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1634Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1634Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1766Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1766Test.java index a915187e14..c1ddee7b97 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1766Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1766Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1793Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1793Test.java index 41c13bd17a..d457681c59 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1793Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1793Test.java @@ -1,7 +1,7 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2137Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2137Test.java index c7f309d4e4..bcb8bb8ed6 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2137Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2137Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2290Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2290Test.java index 93f80a477c..a94a555515 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2290Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2290Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2374Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2374Test.java index b55f8a6ae4..3eeb6cdad4 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2374Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2374Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2393Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2393Test.java index 32464d7764..c879a3f9e4 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2393Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2393Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2517Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2517Test.java index be7e57f91b..8b5e2f6409 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2517Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2517Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2592Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2592Test.java index 065b82194b..0b593ef046 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2592Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2592Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2610Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2610Test.java index e4a5d8a1ee..cc689d6037 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2610Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2610Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2620Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2620Test.java index 31a06086f6..c8c49eb783 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2620Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2620Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2806Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2806Test.java index e2e790b43a..b760addcda 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2806Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue2806Test.java @@ -1,7 +1,7 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3296Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3296Test.java index 962480d9a8..1352dc78cb 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3296Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3296Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3358Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3358Test.java index 304bd806f3..6191c0940c 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3358Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3358Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3387Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3387Test.java index 5b9830287e..c3be4ecde6 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3387Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3387Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3440Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3440Test.java index e00c537b74..6280005962 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3440Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3440Test.java @@ -2,7 +2,7 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3441Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3441Test.java index f5357b1295..a49dbffa41 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3441Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3441Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3721Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3721Test.java index 937f58036e..944631160a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3721Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3721Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3746Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3746Test.java index 89a6b5ec4c..2e35917a61 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3746Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3746Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3750Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3750Test.java index 5d310025ed..da9c431dce 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3750Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3750Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3761Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3761Test.java index 989cb65cf7..146b0b5968 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3761Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3761Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3773Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3773Test.java index 4f9b32ec1c..ca93fe5112 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3773Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3773Test.java @@ -1,7 +1,7 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3796Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3796Test.java index b868d36ac9..20e98f79db 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3796Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3796Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3818Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3818Test.java index 5a6b48111e..88e839716e 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3818Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3818Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3924Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3924Test.java index f57d288e6d..3d98cba088 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3924Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3924Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3936Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3936Test.java index 6b51037089..a100c2b0fa 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3936Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3936Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3937Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3937Test.java index 51d62a3ced..8632111271 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3937Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3937Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3949Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3949Test.java old mode 100755 new mode 100644 index 05977b1b09..21c30552ef --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3949Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue3949Test.java @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.printer.lexicalpreservation; import static com.github.javaparser.utils.TestUtils.assertEqualsStringIgnoringEol; diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue4104Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue4104Test.java index ad4d5a743c..6d981be214 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue4104Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue4104Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue4163Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue4163Test.java index fa9d7de1c4..6e55e23e26 100755 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue4163Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue4163Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue4245Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue4245Test.java new file mode 100644 index 0000000000..717666a1f2 --- /dev/null +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue4245Test.java @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.printer.lexicalpreservation; + +import static com.github.javaparser.utils.TestUtils.assertEqualsStringIgnoringEol; + +import org.junit.jupiter.api.Test; + +import com.github.javaparser.ParserConfiguration; +import com.github.javaparser.StaticJavaParser; +import com.github.javaparser.ParserConfiguration.LanguageLevel; +import com.github.javaparser.ast.CompilationUnit; +import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; +import com.github.javaparser.ast.expr.LambdaExpr; +import com.github.javaparser.ast.stmt.BlockStmt; +import com.github.javaparser.ast.stmt.BreakStmt; +import com.github.javaparser.ast.stmt.ExpressionStmt; + +class Issue4245Test extends AbstractLexicalPreservingTest { + + @Test + public void test() { + + ParserConfiguration parserConfiguration = new ParserConfiguration(); + parserConfiguration.setLanguageLevel(LanguageLevel.JAVA_17); + StaticJavaParser.setConfiguration(parserConfiguration); + considerCode( + "public sealed interface IUpdatePortCommand permits UpdateScheduleCommand, UpdateStateCommand {}"); + + ClassOrInterfaceDeclaration classOrInterface = cu.findFirst(ClassOrInterfaceDeclaration.class).get(); + classOrInterface.setModifiers(); + + String expected = + "interface IUpdatePortCommand permits UpdateScheduleCommand, UpdateStateCommand {}"; + + assertEqualsStringIgnoringEol(expected, LexicalPreservingPrinter.print(cu)); + } + +} diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/LexicalDifferenceCalculatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/LexicalDifferenceCalculatorTest.java index 9a9c00d722..64cd4cb444 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/LexicalDifferenceCalculatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/LexicalDifferenceCalculatorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinterTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinterTest.java index d32b6d0ef0..25a56549d3 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinterTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinterTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PeekingIteratorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PeekingIteratorTest.java old mode 100755 new mode 100644 index 0c813ce871..507ddd64f6 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PeekingIteratorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PeekingIteratorTest.java @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.printer.lexicalpreservation; import static org.junit.jupiter.api.Assertions.*; diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PrettyPrinterIssue2340Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PrettyPrinterIssue2340Test.java index 8dd8950696..9d993791d3 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PrettyPrinterIssue2340Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PrettyPrinterIssue2340Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PrettyPrinterIssue2351Test.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PrettyPrinterIssue2351Test.java index 4b3eccc2c3..2d81f3b196 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PrettyPrinterIssue2351Test.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/PrettyPrinterIssue2351Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/TransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/TransformationsTest.java index b816c2b8af..d7ab2a433e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/TransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/TransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/changes/NoChangeTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/changes/NoChangeTest.java index 6952d1da0b..1e1ab8dcc0 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/changes/NoChangeTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/changes/NoChangeTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/ArrayCreationLevelTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/ArrayCreationLevelTransformationsTest.java index 8a1119d28d..e8aca1fb5b 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/ArrayCreationLevelTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/ArrayCreationLevelTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/CompilationUnitTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/CompilationUnitTransformationsTest.java index af8f7d3d92..b21f9480f2 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/CompilationUnitTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/CompilationUnitTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/AnnotationDeclarationTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/AnnotationDeclarationTransformationsTest.java index c400bbe4e1..5decc377a2 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/AnnotationDeclarationTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/AnnotationDeclarationTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/AnnotationMemberDeclarationTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/AnnotationMemberDeclarationTransformationsTest.java index 8b81ff3a51..9bd7850032 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/AnnotationMemberDeclarationTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/AnnotationMemberDeclarationTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/ClassOrInterfaceDeclarationTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/ClassOrInterfaceDeclarationTransformationsTest.java index 9a30d693bd..e6c9c8b52e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/ClassOrInterfaceDeclarationTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/ClassOrInterfaceDeclarationTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/ConstructorDeclarationTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/ConstructorDeclarationTransformationsTest.java index 00b3bae803..d4c71e837a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/ConstructorDeclarationTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/ConstructorDeclarationTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/EnumConstantDeclarationTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/EnumConstantDeclarationTransformationsTest.java index d977337499..bfadec8ebd 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/EnumConstantDeclarationTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/EnumConstantDeclarationTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/EnumDeclarationTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/EnumDeclarationTransformationsTest.java index ce46799cf5..252ffc5282 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/EnumDeclarationTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/EnumDeclarationTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/FieldDeclarationTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/FieldDeclarationTransformationsTest.java index c2f406b0bd..f7eabac00c 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/FieldDeclarationTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/FieldDeclarationTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/InitializerDeclarationTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/InitializerDeclarationTransformationsTest.java index a1e494eb18..5d2d5cf332 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/InitializerDeclarationTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/InitializerDeclarationTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/MethodDeclarationTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/MethodDeclarationTransformationsTest.java index f0d688297a..10a239495a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/MethodDeclarationTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/MethodDeclarationTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/OperatorTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/OperatorTransformationsTest.java index 35da1ad779..d4a5f26795 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/OperatorTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/OperatorTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/StatementTransformationsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/StatementTransformationsTest.java index 6b33e8e1f8..859b87cf32 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/StatementTransformationsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/StatementTransformationsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/quality/PreconditionsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/quality/PreconditionsTest.java index cedcd29e2e..031aa177e7 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/quality/PreconditionsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/quality/PreconditionsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/remove/NodeRemovalTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/remove/NodeRemovalTest.java index 418a2dcca7..5358a59a07 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/remove/NodeRemovalTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/remove/NodeRemovalTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/CodeGenerationUtilsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/CodeGenerationUtilsTest.java index 8801050b5c..2bf652a1c1 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/CodeGenerationUtilsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/CodeGenerationUtilsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ExtractingVisitors.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ExtractingVisitors.java index 0a124943ac..9551986401 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ExtractingVisitors.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ExtractingVisitors.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/LineSeparatorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/LineSeparatorTest.java index 83aeea079f..c855bcc7bc 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/LineSeparatorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/LineSeparatorTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/LogTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/LogTest.java index 39cdec03c6..4842ca609a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/LogTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/LogTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/PairTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/PairTest.java index f902aaa05c..ee9a253096 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/PairTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/PairTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ParserCollectionStrategyTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ParserCollectionStrategyTest.java index e05c6d52e9..1d88d34051 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ParserCollectionStrategyTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ParserCollectionStrategyTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/PositionUtilsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/PositionUtilsTest.java index 120a534b77..f2ecc82d8e 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/PositionUtilsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/PositionUtilsTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/SourceRootTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/SourceRootTest.java index 78737041ed..1382ec5886 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/SourceRootTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/SourceRootTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/SourceZipTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/SourceZipTest.java index 866b3ce869..e43b33f16a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/SourceZipTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/SourceZipTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/TestParser.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/TestParser.java index e6efdf2485..f5e346c6e9 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/TestParser.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/TestParser.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/TestUtils.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/TestUtils.java index 8506704508..87c38d1486 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/TestUtils.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/TestUtils.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/UtilsTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/UtilsTest.java index 9f4ee037d3..8f92ec2c37 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/UtilsTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/UtilsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorListTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorListTest.java index 5511dfc8d8..fcd75a98b3 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorListTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorListTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorMapTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorMapTest.java index fb28365aaa..d7e9579a0a 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorMapTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorMapTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorSetTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorSetTest.java index 02c4eeb623..bf32e5afb5 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorSetTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/utils/VisitorSetTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core-testing/src/test/java/com/github/javaparser/version/Java10PostProcessorTest.java b/javaparser-core-testing/src/test/java/com/github/javaparser/version/Java10PostProcessorTest.java index 0157763636..3cd82ac1b9 100644 --- a/javaparser-core-testing/src/test/java/com/github/javaparser/version/Java10PostProcessorTest.java +++ b/javaparser-core-testing/src/test/java/com/github/javaparser/version/Java10PostProcessorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/pom.xml b/javaparser-core/pom.xml index cea256cb5a..253a202099 100644 --- a/javaparser-core/pom.xml +++ b/javaparser-core/pom.xml @@ -3,7 +3,7 @@ jmlparser-parent io.github.jmltoolkit - 3.25.6 + 3.25.8 4.0.0 @@ -114,7 +114,6 @@ org.codehaus.mojo templating-maven-plugin - 1.0.0 filter-src diff --git a/javaparser-core/src/main/java-templates/com/github/javaparser/JavaParserBuild.java b/javaparser-core/src/main/java-templates/com/github/javaparser/JavaParserBuild.java index 4988dccf26..71eaf2eaa3 100644 --- a/javaparser-core/src/main/java-templates/com/github/javaparser/JavaParserBuild.java +++ b/javaparser-core/src/main/java-templates/com/github/javaparser/JavaParserBuild.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/CommentsInserter.java b/javaparser-core/src/main/java/com/github/javaparser/CommentsInserter.java index 876a86a81d..be7f6f2221 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/CommentsInserter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/CommentsInserter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/HasParentNode.java b/javaparser-core/src/main/java/com/github/javaparser/HasParentNode.java index 099b4305f7..90f348cd0a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/HasParentNode.java +++ b/javaparser-core/src/main/java/com/github/javaparser/HasParentNode.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/JavaParser.java b/javaparser-core/src/main/java/com/github/javaparser/JavaParser.java index f70777ea94..1c412691dd 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/JavaParser.java +++ b/javaparser-core/src/main/java/com/github/javaparser/JavaParser.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -107,9 +107,9 @@ private GeneratedJavaParser getParserForProvider(Provider provider) { * It takes the source code from a Provider. * The start indicates what can be found in the source code (compilation unit, block, import...) * - * @param start refer to the constants in ParseStart to see what can be parsed. + * @param start refer to the constants in ParseStart to see what can be parsed. * @param provider refer to Providers to see how you can read source. The provider will be closed after parsing. - * @param the subclass of Node that is the result of parsing in the start. + * @param the subclass of Node that is the result of parsing in the start. * @return the parse result, a collection of encountered problems, and some extra data. */ public ParseResult parse(ParseStart start, Provider provider) { @@ -145,7 +145,7 @@ public ParseResult parse(ParseStart start, Provider provi * Parses the Java code contained in the {@link InputStream} and returns a * {@link CompilationUnit} that represents it. * - * @param in {@link InputStream} containing Java source code. It will be closed after parsing. + * @param in {@link InputStream} containing Java source code. It will be closed after parsing. * @param encoding encoding of the source code * @return CompilationUnit representing the Java source code * @throws ParseProblemException if the source code has parser errors @@ -170,7 +170,7 @@ public ParseResult parse(final InputStream in) { * Parses the Java code contained in a {@link File} and returns a * {@link CompilationUnit} that represents it. * - * @param file {@link File} containing Java source code. It will be closed after parsing. + * @param file {@link File} containing Java source code. It will be closed after parsing. * @param encoding encoding of the source code * @return CompilationUnit representing the Java source code * @throws ParseProblemException if the source code has parser errors @@ -203,10 +203,10 @@ public ParseResult parse(final File file) throws FileNotFoundEx * Parses the Java code contained in a file and returns a * {@link CompilationUnit} that represents it. * - * @param path path to a file containing Java source code + * @param path path to a file containing Java source code * @param encoding encoding of the source code * @return CompilationUnit representing the Java source code - * @throws IOException the path could not be accessed + * @throws IOException the path could not be accessed * @throws ParseProblemException if the source code has parser errors * @deprecated set the encoding in the {@link ParserConfiguration} */ @@ -224,7 +224,7 @@ public ParseResult parse(final Path path, final Charset encodin * @param path path to a file containing Java source code * @return CompilationUnit representing the Java source code * @throws ParseProblemException if the source code has parser errors - * @throws IOException the path could not be accessed + * @throws IOException the path could not be accessed */ public ParseResult parse(final Path path) throws IOException { ParseResult result = parse(COMPILATION_UNIT, provider(path, configuration.getCharacterEncoding())); @@ -237,10 +237,10 @@ public ParseResult parse(final Path path) throws IOException { * {@link CompilationUnit} that represents it.
* * @param path path to a resource containing Java source code. As resource is accessed through a class loader, a - * leading "/" is not allowed in pathToResource + * leading "/" is not allowed in pathToResource * @return CompilationUnit representing the Java source code * @throws ParseProblemException if the source code has parser errors - * @throws IOException the path could not be accessed + * @throws IOException the path could not be accessed */ public ParseResult parseResource(final String path) throws IOException { return parse(COMPILATION_UNIT, resourceProvider(path, configuration.getCharacterEncoding())); @@ -250,12 +250,12 @@ public ParseResult parseResource(final String path) throws IOEx * Parses the Java code contained in a resource and returns a * {@link CompilationUnit} that represents it.
* - * @param path path to a resource containing Java source code. As resource is accessed through a class loader, a - * leading "/" is not allowed in pathToResource + * @param path path to a resource containing Java source code. As resource is accessed through a class loader, a + * leading "/" is not allowed in pathToResource * @param encoding encoding of the source code * @return CompilationUnit representing the Java source code * @throws ParseProblemException if the source code has parser errors - * @throws IOException the path could not be accessed + * @throws IOException the path could not be accessed * @deprecated set the encoding in the {@link ParserConfiguration} */ @Deprecated @@ -268,11 +268,11 @@ public ParseResult parseResource(final String path, Charset enc * {@link CompilationUnit} that represents it.
* * @param classLoader the classLoader that is asked to load the resource - * @param path path to a resource containing Java source code. As resource is accessed through a class loader, a - * leading "/" is not allowed in pathToResource + * @param path path to a resource containing Java source code. As resource is accessed through a class loader, a + * leading "/" is not allowed in pathToResource * @return CompilationUnit representing the Java source code * @throws ParseProblemException if the source code has parser errors - * @throws IOException the path could not be accessed + * @throws IOException the path could not be accessed * @deprecated set the encoding in the {@link ParserConfiguration} */ @Deprecated @@ -537,6 +537,18 @@ public ParseResult parseMethodDeclaration(String methodDeclar return parse(METHOD_DECLARATION, provider(methodDeclaration)); } + /** + * Parses an array initializer expression and returns it as ArrayInitializerExpr. + * + * @param arrayInitializerExpr an array initializer like "{1,2,3}" + * @return the AST for the array initializer expression + * @throws ParseProblemException if the source code has parser errors + * @see ArrayInitializerExpr + */ + public ParseResult parseArrayInitializerExpr(String arrayInitializerExpr) { + return parse(ARRAY_INITIALIZER_EXPR, provider(arrayInitializerExpr)); + } + public ParseResult parseJmlMethodLevel(String content) { return parseJmlMethodLevel(provider(content)); } diff --git a/javaparser-core/src/main/java/com/github/javaparser/JavaParserAdapter.java b/javaparser-core/src/main/java/com/github/javaparser/JavaParserAdapter.java index eab841f053..e12b4414ab 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/JavaParserAdapter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/JavaParserAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -17,6 +17,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. */ + package com.github.javaparser; import com.github.javaparser.ast.CompilationUnit; @@ -37,6 +38,7 @@ import com.github.javaparser.ast.type.Type; import com.github.javaparser.ast.type.TypeParameter; import com.github.javaparser.javadoc.Javadoc; + import java.io.*; import java.nio.file.Path; import java.util.Objects; @@ -47,6 +49,7 @@ public class JavaParserAdapter { * Wraps the {@link JavaParser}. * * @param parser The java parser to be used. + * * @return The created QuickJavaParser. */ public static JavaParserAdapter of(JavaParser parser) { @@ -67,88 +70,91 @@ public JavaParser getParser() { * Helper function to handle the result in a simpler way. * * @param result The result to be handled. - * @param The return type. + * + * @param The return type. + * * @return The parsed value. */ private T handleResult(ParseResult result) { if (result.isSuccessful()) { return result.getResult().orElse(null); } + throw new ParseProblemException(result.getProblems()); } - + public ParserConfiguration getParserConfiguration() { return parser.getParserConfiguration(); } - + public CompilationUnit parse(InputStream in) { return handleResult(getParser().parse(in)); } - + public CompilationUnit parse(File file) throws FileNotFoundException { return handleResult(getParser().parse(file)); } - + public CompilationUnit parse(Path path) throws IOException { return handleResult(getParser().parse(path)); } - + public CompilationUnit parse(Reader reader) { return handleResult(getParser().parse(reader)); } - + public CompilationUnit parse(String code) { return handleResult(getParser().parse(code)); } - + public CompilationUnit parseResource(String path) throws IOException { return handleResult(getParser().parseResource(path)); } - + public BlockStmt parseBlock(String blockStatement) { return handleResult(getParser().parseBlock(blockStatement)); } - + public Statement parseStatement(String statement) { return handleResult(getParser().parseStatement(statement)); } - + public ImportDeclaration parseImport(String importDeclaration) { return handleResult(getParser().parseImport(importDeclaration)); } - + public T parseExpression(String expression) { return handleResult(getParser().parseExpression(expression)); } - + public AnnotationExpr parseAnnotation(String annotation) { return handleResult(getParser().parseAnnotation(annotation)); } - + public BodyDeclaration parseAnnotationBodyDeclaration(String body) { return handleResult(getParser().parseAnnotationBodyDeclaration(body)); } - + public BodyDeclaration parseBodyDeclaration(String body) { return handleResult(getParser().parseBodyDeclaration(body)); } - + public ClassOrInterfaceType parseClassOrInterfaceType(String type) { return handleResult(getParser().parseClassOrInterfaceType(type)); } - + public Type parseType(String type) { return handleResult(getParser().parseType(type)); } - + public VariableDeclarationExpr parseVariableDeclarationExpr(String declaration) { return handleResult(getParser().parseVariableDeclarationExpr(declaration)); } - + public Javadoc parseJavadoc(String content) { return JavadocParser.parse(content); } - + public ExplicitConstructorInvocationStmt parseExplicitConstructorInvocationStmt(String statement) { return handleResult(getParser().parseExplicitConstructorInvocationStmt(statement)); } @@ -156,7 +162,7 @@ public ExplicitConstructorInvocationStmt parseExplicitConstructorInvocationStmt( public Name parseName(String qualifiedName) { return handleResult(getParser().parseName(qualifiedName)); } - + public SimpleName parseSimpleName(String name) { return handleResult(getParser().parseSimpleName(name)); } @@ -164,11 +170,11 @@ public SimpleName parseSimpleName(String name) { public Parameter parseParameter(String parameter) { return handleResult(getParser().parseParameter(parameter)); } - + public PackageDeclaration parsePackageDeclaration(String packageDeclaration) { return handleResult(getParser().parsePackageDeclaration(packageDeclaration)); } - + public TypeDeclaration parseTypeDeclaration(String typeDeclaration) { return handleResult(getParser().parseTypeDeclaration(typeDeclaration)); } @@ -184,8 +190,12 @@ public ModuleDirective parseModuleDirective(String moduleDirective) { public TypeParameter parseTypeParameter(String typeParameter) { return handleResult(getParser().parseTypeParameter(typeParameter)); } - + public MethodDeclaration parseMethodDeclaration(String methodDeclaration) { return handleResult(getParser().parseMethodDeclaration(methodDeclaration)); } + + public ArrayInitializerExpr parseArrayInitializerExpr(String arrayInitializerExpr) { + return handleResult(getParser().parseArrayInitializerExpr(arrayInitializerExpr)); + } } diff --git a/javaparser-core/src/main/java/com/github/javaparser/JavaToken.java b/javaparser-core/src/main/java/com/github/javaparser/JavaToken.java index d9d7116a6c..3a586b2448 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/JavaToken.java +++ b/javaparser-core/src/main/java/com/github/javaparser/JavaToken.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/JavadocParser.java b/javaparser-core/src/main/java/com/github/javaparser/JavadocParser.java index e490902562..840c1c7cca 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/JavadocParser.java +++ b/javaparser-core/src/main/java/com/github/javaparser/JavadocParser.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/LineEndingProcessingProvider.java b/javaparser-core/src/main/java/com/github/javaparser/LineEndingProcessingProvider.java index 29bff0b136..d7cadeee7c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/LineEndingProcessingProvider.java +++ b/javaparser-core/src/main/java/com/github/javaparser/LineEndingProcessingProvider.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ParseProblemException.java b/javaparser-core/src/main/java/com/github/javaparser/ParseProblemException.java index 4e6128471d..dae1b1b679 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ParseProblemException.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ParseProblemException.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ParseResult.java b/javaparser-core/src/main/java/com/github/javaparser/ParseResult.java index 133649476d..406621bcf9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ParseResult.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ParseResult.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ParseStart.java b/javaparser-core/src/main/java/com/github/javaparser/ParseStart.java index e9a92fef0f..5dc48275f3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ParseStart.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ParseStart.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -91,5 +91,7 @@ public interface ParseStart { ParseStart METHOD_DECLARATION = GeneratedJavaParser::MethodDeclarationParseStart; + ParseStart ARRAY_INITIALIZER_EXPR = GeneratedJavaParser::ArrayInitializer; + R parse(GeneratedJavaParser parser) throws ParseException; } diff --git a/javaparser-core/src/main/java/com/github/javaparser/ParserConfiguration.java b/javaparser-core/src/main/java/com/github/javaparser/ParserConfiguration.java index a24b1ebaca..c577e8833e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ParserConfiguration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ParserConfiguration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -203,7 +203,11 @@ public enum LanguageLevel { * Java 17 -- including incubator/preview/second preview features. * Note that preview features, unless otherwise specified, follow the grammar and behaviour of the latest released JEP for that feature. */ - JAVA_17_PREVIEW(new Java17PreviewValidator(), new Java17PostProcessor()); + JAVA_17_PREVIEW(new Java17PreviewValidator(), new Java17PostProcessor()), + /** + * Java 18 + */ + JAVA_18(new Java18Validator(), new Java18PostProcessor()); /** * Does no post processing or validation. Only for people wanting the fastest parsing. @@ -229,7 +233,7 @@ public enum LanguageLevel { final PostProcessors postProcessor; - private static final LanguageLevel[] yieldSupport = new LanguageLevel[]{JAVA_13, JAVA_13_PREVIEW, JAVA_14, JAVA_14_PREVIEW, JAVA_15, JAVA_15_PREVIEW, JAVA_16, JAVA_16_PREVIEW, JAVA_17, JAVA_17_PREVIEW}; + private static final LanguageLevel[] yieldSupport = new LanguageLevel[] { JAVA_13, JAVA_13_PREVIEW, JAVA_14, JAVA_14_PREVIEW, JAVA_15, JAVA_15_PREVIEW, JAVA_16, JAVA_16_PREVIEW, JAVA_17, JAVA_17_PREVIEW, JAVA_18 }; LanguageLevel(Validator validator, PostProcessors postProcessor) { this.validator = validator; diff --git a/javaparser-core/src/main/java/com/github/javaparser/Position.java b/javaparser-core/src/main/java/com/github/javaparser/Position.java index 6a4ca60503..c0a7ac9059 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/Position.java +++ b/javaparser-core/src/main/java/com/github/javaparser/Position.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/Problem.java b/javaparser-core/src/main/java/com/github/javaparser/Problem.java index 52dd807acb..5b39e0cc29 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/Problem.java +++ b/javaparser-core/src/main/java/com/github/javaparser/Problem.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/Processor.java b/javaparser-core/src/main/java/com/github/javaparser/Processor.java index d66f18b12a..14e038e895 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/Processor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/Processor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/Providers.java b/javaparser-core/src/main/java/com/github/javaparser/Providers.java index cb73d5d1db..7ae68c103c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/Providers.java +++ b/javaparser-core/src/main/java/com/github/javaparser/Providers.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/Range.java b/javaparser-core/src/main/java/com/github/javaparser/Range.java index 803f8940df..8d1793bf76 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/Range.java +++ b/javaparser-core/src/main/java/com/github/javaparser/Range.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/StaticJavaParser.java b/javaparser-core/src/main/java/com/github/javaparser/StaticJavaParser.java index aa6ff222f1..a18b9b236f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/StaticJavaParser.java +++ b/javaparser-core/src/main/java/com/github/javaparser/StaticJavaParser.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -516,6 +516,19 @@ public static MethodDeclaration parseMethodDeclaration(@NotNull String methodDec return newParserAdapted().parseMethodDeclaration(methodDeclaration); } + /** + * Parses an array initializer expression and returns it as ArrayInitializerExpr. + * + * @param arrayInitializerExpr an array initializer like "{1,2,3}" + * @return the AST for the array initializer expression + * @throws ParseProblemException if the source code has parser errors + * @see ArrayInitializerExpr + */ + public static ArrayInitializerExpr parseArrayInitializerExpr(@NotNull String arrayInitializerExpr) { + Preconditions.checkNotNull(arrayInitializerExpr, "Parameter arrayInitializerExpr can't be null."); + return newParserAdapted().parseArrayInitializerExpr(arrayInitializerExpr); + } + // Private methods private static JavaParser newParser() { return new JavaParser(getParserConfiguration()); diff --git a/javaparser-core/src/main/java/com/github/javaparser/TokenRange.java b/javaparser-core/src/main/java/com/github/javaparser/TokenRange.java index 77c10f3e6d..0ad0febbd2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/TokenRange.java +++ b/javaparser-core/src/main/java/com/github/javaparser/TokenRange.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/TokenTypes.java b/javaparser-core/src/main/java/com/github/javaparser/TokenTypes.java index 66d5740608..600b04a6bd 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/TokenTypes.java +++ b/javaparser-core/src/main/java/com/github/javaparser/TokenTypes.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/UnicodeEscapeProcessingProvider.java b/javaparser-core/src/main/java/com/github/javaparser/UnicodeEscapeProcessingProvider.java index 5c4cfa35f0..b2bae8ed8d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/UnicodeEscapeProcessingProvider.java +++ b/javaparser-core/src/main/java/com/github/javaparser/UnicodeEscapeProcessingProvider.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -120,19 +120,21 @@ public void close() throws IOException { */ private int nextOutputChar() throws IOException { int next = nextInputChar(); - switch (next) { + switch(next) { case EOF: return EOF; - case BACKSLASH: { - if (_backslashSeen) { - return clearBackSlashSeen(next); - } + case BACKSLASH: + { + if (_backslashSeen) { + return clearBackSlashSeen(next); + } return backSlashSeen(); } - default: { - // An arbitrary character. - return clearBackSlashSeen(next); - } + default: + { + // An arbitrary character. + return clearBackSlashSeen(next); + } } } @@ -144,17 +146,19 @@ private int clearBackSlashSeen(int next) { private int backSlashSeen() throws IOException { _backslashSeen = true; int next = nextInputChar(); - switch (next) { + switch(next) { case EOF: // End of file after backslash produces the backslash itself. return BACKSLASH; - case 'u': { - return unicodeStartSeen(); - } - default: { - pushBack(next); - return BACKSLASH; - } + case 'u': + { + return unicodeStartSeen(); + } + default: + { + pushBack(next); + return BACKSLASH; + } } } @@ -162,18 +166,21 @@ private int unicodeStartSeen() throws IOException { int uCnt = 1; while (true) { int next = nextInputChar(); - switch (next) { - case EOF: { - pushBackUs(uCnt); - return BACKSLASH; - } - case 'u': { - uCnt++; - continue; - } - default: { - return readDigits(uCnt, next); - } + switch(next) { + case EOF: + { + pushBackUs(uCnt); + return BACKSLASH; + } + case 'u': + { + uCnt++; + continue; + } + default: + { + return readDigits(uCnt, next); + } } } } @@ -341,9 +348,9 @@ public PositionUpdate lookup(Position position) { } int insertIndex = -result - 1; if (insertIndex == 0) { - // Before the first delta info, identity mapping. - return PositionUpdate.NONE; - } + // Before the first delta info, identity mapping. + return PositionUpdate.NONE; + } return _deltas.get(insertIndex - 1); } @@ -547,28 +554,32 @@ public Position getPosition() { * Analyzes the given character for line feed. */ public int process(int ch) { - switch (ch) { - case EOF: { - break; - } - case CR: { - incLine(); - _crSeen = true; - break; - } - case LF: { - // CR LF does only count as a single line terminator. - if (_crSeen) { - _crSeen = false; - } else { + switch(ch) { + case EOF: + { + break; + } + case CR: + { incLine(); + _crSeen = true; + break; + } + case LF: + { + // CR LF does only count as a single line terminator. + if (_crSeen) { + _crSeen = false; + } else { + incLine(); + } + break; + } + default: + { + _crSeen = false; + _column++; } - break; - } - default: { - _crSeen = false; - _column++; - } } return ch; } diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/AccessSpecifier.java b/javaparser-core/src/main/java/com/github/javaparser/ast/AccessSpecifier.java index d50cfbec21..f1a8521be0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/AccessSpecifier.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/AccessSpecifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/AllFieldsConstructor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/AllFieldsConstructor.java index 50bd4bc507..16da0a72b4 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/AllFieldsConstructor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/AllFieldsConstructor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/ArrayCreationLevel.java b/javaparser-core/src/main/java/com/github/javaparser/ast/ArrayCreationLevel.java index 76f8d4fdf2..b091eccd35 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/ArrayCreationLevel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/ArrayCreationLevel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/CompilationUnit.java b/javaparser-core/src/main/java/com/github/javaparser/ast/CompilationUnit.java index f02a8e90d1..fd22061acd 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/CompilationUnit.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/CompilationUnit.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -751,7 +751,7 @@ public Charset getEncoding() { */ public Path getSourceRoot() { final Optional pkgAsString = compilationUnit.getPackageDeclaration().map(NodeWithName::getNameAsString); - return pkgAsString.map(p -> Paths.get(CodeGenerationUtils.packageToPath(p))).map(pkg -> subtractPaths(getDirectory(), pkg)).orElse(getDirectory()); + return pkgAsString.map(p -> Paths.get(CodeGenerationUtils.packageToPath(p))).map(pkg -> subtractPaths(getDirectory(), pkg)).orElseGet(() -> getDirectory()); } public String getFileName() { diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/DataKey.java b/javaparser-core/src/main/java/com/github/javaparser/ast/DataKey.java index 7f900eae4d..9815b26e37 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/DataKey.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/DataKey.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/Generated.java b/javaparser-core/src/main/java/com/github/javaparser/ast/Generated.java index 5b3f5bf474..ae0b1b16f0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/Generated.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/Generated.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/ImportDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/ImportDeclaration.java index 1c929876f3..c6eaa231a6 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/ImportDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/ImportDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/Modifier.java b/javaparser-core/src/main/java/com/github/javaparser/ast/Modifier.java index 727cd885ee..c381426018 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/Modifier.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/Modifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/Node.java b/javaparser-core/src/main/java/com/github/javaparser/ast/Node.java index f6edf5b5ac..62cf54ba94 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/Node.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/Node.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -197,14 +197,14 @@ protected void customInitialization() { * else create a new DefaultPrettyPrinter with default parameters */ protected Printer getPrinter() { - return findCompilationUnit().map(c -> c.getPrinter()).orElse(createDefaultPrinter()); + return findCompilationUnit().map(c -> c.getPrinter()).orElseGet(() -> createDefaultPrinter()); } /* * Return the printer initialized with the specified configuration */ protected Printer getPrinter(PrinterConfiguration configuration) { - return findCompilationUnit().map(c -> c.getPrinter(configuration)).orElse(createDefaultPrinter(configuration)); + return findCompilationUnit().map(c -> c.getPrinter(configuration)).orElseGet(() -> createDefaultPrinter(configuration)); } protected Printer createDefaultPrinter() { diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/NodeList.java b/javaparser-core/src/main/java/com/github/javaparser/ast/NodeList.java index b8e93805aa..01f5b4fe36 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/NodeList.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/NodeList.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/PackageDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/PackageDeclaration.java index 943fde1550..4c257cfc0d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/PackageDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/PackageDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/AnnotationDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/AnnotationDeclaration.java index da53a4815b..c8bc45b19b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/AnnotationDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/AnnotationDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/AnnotationMemberDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/AnnotationMemberDeclaration.java index 9803815265..b8f76a3979 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/AnnotationMemberDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/AnnotationMemberDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/BodyDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/BodyDeclaration.java index cc36be4f82..fc836e460f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/BodyDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/BodyDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/CallableDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/CallableDeclaration.java index 8f9dd0d907..a2ccd9804c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/CallableDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/CallableDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/ClassOrInterfaceDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/ClassOrInterfaceDeclaration.java index c9a0fd6465..82c648136c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/ClassOrInterfaceDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/ClassOrInterfaceDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/CompactConstructorDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/CompactConstructorDeclaration.java index 745bf241ed..b86f7579bf 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/CompactConstructorDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/CompactConstructorDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/ConstructorDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/ConstructorDeclaration.java index d1139e2a6c..8c813ace88 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/ConstructorDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/ConstructorDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/EnumConstantDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/EnumConstantDeclaration.java index bcfc81cda7..fb9cca9896 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/EnumConstantDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/EnumConstantDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/EnumDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/EnumDeclaration.java index aedd80f435..0afa97eca0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/EnumDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/EnumDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/FieldDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/FieldDeclaration.java index 0e23c27686..63b9140610 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/FieldDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/FieldDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/InitializerDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/InitializerDeclaration.java index e0f9d8fd31..d5cf2a2469 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/InitializerDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/InitializerDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/MethodDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/MethodDeclaration.java index 7deae7317c..2e0962fb41 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/MethodDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/MethodDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/Parameter.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/Parameter.java index 9aaace66d9..3d05a4afaa 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/Parameter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/Parameter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/ReceiverParameter.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/ReceiverParameter.java index 5260fb0ad8..b770ab60da 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/ReceiverParameter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/ReceiverParameter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/RecordDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/RecordDeclaration.java index 8725b1b106..e3ae161686 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/RecordDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/RecordDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/TypeDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/TypeDeclaration.java index fb237e4675..96d64e0d4f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/TypeDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/TypeDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -202,7 +202,7 @@ public List> getCallablesWithSignature(CallableDeclaratio */ public Optional getFullyQualifiedName() { if (isTopLevelType()) { - return findCompilationUnit().map(cu -> cu.getPackageDeclaration().map(pd -> pd.getNameAsString()).map(pkg -> pkg + "." + getNameAsString()).orElse(getNameAsString())); + return findCompilationUnit().map(cu -> cu.getPackageDeclaration().map(pd -> pd.getNameAsString()).map(pkg -> pkg + "." + getNameAsString()).orElseGet(() -> getNameAsString())); } return findAncestor(TypeDeclaration.class).map(td -> (TypeDeclaration) td).flatMap(td -> td.getFullyQualifiedName().map(fqn -> fqn + "." + getNameAsString())); } diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/body/VariableDeclarator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/body/VariableDeclarator.java index fb130dcba6..67471b7b54 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/body/VariableDeclarator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/body/VariableDeclarator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/BlockComment.java b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/BlockComment.java index b5b7b2e1f4..b8eafb19d4 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/BlockComment.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/BlockComment.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -36,7 +36,7 @@ *

* AST node that represent block comments. *

- * Block comments can has multi lines and are delimited by "/*" and + * Block comments can have multi lines and are delimited by "/*" and * "*/". * * @author Julio Vilmar Gesser diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/Comment.java b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/Comment.java index 3952f52a6a..3267c0775c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/Comment.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/Comment.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/CommentsCollection.java b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/CommentsCollection.java index 7298f08827..f7b800c436 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/CommentsCollection.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/CommentsCollection.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/JavadocComment.java b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/JavadocComment.java index 0a53ab8f2e..b132643074 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/JavadocComment.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/JavadocComment.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/LineComment.java b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/LineComment.java index e4bfafd205..fd039dfb1e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/LineComment.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/LineComment.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/AnnotationExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/AnnotationExpr.java index 4f82b4890b..81ec13b648 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/AnnotationExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/AnnotationExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayAccessExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayAccessExpr.java index 0ad6d81442..85e0049462 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayAccessExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayAccessExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayCreationExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayCreationExpr.java index eac2acbc74..77ff9c4be4 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayCreationExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayCreationExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayInitializerExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayInitializerExpr.java index 0de5e2c8c5..e6b430161f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayInitializerExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ArrayInitializerExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/AssignExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/AssignExpr.java index 71e49aac5c..c1d1b10e9f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/AssignExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/AssignExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/BinaryExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/BinaryExpr.java index b2767f661b..cbc53d9407 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/BinaryExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/BinaryExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/BooleanLiteralExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/BooleanLiteralExpr.java index 92b82d71f1..eb7282d056 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/BooleanLiteralExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/BooleanLiteralExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/CastExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/CastExpr.java index 869661a3db..2c43f391ae 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/CastExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/CastExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/CharLiteralExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/CharLiteralExpr.java index f8154511f0..72044a2ca4 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/CharLiteralExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/CharLiteralExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ClassExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ClassExpr.java index b0ef0605ae..7ea798a381 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ClassExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ClassExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ConditionalExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ConditionalExpr.java index 99047b67cf..427480d477 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ConditionalExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ConditionalExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/DoubleLiteralExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/DoubleLiteralExpr.java index d7b1d75624..69f9312afb 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/DoubleLiteralExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/DoubleLiteralExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/EnclosedExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/EnclosedExpr.java index ca48392762..4d32859526 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/EnclosedExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/EnclosedExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/Expression.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/Expression.java index 20146d1d51..41f3d8c853 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/Expression.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/Expression.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/FieldAccessExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/FieldAccessExpr.java index b766450cd5..e3e14ab49e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/FieldAccessExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/FieldAccessExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/InstanceOfExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/InstanceOfExpr.java index 1e8ce1e4cb..612bf5105b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/InstanceOfExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/InstanceOfExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/IntegerLiteralExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/IntegerLiteralExpr.java index d775381799..6dc6e147e5 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/IntegerLiteralExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/IntegerLiteralExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LambdaExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LambdaExpr.java index 52eaec5cdf..5cef6df01d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LambdaExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LambdaExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LiteralExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LiteralExpr.java index 40d0b1d62f..322367069c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LiteralExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LiteralExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LiteralStringValueExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LiteralStringValueExpr.java index d6356baf01..5499aeb2ee 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LiteralStringValueExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LiteralStringValueExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LongLiteralExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LongLiteralExpr.java index 61353c2fbd..5f6ae32ced 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LongLiteralExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/LongLiteralExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MarkerAnnotationExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MarkerAnnotationExpr.java index 54f4149b8f..4fa90aa01c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MarkerAnnotationExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MarkerAnnotationExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MemberValuePair.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MemberValuePair.java index fe9556f171..ceb3863e55 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MemberValuePair.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MemberValuePair.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MethodCallExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MethodCallExpr.java index 1a222911a3..a65401675e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MethodCallExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MethodCallExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MethodReferenceExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MethodReferenceExpr.java index a9ca3ff4ce..44ee7b1d0d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MethodReferenceExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/MethodReferenceExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/Name.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/Name.java index 760b0795f5..8e8bbd58eb 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/Name.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/Name.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NameExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NameExpr.java index 814f013e59..45da04afb7 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NameExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NameExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NormalAnnotationExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NormalAnnotationExpr.java index 8ad8f41a54..9efeb610bb 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NormalAnnotationExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NormalAnnotationExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NullLiteralExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NullLiteralExpr.java index 6992a983e5..734c1bf963 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NullLiteralExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/NullLiteralExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ObjectCreationExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ObjectCreationExpr.java index 0bc8184936..b604d8e3c7 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ObjectCreationExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ObjectCreationExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/PatternExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/PatternExpr.java index 8ce4574381..7977796270 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/PatternExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/PatternExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SimpleName.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SimpleName.java index f6916cd803..d05ec3b0ca 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SimpleName.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SimpleName.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SingleMemberAnnotationExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SingleMemberAnnotationExpr.java index 1dc06bf2f9..aadcae9efc 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SingleMemberAnnotationExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SingleMemberAnnotationExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/StringLiteralExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/StringLiteralExpr.java index e8e2afa461..6ed57c29fb 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/StringLiteralExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/StringLiteralExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SuperExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SuperExpr.java index 66149b18e0..865811ba14 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SuperExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SuperExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SwitchExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SwitchExpr.java index 1aa57b9e65..bf659c6cfc 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SwitchExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/SwitchExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/TextBlockLiteralExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/TextBlockLiteralExpr.java index d6c03d9a25..d07875b307 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/TextBlockLiteralExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/TextBlockLiteralExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ThisExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ThisExpr.java index 2492757435..91194b6cae 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ThisExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ThisExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/TypeExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/TypeExpr.java index 729745c782..a5fdcecd65 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/TypeExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/TypeExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/UnaryExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/UnaryExpr.java index a599a84c70..d0560d0460 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/UnaryExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/UnaryExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/VariableDeclarationExpr.java b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/VariableDeclarationExpr.java index ba7ec8ccf2..e64967cf7f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/expr/VariableDeclarationExpr.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/expr/VariableDeclarationExpr.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleDeclaration.java index 8ded7b3601..693214a565 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleDirective.java b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleDirective.java index a97843e36b..00dedbd45e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleDirective.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleDirective.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleExportsDirective.java b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleExportsDirective.java index 7c0592cc52..0425c21bbd 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleExportsDirective.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleExportsDirective.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleOpensDirective.java b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleOpensDirective.java index 0877e6b898..d5243ce4fc 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleOpensDirective.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleOpensDirective.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleProvidesDirective.java b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleProvidesDirective.java index 910de7c5e3..d003ce94c6 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleProvidesDirective.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleProvidesDirective.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleRequiresDirective.java b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleRequiresDirective.java index d7c67016a4..ed62612b1e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleRequiresDirective.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleRequiresDirective.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleUsesDirective.java b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleUsesDirective.java index 5beee7f05a..5a8fffdfa5 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleUsesDirective.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ModuleUsesDirective.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithAnnotations.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithAnnotations.java index 808971f434..54c06cbae0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithAnnotations.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithAnnotations.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithArguments.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithArguments.java index 1b55b19a81..e5c6b9c3ec 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithArguments.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithArguments.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithBlockStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithBlockStmt.java index 2fe874b7e5..09e38420f5 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithBlockStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithBlockStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithBody.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithBody.java index ae46694a54..35e0674e84 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithBody.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithBody.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithCondition.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithCondition.java index 6e27932a21..0eca375e85 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithCondition.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithCondition.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithDeclaration.java index 73f678ca70..c6371f01d0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -40,7 +40,7 @@ default String getDeclarationAsString() { /** * As {@link NodeWithDeclaration#getDeclarationAsString(boolean, boolean, boolean)} including - * the parameters with both type and name. + * the parameters with both type and name. The method declaration is returned without comment. * * @param includingModifiers flag to include the modifiers (if present) in the string produced * @param includingThrows flag to include the throws clause (if present) in the string produced diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithExpression.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithExpression.java index db060465e6..d5abe0bbc2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithExpression.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithExpression.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithExtends.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithExtends.java index a14440cd46..6419df32f3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithExtends.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithExtends.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithIdentifier.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithIdentifier.java index b78736d770..f04e48c194 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithIdentifier.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithIdentifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithImplements.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithImplements.java index 41b6d2081f..4ad9325e85 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithImplements.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithImplements.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithJavadoc.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithJavadoc.java index 7e1ee77614..97ae18ea6b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithJavadoc.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithJavadoc.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithMembers.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithMembers.java index 7212b5b0fa..5dbaf2125b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithMembers.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithMembers.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithModifiers.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithModifiers.java index 69ef75b733..f586d6152e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithModifiers.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithModifiers.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithName.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithName.java index e9b917e5b6..bd00824d1f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithName.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithName.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalBlockStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalBlockStmt.java index d5818f8ddb..dfc475534c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalBlockStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalBlockStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalLabel.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalLabel.java index 892df5b31d..b9ae58784c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalLabel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalLabel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalScope.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalScope.java index cce0f11274..9fdbe27ab9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalScope.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithOptionalScope.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithParameters.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithParameters.java index dccb5e2449..c0a79e7497 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithParameters.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithParameters.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -24,9 +24,11 @@ import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.body.Parameter; import com.github.javaparser.ast.type.Type; + import java.util.Arrays; import java.util.Optional; import java.util.stream.Stream; + import static com.github.javaparser.StaticJavaParser.parseType; import static java.util.stream.Collectors.toList; @@ -160,8 +162,8 @@ default boolean hasParametersOfType(String... paramTypes) { * @return {@code true} if all parameters match one by one, in the given order. */ default boolean hasParametersOfType(Class... paramTypes) { - return // if p.getType() is a class or interface type, we want to consider its erasure, i.e., if the parameter - // is "List", we want to consider it as "List", so we need to call getName() - getParameters().stream().map(p -> p.getType().toClassOrInterfaceType().map(NodeWithSimpleName::getNameAsString).orElse(p.getType().asString())).collect(toList()).equals(Stream.of(paramTypes).map(Class::getSimpleName).collect(toList())); + return getParameters().stream().// if p.getType() is a class or interface type, we want to consider its erasure, i.e., if the parameter + // is "List", we want to consider it as "List", so we need to call getName() + map(p -> p.getType().toClassOrInterfaceType().map(NodeWithSimpleName::getNameAsString).orElseGet(() -> p.getType().asString())).collect(toList()).equals(Stream.of(paramTypes).map(Class::getSimpleName).collect(toList())); } } diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithRange.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithRange.java index b05a299da0..54cc1f6efd 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithRange.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithRange.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithScope.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithScope.java index 689f6ba305..539fca62a1 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithScope.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithScope.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithSimpleName.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithSimpleName.java index 7a0e1fbf74..9d50895926 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithSimpleName.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithSimpleName.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithStatements.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithStatements.java index 3ed0e10598..7972c8eb3c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithStatements.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithStatements.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithThrownExceptions.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithThrownExceptions.java index 68b1945088..ea49d4410e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithThrownExceptions.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithThrownExceptions.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTokenRange.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTokenRange.java index e85c3aaae9..55c8308e32 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTokenRange.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTokenRange.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTraversableScope.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTraversableScope.java index f0920f0154..341d16060a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTraversableScope.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTraversableScope.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithType.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithType.java index 45ffea7a05..5f658b689f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTypeArguments.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTypeArguments.java index b51a166f68..3cbb46363d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTypeArguments.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTypeArguments.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTypeParameters.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTypeParameters.java index d72acd7d27..23cee50c85 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTypeParameters.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithTypeParameters.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithVariables.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithVariables.java index 8d6de0c948..63f5c22ebd 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithVariables.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/NodeWithVariables.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/SwitchNode.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/SwitchNode.java index a75681c360..9c0010f7ee 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/SwitchNode.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/SwitchNode.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithAbstractModifier.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithAbstractModifier.java index 152ca0bd32..8dd78b5cb1 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithAbstractModifier.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithAbstractModifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithAccessModifiers.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithAccessModifiers.java index 8eddd05cfd..53e7c0abb9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithAccessModifiers.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithAccessModifiers.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithFinalModifier.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithFinalModifier.java index c1285908a1..a3584e0239 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithFinalModifier.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithFinalModifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithPrivateModifier.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithPrivateModifier.java index 5716483234..1f8eee9de3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithPrivateModifier.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithPrivateModifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithProtectedModifier.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithProtectedModifier.java index 9f665c53f3..7557ae7f21 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithProtectedModifier.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithProtectedModifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithPublicModifier.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithPublicModifier.java index 47eb624c08..882bcee50a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithPublicModifier.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithPublicModifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithStaticModifier.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithStaticModifier.java index 6d081d2e87..40e2729e27 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithStaticModifier.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithStaticModifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithStrictfpModifier.java b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithStrictfpModifier.java index bd2d631760..db3e56beb6 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithStrictfpModifier.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/modifiers/NodeWithStrictfpModifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/observer/AstObserver.java b/javaparser-core/src/main/java/com/github/javaparser/ast/observer/AstObserver.java index d1e7ba4f96..04854dc5a6 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/observer/AstObserver.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/observer/AstObserver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/observer/AstObserverAdapter.java b/javaparser-core/src/main/java/com/github/javaparser/ast/observer/AstObserverAdapter.java index 14da6f675b..b2911fe5af 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/observer/AstObserverAdapter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/observer/AstObserverAdapter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/observer/Observable.java b/javaparser-core/src/main/java/com/github/javaparser/ast/observer/Observable.java index efdde03e7d..a1829fa31c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/observer/Observable.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/observer/Observable.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/observer/ObservableProperty.java b/javaparser-core/src/main/java/com/github/javaparser/ast/observer/ObservableProperty.java index fcb11ec38a..2aad25a4b0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/observer/ObservableProperty.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/observer/ObservableProperty.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/observer/PropagatingAstObserver.java b/javaparser-core/src/main/java/com/github/javaparser/ast/observer/PropagatingAstObserver.java index 8268078b12..19e68ce990 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/observer/PropagatingAstObserver.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/observer/PropagatingAstObserver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/AssertStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/AssertStmt.java index c11970fd11..40697838b3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/AssertStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/AssertStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/BlockStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/BlockStmt.java index 109ac9fbbe..428a479faa 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/BlockStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/BlockStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/BreakStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/BreakStmt.java index c3651d3082..f566dbdbe8 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/BreakStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/BreakStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/CatchClause.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/CatchClause.java index 9d4e7847dc..008dba23f7 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/CatchClause.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/CatchClause.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ContinueStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ContinueStmt.java index 231148cc4b..6fa7469a82 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ContinueStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ContinueStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/DoStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/DoStmt.java index 86365d2b84..b9d79d675c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/DoStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/DoStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/EmptyStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/EmptyStmt.java index 97b0b19f8d..69dcaf706e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/EmptyStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/EmptyStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ExplicitConstructorInvocationStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ExplicitConstructorInvocationStmt.java index a4d2138e90..9d8d3d9415 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ExplicitConstructorInvocationStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ExplicitConstructorInvocationStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ExpressionStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ExpressionStmt.java index 63703765e1..fd2d360154 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ExpressionStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ExpressionStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ForEachStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ForEachStmt.java index 33cc96f419..f035bfa639 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ForEachStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ForEachStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ForStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ForStmt.java index d9f8751300..1ded042439 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ForStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ForStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/IfStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/IfStmt.java index 977533ae74..bd18c903dc 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/IfStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/IfStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LabeledStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LabeledStmt.java index 4016e3dabe..8d01c23f46 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LabeledStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LabeledStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LocalClassDeclarationStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LocalClassDeclarationStmt.java index 852b7ad93a..b0663878e5 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LocalClassDeclarationStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LocalClassDeclarationStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LocalRecordDeclarationStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LocalRecordDeclarationStmt.java index ffed6d4627..c135c0c58d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LocalRecordDeclarationStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/LocalRecordDeclarationStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ReturnStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ReturnStmt.java index c50b692ecd..29a3cbb7a9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ReturnStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ReturnStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/Statement.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/Statement.java index 4339984816..ebabcd97f6 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/Statement.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/Statement.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SwitchEntry.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SwitchEntry.java index 25267e5510..5d689f2c41 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SwitchEntry.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SwitchEntry.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SwitchStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SwitchStmt.java index 6c03679540..e98d7b32d0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SwitchStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SwitchStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SynchronizedStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SynchronizedStmt.java index 4c7749f1b7..6c4d7a560c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SynchronizedStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/SynchronizedStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ThrowStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ThrowStmt.java index 47071077be..42e702617f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ThrowStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/ThrowStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/TryStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/TryStmt.java index 0215f0d053..e5e0454ab4 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/TryStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/TryStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/UnparsableStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/UnparsableStmt.java index 32c4f1ff00..155d4ed094 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/UnparsableStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/UnparsableStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/WhileStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/WhileStmt.java index 91bad90e04..fc1345b1cb 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/WhileStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/WhileStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/YieldStmt.java b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/YieldStmt.java index 0dd56ae044..8c28a85c4d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/YieldStmt.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/YieldStmt.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/ArrayType.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/ArrayType.java index 50ab7f96ff..3be57fd2ce 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/ArrayType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/ArrayType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/ClassOrInterfaceType.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/ClassOrInterfaceType.java index e6b8ce7d73..4ca61fb6a3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/ClassOrInterfaceType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/ClassOrInterfaceType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/ConvertibleToUsage.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/ConvertibleToUsage.java index dc7c172bc7..c2ae8e173f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/ConvertibleToUsage.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/ConvertibleToUsage.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/IntersectionType.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/IntersectionType.java index ec0c671c53..abe72e9f26 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/IntersectionType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/IntersectionType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/PrimitiveType.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/PrimitiveType.java index 6285fa2b9e..f7b0505187 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/PrimitiveType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/PrimitiveType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/ReferenceType.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/ReferenceType.java index b20404e6e8..b3626937a1 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/ReferenceType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/ReferenceType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/Type.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/Type.java index 283306a876..5e59121540 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/Type.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/Type.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/TypeParameter.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/TypeParameter.java index f8e04fe203..ddf1c9ff9b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/TypeParameter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/TypeParameter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/UnionType.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/UnionType.java index 76c42486ed..271c5f7330 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/UnionType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/UnionType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/UnknownType.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/UnknownType.java index aca23c0a74..6206be0b88 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/UnknownType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/UnknownType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/VarType.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/VarType.java index b744c9b6b5..a0c7ce7aff 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/VarType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/VarType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/VoidType.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/VoidType.java index dfbad5268a..f2697225c1 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/VoidType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/VoidType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/type/WildcardType.java b/javaparser-core/src/main/java/com/github/javaparser/ast/type/WildcardType.java index 012b162d41..19eefbbf71 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/type/WildcardType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/type/WildcardType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/ProblemReporter.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/ProblemReporter.java index 9f64097c3f..095e968ed7 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/ProblemReporter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/ProblemReporter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/ReservedKeywordValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/ReservedKeywordValidator.java index 6b5cfda71f..2d353e8748 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/ReservedKeywordValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/ReservedKeywordValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/SimpleValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/SimpleValidator.java index f709d3ea14..e1e1cdc050 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/SimpleValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/SimpleValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/SingleNodeTypeValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/SingleNodeTypeValidator.java index 7eac0b7b29..0899405fc9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/SingleNodeTypeValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/SingleNodeTypeValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/TreeVisitorValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/TreeVisitorValidator.java index fdcdf5772e..de0ccb23e1 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/TreeVisitorValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/TreeVisitorValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/TypedValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/TypedValidator.java index 2075c151c9..14277bd1ff 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/TypedValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/TypedValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/Validator.java index b344244707..c89f0cc5a2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/Validators.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/Validators.java index 51bf764828..eb549deff3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/Validators.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/Validators.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/VisitorValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/VisitorValidator.java index 696c31bc0f..8fda18730b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/VisitorValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/VisitorValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java10PreviewValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java10PreviewValidator.java index 4b834867d1..994f52afa9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java10PreviewValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java10PreviewValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java10Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java10Validator.java index 62e930e8c2..ae3172cc09 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java10Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java10Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java11PreviewValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java11PreviewValidator.java index 9a56897b3a..f90db8f23e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java11PreviewValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java11PreviewValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java11Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java11Validator.java index f4d6355760..6b3a28ff8c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java11Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java11Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java12PreviewValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java12PreviewValidator.java index 2a7bd38a24..7aafcc21ad 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java12PreviewValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java12PreviewValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java12Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java12Validator.java index f29201ba22..9977a1a29b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java12Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java12Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java13PreviewValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java13PreviewValidator.java index 0ff99fbf46..0ac210cc78 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java13PreviewValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java13PreviewValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java13Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java13Validator.java index d4193eca2b..a8794963b4 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java13Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java13Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java14PreviewValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java14PreviewValidator.java index a77d8c0df9..3d0fe7bf08 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java14PreviewValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java14PreviewValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java14Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java14Validator.java index 83da10c42d..7b712b4669 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java14Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java14Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java15PreviewValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java15PreviewValidator.java index a62a86be32..802ab379c3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java15PreviewValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java15PreviewValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java15Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java15Validator.java index 3fccc35b6f..b2b608b5f3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java15Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java15Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java16PreviewValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java16PreviewValidator.java index 919fa04c34..e660e4440c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java16PreviewValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java16PreviewValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java16Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java16Validator.java index 4e544d5017..4a7d854a37 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java16Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java16Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java17PreviewValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java17PreviewValidator.java index 919034e5be..898271ab6d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java17PreviewValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java17PreviewValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java17Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java17Validator.java index 151f246965..9613fc89f8 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java17Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java17Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java18Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java18Validator.java new file mode 100755 index 0000000000..cbde069938 --- /dev/null +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java18Validator.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2011, 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ +package com.github.javaparser.ast.validator.language_level_validations; + +/** + * This validator validates according to Java 18 syntax rules. + * + * @see https://openjdk.java.net/projects/jdk/18/ + */ +public class Java18Validator extends Java17Validator { + + public Java18Validator() { + super(); + } +} diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_0Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_0Validator.java index 0387cdebc9..4732433240 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_0Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_0Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_1Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_1Validator.java index 7ea1b92806..3e2cff1526 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_1Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_1Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_2Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_2Validator.java index fb51d2d15b..f2c7881d9b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_2Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_2Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_3Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_3Validator.java index f28e3a898e..7cf146cc7a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_3Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_3Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_4Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_4Validator.java index 5f9805a67a..c95e33b4d4 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_4Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java1_4Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java5Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java5Validator.java index a579a3ca06..a67ddebfcc 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java5Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java5Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java6Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java6Validator.java index af8b0c1514..9061338c58 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java6Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java6Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java7Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java7Validator.java index 699d0c566c..a49c40110e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java7Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java7Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java8Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java8Validator.java index 6280920352..0d72fffbe2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java8Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java8Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java9Validator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java9Validator.java index 23458140f1..cd97b9249b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java9Validator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/Java9Validator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/UpgradeJavaMessage.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/UpgradeJavaMessage.java index 2840a8ba17..c7aee72f08 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/UpgradeJavaMessage.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/UpgradeJavaMessage.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/CommonValidators.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/CommonValidators.java index f54d9e8af0..b3989f0cbd 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/CommonValidators.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/CommonValidators.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/ModifierValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/ModifierValidator.java index 037bd6f8b6..eb497bf7ee 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/ModifierValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/ModifierValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/NoBinaryIntegerLiteralsValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/NoBinaryIntegerLiteralsValidator.java index ad7a638ffe..f185385eb6 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/NoBinaryIntegerLiteralsValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/NoBinaryIntegerLiteralsValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/NoUnderscoresInIntegerLiteralsValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/NoUnderscoresInIntegerLiteralsValidator.java index 1c7c26ae7b..9479391c69 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/NoUnderscoresInIntegerLiteralsValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/NoUnderscoresInIntegerLiteralsValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/RecordDeclarationValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/RecordDeclarationValidator.java index 90d48202c4..19d6f755ab 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/RecordDeclarationValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/RecordDeclarationValidator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/UnderscoreKeywordValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/UnderscoreKeywordValidator.java index ffc25e098c..873eba395f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/UnderscoreKeywordValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/UnderscoreKeywordValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/VarValidator.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/VarValidator.java index f0b02d67c0..39e908d8d8 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/VarValidator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/language_level_validations/chunks/VarValidator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java10PostProcessor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java10PostProcessor.java index b60c9606a1..7baee89145 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java10PostProcessor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java10PostProcessor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java11PostProcessor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java11PostProcessor.java index 1038b56052..15c5c6f76e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java11PostProcessor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java11PostProcessor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java12PostProcessor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java12PostProcessor.java index 851b3e7d76..7f3e8bd521 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java12PostProcessor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java12PostProcessor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java13PostProcessor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java13PostProcessor.java index 6c8dbdbd0b..09db3a2ba2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java13PostProcessor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java13PostProcessor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java14PostProcessor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java14PostProcessor.java index b865ff78b5..b997103e29 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java14PostProcessor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java14PostProcessor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java15PostProcessor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java15PostProcessor.java index c7767fcf0c..ee4efb1eab 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java15PostProcessor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java15PostProcessor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java16PostProcessor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java16PostProcessor.java index 4a64acbdf9..3e3cab8290 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java16PostProcessor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java16PostProcessor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java17PostProcessor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java17PostProcessor.java index afd07e4d46..0b22335701 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java17PostProcessor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java17PostProcessor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java18PostProcessor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java18PostProcessor.java new file mode 100755 index 0000000000..282d8e43df --- /dev/null +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/Java18PostProcessor.java @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2011, 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ +package com.github.javaparser.ast.validator.postprocessors; + +/** + * Processes the generic AST into a Java 18 AST and validates it. + */ +public class Java18PostProcessor extends Java17PostProcessor { +} diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/PostProcessors.java b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/PostProcessors.java index 4315c1ad1b..d2662de779 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/PostProcessors.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/validator/postprocessors/PostProcessors.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/CloneVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/CloneVisitor.java index 5ca45fc553..3512de80b9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/CloneVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/CloneVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/EqualsVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/EqualsVisitor.java index 6f3b29fe00..78c3d3fee0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/EqualsVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/EqualsVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericListVisitorAdapter.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericListVisitorAdapter.java index f1342ae283..703c36e952 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericListVisitorAdapter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericListVisitorAdapter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -52,6 +52,7 @@ */ public abstract class GenericListVisitorAdapter implements GenericVisitor, A> { + @Override public List visit(final AnnotationDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -83,6 +84,7 @@ public List visit(final AnnotationDeclaration n, final A arg) { return result; } + @Override public List visit(final AnnotationMemberDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -119,6 +121,7 @@ public List visit(final AnnotationMemberDeclaration n, final A arg) { return result; } + @Override public List visit(final ArrayAccessExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -140,6 +143,7 @@ public List visit(final ArrayAccessExpr n, final A arg) { return result; } + @Override public List visit(final ArrayCreationExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -166,6 +170,7 @@ public List visit(final ArrayCreationExpr n, final A arg) { return result; } + @Override public List visit(final ArrayCreationLevel n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -187,6 +192,7 @@ public List visit(final ArrayCreationLevel n, final A arg) { return result; } + @Override public List visit(final ArrayInitializerExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -203,6 +209,7 @@ public List visit(final ArrayInitializerExpr n, final A arg) { return result; } + @Override public List visit(final ArrayType n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -224,6 +231,7 @@ public List visit(final ArrayType n, final A arg) { return result; } + @Override public List visit(final AssertStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -245,6 +253,7 @@ public List visit(final AssertStmt n, final A arg) { return result; } + @Override public List visit(final AssignExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -266,6 +275,7 @@ public List visit(final AssignExpr n, final A arg) { return result; } + @Override public List visit(final BinaryExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -287,6 +297,7 @@ public List visit(final BinaryExpr n, final A arg) { return result; } + @Override public List visit(final BlockComment n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -298,6 +309,7 @@ public List visit(final BlockComment n, final A arg) { return result; } + @Override public List visit(final BlockStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -319,6 +331,7 @@ public List visit(final BlockStmt n, final A arg) { return result; } + @Override public List visit(final BooleanLiteralExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -330,6 +343,7 @@ public List visit(final BooleanLiteralExpr n, final A arg) { return result; } + @Override public List visit(final BreakStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -346,6 +360,7 @@ public List visit(final BreakStmt n, final A arg) { return result; } + @Override public List visit(final CastExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -367,6 +382,7 @@ public List visit(final CastExpr n, final A arg) { return result; } + @Override public List visit(final CatchClause n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -388,6 +404,7 @@ public List visit(final CatchClause n, final A arg) { return result; } + @Override public List visit(final CharLiteralExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -399,6 +416,7 @@ public List visit(final CharLiteralExpr n, final A arg) { return result; } + @Override public List visit(final ClassExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -415,6 +433,7 @@ public List visit(final ClassExpr n, final A arg) { return result; } + @Override public List visit(final ClassOrInterfaceDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -466,6 +485,7 @@ public List visit(final ClassOrInterfaceDeclaration n, final A arg) { return result; } + @Override public List visit(final ClassOrInterfaceType n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -497,6 +517,7 @@ public List visit(final ClassOrInterfaceType n, final A arg) { return result; } + @Override public List visit(final CompilationUnit n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -528,6 +549,7 @@ public List visit(final CompilationUnit n, final A arg) { return result; } + @Override public List visit(final ConditionalExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -554,6 +576,7 @@ public List visit(final ConditionalExpr n, final A arg) { return result; } + @Override public List visit(final ConstructorDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -610,6 +633,7 @@ public List visit(final ConstructorDeclaration n, final A arg) { return result; } + @Override public List visit(final ContinueStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -626,6 +650,7 @@ public List visit(final ContinueStmt n, final A arg) { return result; } + @Override public List visit(final DoStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -652,6 +677,7 @@ public List visit(final DoStmt n, final A arg) { return result; } + @Override public List visit(final DoubleLiteralExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -663,6 +689,7 @@ public List visit(final DoubleLiteralExpr n, final A arg) { return result; } + @Override public List visit(final EmptyStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -674,6 +701,7 @@ public List visit(final EmptyStmt n, final A arg) { return result; } + @Override public List visit(final EnclosedExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -690,6 +718,7 @@ public List visit(final EnclosedExpr n, final A arg) { return result; } + @Override public List visit(final EnumConstantDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -721,6 +750,7 @@ public List visit(final EnumConstantDeclaration n, final A arg) { return result; } + @Override public List visit(final EnumDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -762,6 +792,7 @@ public List visit(final EnumDeclaration n, final A arg) { return result; } + @Override public List visit(final ExplicitConstructorInvocationStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -788,6 +819,7 @@ public List visit(final ExplicitConstructorInvocationStmt n, final A arg) { return result; } + @Override public List visit(final ExpressionStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -804,6 +836,7 @@ public List visit(final ExpressionStmt n, final A arg) { return result; } + @Override public List visit(final FieldAccessExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -830,6 +863,7 @@ public List visit(final FieldAccessExpr n, final A arg) { return result; } + @Override public List visit(final FieldDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -856,6 +890,7 @@ public List visit(final FieldDeclaration n, final A arg) { return result; } + @Override public List visit(final ForStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -892,6 +927,7 @@ public List visit(final ForStmt n, final A arg) { return result; } + @Override public List visit(final ForEachStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -923,6 +959,7 @@ public List visit(final ForEachStmt n, final A arg) { return result; } + @Override public List visit(final IfStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -949,6 +986,7 @@ public List visit(final IfStmt n, final A arg) { return result; } + @Override public List visit(final ImportDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -965,6 +1003,7 @@ public List visit(final ImportDeclaration n, final A arg) { return result; } + @Override public List visit(final InitializerDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -986,6 +1025,7 @@ public List visit(final InitializerDeclaration n, final A arg) { return result; } + @Override public List visit(final InstanceOfExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1012,6 +1052,7 @@ public List visit(final InstanceOfExpr n, final A arg) { return result; } + @Override public List visit(final IntegerLiteralExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1023,6 +1064,7 @@ public List visit(final IntegerLiteralExpr n, final A arg) { return result; } + @Override public List visit(final IntersectionType n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1044,6 +1086,7 @@ public List visit(final IntersectionType n, final A arg) { return result; } + @Override public List visit(final JavadocComment n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1055,6 +1098,7 @@ public List visit(final JavadocComment n, final A arg) { return result; } + @Override public List visit(final LabeledStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1076,6 +1120,7 @@ public List visit(final LabeledStmt n, final A arg) { return result; } + @Override public List visit(final LambdaExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1097,6 +1142,7 @@ public List visit(final LambdaExpr n, final A arg) { return result; } + @Override public List visit(final LineComment n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1108,6 +1154,7 @@ public List visit(final LineComment n, final A arg) { return result; } + @Override public List visit(final LocalClassDeclarationStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1124,6 +1171,7 @@ public List visit(final LocalClassDeclarationStmt n, final A arg) { return result; } + @Override public List visit(final LocalRecordDeclarationStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1140,6 +1188,7 @@ public List visit(final LocalRecordDeclarationStmt n, final A arg) { return result; } + @Override public List visit(final LongLiteralExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1151,6 +1200,7 @@ public List visit(final LongLiteralExpr n, final A arg) { return result; } + @Override public List visit(final MarkerAnnotationExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1167,6 +1217,7 @@ public List visit(final MarkerAnnotationExpr n, final A arg) { return result; } + @Override public List visit(final MemberValuePair n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1188,6 +1239,7 @@ public List visit(final MemberValuePair n, final A arg) { return result; } + @Override public List visit(final MethodCallExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1219,6 +1271,7 @@ public List visit(final MethodCallExpr n, final A arg) { return result; } + @Override public List visit(final MethodDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1280,6 +1333,7 @@ public List visit(final MethodDeclaration n, final A arg) { return result; } + @Override public List visit(final MethodReferenceExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1301,6 +1355,7 @@ public List visit(final MethodReferenceExpr n, final A arg) { return result; } + @Override public List visit(final NameExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1317,6 +1372,7 @@ public List visit(final NameExpr n, final A arg) { return result; } + @Override public List visit(final Name n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1333,6 +1389,7 @@ public List visit(final Name n, final A arg) { return result; } + @Override public List visit(final NormalAnnotationExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1354,6 +1411,7 @@ public List visit(final NormalAnnotationExpr n, final A arg) { return result; } + @Override public List visit(final NullLiteralExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1365,6 +1423,7 @@ public List visit(final NullLiteralExpr n, final A arg) { return result; } + @Override public List visit(final ObjectCreationExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1401,6 +1460,7 @@ public List visit(final ObjectCreationExpr n, final A arg) { return result; } + @Override public List visit(final PackageDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1422,6 +1482,7 @@ public List visit(final PackageDeclaration n, final A arg) { return result; } + @Override public List visit(final Parameter n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1458,6 +1519,7 @@ public List visit(final Parameter n, final A arg) { return result; } + @Override public List visit(final PrimitiveType n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1474,6 +1536,7 @@ public List visit(final PrimitiveType n, final A arg) { return result; } + @Override public List visit(final ReturnStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1490,6 +1553,7 @@ public List visit(final ReturnStmt n, final A arg) { return result; } + @Override public List visit(final SimpleName n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1501,6 +1565,7 @@ public List visit(final SimpleName n, final A arg) { return result; } + @Override public List visit(final SingleMemberAnnotationExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1522,6 +1587,7 @@ public List visit(final SingleMemberAnnotationExpr n, final A arg) { return result; } + @Override public List visit(final StringLiteralExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1533,6 +1599,7 @@ public List visit(final StringLiteralExpr n, final A arg) { return result; } + @Override public List visit(final SuperExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1549,6 +1616,7 @@ public List visit(final SuperExpr n, final A arg) { return result; } + @Override public List visit(final SwitchEntry n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1570,6 +1638,7 @@ public List visit(final SwitchEntry n, final A arg) { return result; } + @Override public List visit(final SwitchStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1591,6 +1660,7 @@ public List visit(final SwitchStmt n, final A arg) { return result; } + @Override public List visit(final SynchronizedStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1612,6 +1682,7 @@ public List visit(final SynchronizedStmt n, final A arg) { return result; } + @Override public List visit(final ThisExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1628,6 +1699,7 @@ public List visit(final ThisExpr n, final A arg) { return result; } + @Override public List visit(final ThrowStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1644,6 +1716,7 @@ public List visit(final ThrowStmt n, final A arg) { return result; } + @Override public List visit(final TryStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1675,6 +1748,7 @@ public List visit(final TryStmt n, final A arg) { return result; } + @Override public List visit(final TypeExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1691,6 +1765,7 @@ public List visit(final TypeExpr n, final A arg) { return result; } + @Override public List visit(final TypeParameter n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1717,6 +1792,7 @@ public List visit(final TypeParameter n, final A arg) { return result; } + @Override public List visit(final UnaryExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1733,6 +1809,7 @@ public List visit(final UnaryExpr n, final A arg) { return result; } + @Override public List visit(final UnionType n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1754,6 +1831,7 @@ public List visit(final UnionType n, final A arg) { return result; } + @Override public List visit(final UnknownType n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1770,6 +1848,7 @@ public List visit(final UnknownType n, final A arg) { return result; } + @Override public List visit(final VariableDeclarationExpr n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1796,6 +1875,7 @@ public List visit(final VariableDeclarationExpr n, final A arg) { return result; } + @Override public List visit(final VariableDeclarator n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1822,6 +1902,7 @@ public List visit(final VariableDeclarator n, final A arg) { return result; } + @Override public List visit(final VoidType n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1838,6 +1919,7 @@ public List visit(final VoidType n, final A arg) { return result; } + @Override public List visit(final WhileStmt n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -1864,6 +1946,7 @@ public List visit(final WhileStmt n, final A arg) { return result; } + @Override public List visit(final WildcardType n, final A arg) { List result = new ArrayList<>(); List tmp; @@ -2786,6 +2869,7 @@ public List visit(final RecordDeclaration n, final A arg) { return result; } + @Override public List visit(final CompactConstructorDeclaration n, final A arg) { List result = new ArrayList<>(); List tmp; diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitor.java index 7cb5d05304..d2ccc8abfa 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorAdapter.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorAdapter.java index 4902c11d91..2e31bbdc2d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorAdapter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorAdapter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorWithDefaults.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorWithDefaults.java index 775ef86cfe..a4f0125c00 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorWithDefaults.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorWithDefaults.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/HashCodeVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/HashCodeVisitor.java index 2603b3c9ed..c9694b024a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/HashCodeVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/HashCodeVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ModifierVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ModifierVisitor.java index db945feac5..c3c880e0f5 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ModifierVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ModifierVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/NoCommentEqualsVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/NoCommentEqualsVisitor.java index 37c5676f35..1af02c8287 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/NoCommentEqualsVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/NoCommentEqualsVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/NoCommentHashCodeVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/NoCommentHashCodeVisitor.java index 8709e0dda8..c844195435 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/NoCommentHashCodeVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/NoCommentHashCodeVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/NodeFinderVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/NodeFinderVisitor.java new file mode 100644 index 0000000000..267b99cbd5 --- /dev/null +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/NodeFinderVisitor.java @@ -0,0 +1,2619 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.ast.visitor; + +import java.util.function.BiFunction; + +import com.github.javaparser.Range; +import com.github.javaparser.ast.ArrayCreationLevel; +import com.github.javaparser.ast.CompilationUnit; +import com.github.javaparser.ast.ImportDeclaration; +import com.github.javaparser.ast.Modifier; +import com.github.javaparser.ast.Node; +import com.github.javaparser.ast.NodeList; +import com.github.javaparser.ast.PackageDeclaration; +import com.github.javaparser.ast.body.AnnotationDeclaration; +import com.github.javaparser.ast.body.AnnotationMemberDeclaration; +import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; +import com.github.javaparser.ast.body.CompactConstructorDeclaration; +import com.github.javaparser.ast.body.ConstructorDeclaration; +import com.github.javaparser.ast.body.EnumConstantDeclaration; +import com.github.javaparser.ast.body.EnumDeclaration; +import com.github.javaparser.ast.body.FieldDeclaration; +import com.github.javaparser.ast.body.InitializerDeclaration; +import com.github.javaparser.ast.body.MethodDeclaration; +import com.github.javaparser.ast.body.Parameter; +import com.github.javaparser.ast.body.ReceiverParameter; +import com.github.javaparser.ast.body.RecordDeclaration; +import com.github.javaparser.ast.body.VariableDeclarator; +import com.github.javaparser.ast.comments.BlockComment; +import com.github.javaparser.ast.comments.JavadocComment; +import com.github.javaparser.ast.comments.LineComment; +import com.github.javaparser.ast.expr.ArrayAccessExpr; +import com.github.javaparser.ast.expr.ArrayCreationExpr; +import com.github.javaparser.ast.expr.ArrayInitializerExpr; +import com.github.javaparser.ast.expr.AssignExpr; +import com.github.javaparser.ast.expr.BinaryExpr; +import com.github.javaparser.ast.expr.BooleanLiteralExpr; +import com.github.javaparser.ast.expr.CastExpr; +import com.github.javaparser.ast.expr.CharLiteralExpr; +import com.github.javaparser.ast.expr.ClassExpr; +import com.github.javaparser.ast.expr.ConditionalExpr; +import com.github.javaparser.ast.expr.DoubleLiteralExpr; +import com.github.javaparser.ast.expr.EnclosedExpr; +import com.github.javaparser.ast.expr.FieldAccessExpr; +import com.github.javaparser.ast.expr.InstanceOfExpr; +import com.github.javaparser.ast.expr.IntegerLiteralExpr; +import com.github.javaparser.ast.expr.LambdaExpr; +import com.github.javaparser.ast.expr.LongLiteralExpr; +import com.github.javaparser.ast.expr.MarkerAnnotationExpr; +import com.github.javaparser.ast.expr.MemberValuePair; +import com.github.javaparser.ast.expr.MethodCallExpr; +import com.github.javaparser.ast.expr.MethodReferenceExpr; +import com.github.javaparser.ast.expr.Name; +import com.github.javaparser.ast.expr.NameExpr; +import com.github.javaparser.ast.expr.NormalAnnotationExpr; +import com.github.javaparser.ast.expr.NullLiteralExpr; +import com.github.javaparser.ast.expr.ObjectCreationExpr; +import com.github.javaparser.ast.expr.PatternExpr; +import com.github.javaparser.ast.expr.SimpleName; +import com.github.javaparser.ast.expr.SingleMemberAnnotationExpr; +import com.github.javaparser.ast.expr.StringLiteralExpr; +import com.github.javaparser.ast.expr.SuperExpr; +import com.github.javaparser.ast.expr.SwitchExpr; +import com.github.javaparser.ast.expr.TextBlockLiteralExpr; +import com.github.javaparser.ast.expr.ThisExpr; +import com.github.javaparser.ast.expr.TypeExpr; +import com.github.javaparser.ast.expr.UnaryExpr; +import com.github.javaparser.ast.expr.VariableDeclarationExpr; +import com.github.javaparser.ast.modules.ModuleDeclaration; +import com.github.javaparser.ast.modules.ModuleExportsDirective; +import com.github.javaparser.ast.modules.ModuleOpensDirective; +import com.github.javaparser.ast.modules.ModuleProvidesDirective; +import com.github.javaparser.ast.modules.ModuleRequiresDirective; +import com.github.javaparser.ast.modules.ModuleUsesDirective; +import com.github.javaparser.ast.stmt.AssertStmt; +import com.github.javaparser.ast.stmt.BlockStmt; +import com.github.javaparser.ast.stmt.BreakStmt; +import com.github.javaparser.ast.stmt.CatchClause; +import com.github.javaparser.ast.stmt.ContinueStmt; +import com.github.javaparser.ast.stmt.DoStmt; +import com.github.javaparser.ast.stmt.EmptyStmt; +import com.github.javaparser.ast.stmt.ExplicitConstructorInvocationStmt; +import com.github.javaparser.ast.stmt.ExpressionStmt; +import com.github.javaparser.ast.stmt.ForEachStmt; +import com.github.javaparser.ast.stmt.ForStmt; +import com.github.javaparser.ast.stmt.IfStmt; +import com.github.javaparser.ast.stmt.LabeledStmt; +import com.github.javaparser.ast.stmt.LocalClassDeclarationStmt; +import com.github.javaparser.ast.stmt.LocalRecordDeclarationStmt; +import com.github.javaparser.ast.stmt.ReturnStmt; +import com.github.javaparser.ast.stmt.SwitchEntry; +import com.github.javaparser.ast.stmt.SwitchStmt; +import com.github.javaparser.ast.stmt.SynchronizedStmt; +import com.github.javaparser.ast.stmt.ThrowStmt; +import com.github.javaparser.ast.stmt.TryStmt; +import com.github.javaparser.ast.stmt.UnparsableStmt; +import com.github.javaparser.ast.stmt.WhileStmt; +import com.github.javaparser.ast.stmt.YieldStmt; +import com.github.javaparser.ast.type.ArrayType; +import com.github.javaparser.ast.type.ClassOrInterfaceType; +import com.github.javaparser.ast.type.IntersectionType; +import com.github.javaparser.ast.type.PrimitiveType; +import com.github.javaparser.ast.type.TypeParameter; +import com.github.javaparser.ast.type.UnionType; +import com.github.javaparser.ast.type.UnknownType; +import com.github.javaparser.ast.type.VarType; +import com.github.javaparser.ast.type.VoidType; +import com.github.javaparser.ast.type.WildcardType; + +/* + * A visitor who applies a function (based on a range) on each node of the AST and retains the node selected by the function. + * An example usage might be to find the node that encompasses a range (the covering node). + */ +public class NodeFinderVisitor extends VoidVisitorAdapter { + + public static BiFunction fConveringNode = (Node n, Range range) -> { + return n.hasRange() && n.getRange().get().contains(range); + }; + + private Node selectedNode; + + /* + * A range-based function that is evaluated on each node of the AST until a node + * matches the function. + */ + private static BiFunction fn; + + public NodeFinderVisitor(BiFunction fn) { + this.fn = fn; + } + + /** + * Returns the covering node. If more than one nodes are covering the selection, + * the returned node is last covering node found in a top-down traversal of the + * AST + * + * @return Node + */ + public Node getSelectedNode() { + return selectedNode; + } + + @Override + public void visit(final AnnotationDeclaration n, final Range arg) { + + { + n.getMembers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final AnnotationMemberDeclaration n, final Range arg) { + + if (n.getDefaultValue().isPresent()) { + n.getDefaultValue().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getType().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ArrayAccessExpr n, final Range arg) { + + { + n.getIndex().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ArrayCreationExpr n, final Range arg) { + + { + n.getElementType().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getInitializer().isPresent()) { + n.getInitializer().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getLevels().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ArrayInitializerExpr n, final Range arg) { + + { + n.getValues().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final AssertStmt n, final Range arg) { + + { + n.getCheck().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getMessage().isPresent()) { + n.getMessage().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final AssignExpr n, final Range arg) { + + { + n.getTarget().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getValue().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final BinaryExpr n, final Range arg) { + + { + n.getLeft().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getRight().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final BlockStmt n, final Range arg) { + + { + n.getStatements().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final BooleanLiteralExpr n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final BreakStmt n, final Range arg) { + + if (n.getLabel().isPresent()) { + n.getLabel().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final CastExpr n, final Range arg) { + + { + n.getExpression().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getType().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final CatchClause n, final Range arg) { + + { + n.getBody().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getParameter().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final CharLiteralExpr n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + return; + } + + @Override + public void visit(final ClassExpr n, final Range arg) { + + { + n.getType().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ClassOrInterfaceDeclaration n, final Range arg) { + + { + n.getExtendedTypes().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getImplementedTypes().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getPermittedTypes().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getTypeParameters().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getMembers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ClassOrInterfaceType n, final Range arg) { + + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getScope().isPresent()) { + n.getScope().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getTypeArguments().isPresent()) { + n.getTypeArguments().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final CompilationUnit n, final Range arg) { + + { + n.getImports().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getModule().isPresent()) { + n.getModule().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getPackageDeclaration().isPresent()) { + n.getPackageDeclaration().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getTypes().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ConditionalExpr n, final Range arg) { + + { + n.getCondition().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getElseExpr().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getThenExpr().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ConstructorDeclaration n, final Range arg) { + + { + n.getBody().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getParameters().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getReceiverParameter().isPresent()) { + n.getReceiverParameter().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getThrownExceptions().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getTypeParameters().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ContinueStmt n, final Range arg) { + + if (n.getLabel().isPresent()) { + n.getLabel().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final DoStmt n, final Range arg) { + + { + n.getBody().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getCondition().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final DoubleLiteralExpr n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final EmptyStmt n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final EnclosedExpr n, final Range arg) { + + { + n.getInner().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final EnumConstantDeclaration n, final Range arg) { + + { + n.getArguments().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getClassBody().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final EnumDeclaration n, final Range arg) { + + { + n.getEntries().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getImplementedTypes().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getMembers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ExplicitConstructorInvocationStmt n, final Range arg) { + + { + n.getArguments().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getExpression().isPresent()) { + n.getExpression().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getTypeArguments().isPresent()) { + n.getTypeArguments().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ExpressionStmt n, final Range arg) { + + { + n.getExpression().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final FieldAccessExpr n, final Range arg) { + + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getScope().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getTypeArguments().isPresent()) { + n.getTypeArguments().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final FieldDeclaration n, final Range arg) { + + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getVariables().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ForEachStmt n, final Range arg) { + + { + n.getBody().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getIterable().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getVariable().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ForStmt n, final Range arg) { + + { + n.getBody().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getCompare().isPresent()) { + n.getCompare().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getInitialization().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getUpdate().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final IfStmt n, final Range arg) { + + { + n.getCondition().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getElseStmt().isPresent()) { + n.getElseStmt().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getThenStmt().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final InitializerDeclaration n, final Range arg) { + + { + n.getBody().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final InstanceOfExpr n, final Range arg) { + + { + n.getExpression().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getPattern().isPresent()) { + n.getPattern().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getType().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final IntegerLiteralExpr n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + return; + } + + @Override + public void visit(final JavadocComment n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final LabeledStmt n, final Range arg) { + + { + n.getLabel().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getStatement().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final LongLiteralExpr n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final MarkerAnnotationExpr n, final Range arg) { + + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final MemberValuePair n, final Range arg) { + + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getValue().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final MethodCallExpr n, final Range arg) { + + { + n.getArguments().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getScope().isPresent()) { + n.getScope().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getTypeArguments().isPresent()) { + n.getTypeArguments().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final MethodDeclaration n, final Range arg) { + + if (n.getBody().isPresent()) { + n.getBody().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getType().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getParameters().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getReceiverParameter().isPresent()) { + n.getReceiverParameter().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getThrownExceptions().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getTypeParameters().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final NameExpr n, final Range arg) { + + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final NormalAnnotationExpr n, final Range arg) { + + { + n.getPairs().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final NullLiteralExpr n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ObjectCreationExpr n, final Range arg) { + + if (n.getAnonymousClassBody().isPresent()) { + n.getAnonymousClassBody().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getArguments().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getScope().isPresent()) { + n.getScope().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getType().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getTypeArguments().isPresent()) { + n.getTypeArguments().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final PackageDeclaration n, final Range arg) { + + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final Parameter n, final Range arg) { + + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getType().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getVarArgsAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final PrimitiveType n, final Range arg) { + + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final Name n, final Range arg) { + + if (n.getQualifier().isPresent()) { + n.getQualifier().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final SimpleName n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ArrayType n, final Range arg) { + + { + n.getComponentType().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ArrayCreationLevel n, final Range arg) { + + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getDimension().isPresent()) { + n.getDimension().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final IntersectionType n, final Range arg) { + + { + n.getElements().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final UnionType n, final Range arg) { + + { + n.getElements().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ReturnStmt n, final Range arg) { + + if (n.getExpression().isPresent()) { + n.getExpression().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final SingleMemberAnnotationExpr n, final Range arg) { + + { + n.getMemberValue().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final StringLiteralExpr n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final SuperExpr n, final Range arg) { + + if (n.getTypeName().isPresent()) { + n.getTypeName().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final SwitchEntry n, final Range arg) { + + { + n.getLabels().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getStatements().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final SwitchStmt n, final Range arg) { + + { + n.getEntries().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getSelector().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final SynchronizedStmt n, final Range arg) { + + { + n.getBody().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getExpression().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ThisExpr n, final Range arg) { + + if (n.getTypeName().isPresent()) { + n.getTypeName().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ThrowStmt n, final Range arg) { + + { + n.getExpression().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final TryStmt n, final Range arg) { + + { + n.getCatchClauses().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getFinallyBlock().isPresent()) { + n.getFinallyBlock().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getResources().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getTryBlock().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final LocalClassDeclarationStmt n, final Range arg) { + + { + n.getClassDeclaration().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final LocalRecordDeclarationStmt n, final Range arg) { + + { + n.getRecordDeclaration().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final TypeParameter n, final Range arg) { + + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getTypeBound().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final UnaryExpr n, final Range arg) { + + { + n.getExpression().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final UnknownType n, final Range arg) { + + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final VariableDeclarationExpr n, final Range arg) { + + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getVariables().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final VariableDeclarator n, final Range arg) { + + if (n.getInitializer().isPresent()) { + n.getInitializer().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getType().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final VoidType n, final Range arg) { + + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final WhileStmt n, final Range arg) { + + { + n.getBody().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getCondition().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final WildcardType n, final Range arg) { + + if (n.getExtendedType().isPresent()) { + n.getExtendedType().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getSuperType().isPresent()) { + n.getSuperType().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final LambdaExpr n, final Range arg) { + + { + n.getBody().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getParameters().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final MethodReferenceExpr n, final Range arg) { + + { + n.getScope().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getTypeArguments().isPresent()) { + n.getTypeArguments().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final TypeExpr n, final Range arg) { + + { + n.getType().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ImportDeclaration n, final Range arg) { + + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final BlockComment n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final LineComment n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(NodeList n, final Range arg) { + for (final Object v : n) { + ((Node) v).accept(this, arg); + } + return; + } + + @Override + public void visit(final ModuleDeclaration n, final Range arg) { + + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getDirectives().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ModuleRequiresDirective n, final Range arg) { + + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override() + public void visit(final ModuleExportsDirective n, final Range arg) { + + { + n.getModuleNames().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override() + public void visit(final ModuleProvidesDirective n, final Range arg) { + + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getWith().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override() + public void visit(final ModuleUsesDirective n, final Range arg) { + + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ModuleOpensDirective n, final Range arg) { + + { + n.getModuleNames().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final UnparsableStmt n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final ReceiverParameter n, final Range arg) { + + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getType().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final VarType n, final Range arg) { + + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final Modifier n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final SwitchExpr n, final Range arg) { + + { + n.getEntries().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getSelector().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final YieldStmt n, final Range arg) { + + { + n.getExpression().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final TextBlockLiteralExpr n, final Range arg) { + + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final PatternExpr n, final Range arg) { + + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getType().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final RecordDeclaration n, final Range arg) { + + { + n.getImplementedTypes().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getParameters().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getReceiverParameter().isPresent()) { + n.getReceiverParameter().get().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getTypeParameters().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getMembers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + + @Override + public void visit(final CompactConstructorDeclaration n, final Range arg) { + + { + n.getBody().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getModifiers().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getName().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getThrownExceptions().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getTypeParameters().accept(this, arg); + if (selectedNode != null) + return; + } + { + n.getAnnotations().accept(this, arg); + if (selectedNode != null) + return; + } + if (n.getComment().isPresent()) { + n.getComment().get().accept(this, arg); + if (selectedNode != null) + return; + } + if (fn.apply(n, arg)) { + selectedNode = n; + } + return; + } + +} diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ObjectIdentityEqualsVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ObjectIdentityEqualsVisitor.java index c18219df00..26a690bea3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ObjectIdentityEqualsVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ObjectIdentityEqualsVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ObjectIdentityHashCodeVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ObjectIdentityHashCodeVisitor.java index d9ee46ddfb..9078e3242c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ObjectIdentityHashCodeVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ObjectIdentityHashCodeVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/TreeVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/TreeVisitor.java index f28d4ee7d7..13cbc6cf2f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/TreeVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/TreeVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/Visitable.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/Visitable.java index 1ed7c8127a..3baf8655d2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/Visitable.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/Visitable.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitor.java index 49549bc2e8..b76dcc3755 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorAdapter.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorAdapter.java index 4fbade89f5..c7fb6b0725 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorAdapter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorAdapter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorWithDefaults.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorWithDefaults.java index b27150a0c3..05559f1f24 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorWithDefaults.java +++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorWithDefaults.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/javadoc/Javadoc.java b/javaparser-core/src/main/java/com/github/javaparser/javadoc/Javadoc.java index 870b222787..9171d371cf 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/javadoc/Javadoc.java +++ b/javaparser-core/src/main/java/com/github/javaparser/javadoc/Javadoc.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/javadoc/JavadocBlockTag.java b/javaparser-core/src/main/java/com/github/javaparser/javadoc/JavadocBlockTag.java index 1546901f13..88506a4d02 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/javadoc/JavadocBlockTag.java +++ b/javaparser-core/src/main/java/com/github/javaparser/javadoc/JavadocBlockTag.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocDescription.java b/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocDescription.java index 2dcefffa4e..012fb90860 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocDescription.java +++ b/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocDescription.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocDescriptionElement.java b/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocDescriptionElement.java index 7ac7506be4..fed7e85917 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocDescriptionElement.java +++ b/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocDescriptionElement.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocInlineTag.java b/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocInlineTag.java index 0603155362..1d7e3040b2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocInlineTag.java +++ b/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocInlineTag.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocSnippet.java b/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocSnippet.java index 7a87487564..1d10a1a698 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocSnippet.java +++ b/javaparser-core/src/main/java/com/github/javaparser/javadoc/description/JavadocSnippet.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/jml/JmlDocSanitizer.java b/javaparser-core/src/main/java/com/github/javaparser/jml/JmlDocSanitizer.java index 53b3c27538..616a0143c8 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/jml/JmlDocSanitizer.java +++ b/javaparser-core/src/main/java/com/github/javaparser/jml/JmlDocSanitizer.java @@ -3,8 +3,10 @@ import com.github.javaparser.JavaToken; import com.github.javaparser.Position; import com.github.javaparser.Range; +import com.github.javaparser.Token; import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.jml.doc.JmlDoc; + import java.util.Collection; import java.util.Optional; import java.util.Set; @@ -14,24 +16,17 @@ * @author Alexander Weigl * @version 1 (11/23/21) */ -public class JmlDocSanitizer { - - private final Set enabledKeys; - - public JmlDocSanitizer(Set enabledKeys) { - this.enabledKeys = enabledKeys; - } - +public record JmlDocSanitizer(Set enabledKeys) { public String asString(NodeList jmlDocs) { return asString(jmlDocs, true); } - public String asString(NodeList jmlDocs, boolean emulateGlobalPosition) { + public String asStringJT(Collection jmlDocs, boolean emulateGlobalPosition) { if (jmlDocs.isEmpty()) return ""; + StringConstructor s = new StringConstructor(); - for (JmlDoc jmlDoc : jmlDocs) { - JavaToken tok = jmlDoc.getContent(); + for (JavaToken tok : jmlDocs) { if (emulateGlobalPosition) { final Optional range = tok.getRange(); if (range.isPresent()) { @@ -41,11 +36,32 @@ public String asString(NodeList jmlDocs, boolean emulateGlobalPosition) } else { s.append("\n"); } - s.append(jmlDoc.getContent().getText()); + s.append(tok.getText()); + } + return toSanitizedString(s.getBuffer()); + } + + public String asString(Collection jmlDocs, boolean emulateGlobalPosition) { + if (jmlDocs.isEmpty()) + return ""; + + StringConstructor s = new StringConstructor(); + for (Token tok : jmlDocs) { + if (emulateGlobalPosition) { + s.expandTo(tok.beginLine, tok.beginColumn); + } else { + s.append("\n"); + } + s.append(tok.image); } return toSanitizedString(s.getBuffer()); } + + public String asString(NodeList jmlDocs, boolean emulateGlobalPosition) { + return asStringJT(jmlDocs.stream().map(JmlDoc::getContent).toList(), emulateGlobalPosition); + } + public String toSanitizedString(StringBuilder s) { cleanComments(s); cleanAtSigns(s); @@ -130,8 +146,8 @@ private boolean isJmlComment(StringBuilder s, int pos) { return false; } } - if (//unconditonal JML comment - pos + 2 == posAt) + //unconditional JML comment + if (pos + 2 == posAt) return true; String[] keys = splitTags(s.substring(pos + 2, posAt)); return isActiveJmlSpec(keys); @@ -187,55 +203,5 @@ private static boolean isEnabled(Collection enabledKeys, String marker) private static boolean isPositive(String marker) { return marker.charAt(0) == '+'; } - - public Set getEnabledKeys() { - return enabledKeys; - } } -class StringConstructor { - - private final StringBuilder sb = new StringBuilder(1024); - - //JavaCC starts with 1/1 - private int curLine = 1; - - private int curColumn = 1; - - public StringConstructor append(String value) { - sb.ensureCapacity(sb.length() + value.length() + 1); - for (char c : value.toCharArray()) { - sb.append(c); - if (c == '\n') { - curColumn = 1; - curLine++; - } else { - curColumn++; - } - } - return this; - } - - public StringConstructor expandTo(int line, int column) { - if (curLine > line || (curLine == line && curColumn > column)) { - throw new IllegalArgumentException(); - } - for (; curLine < line; curLine++) { - sb.append("\n"); - curColumn = 1; - } - for (; curColumn < column; curColumn++) { - sb.append(" "); - } - return this; - } - - @Override - public String toString() { - return sb.toString(); - } - - public StringBuilder getBuffer() { - return sb; - } -} diff --git a/javaparser-core/src/main/java/com/github/javaparser/jml/StringConstructor.java b/javaparser-core/src/main/java/com/github/javaparser/jml/StringConstructor.java new file mode 100644 index 0000000000..d4fcb4e570 --- /dev/null +++ b/javaparser-core/src/main/java/com/github/javaparser/jml/StringConstructor.java @@ -0,0 +1,47 @@ +package com.github.javaparser.jml; + +public class StringConstructor { + private final StringBuilder sb = new StringBuilder(1024); + + //JavaCC starts with 1/1 + private int curLine = 1; + + private int curColumn = 1; + + public StringConstructor append(String value) { + sb.ensureCapacity(sb.length() + value.length() + 1); + for (char c : value.toCharArray()) { + sb.append(c); + if (c == '\n') { + curColumn = 1; + curLine++; + } else { + curColumn++; + } + } + return this; + } + + public StringConstructor expandTo(int line, int column) { + if (curLine > line || (curLine == line && curColumn > column)) { + throw new IllegalArgumentException(); + } + for (; curLine < line; curLine++) { + sb.append("\n"); + curColumn = 1; + } + for (; curColumn < column; curColumn++) { + sb.append(" "); + } + return this; + } + + @Override + public String toString() { + return sb.toString(); + } + + public StringBuilder getBuffer() { + return sb; + } +} diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationDeclarationMetaModel.java index 4a002379d9..3fa96e54fe 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationExprMetaModel.java index f0560c5b2e..32f407e51a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationMemberDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationMemberDeclarationMetaModel.java index badfe05700..6dfe02e684 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationMemberDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/AnnotationMemberDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayAccessExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayAccessExprMetaModel.java index ef612c9a67..ac466e9ee2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayAccessExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayAccessExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayCreationExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayCreationExprMetaModel.java index 838e6764f6..44f0eb14b2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayCreationExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayCreationExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayCreationLevelMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayCreationLevelMetaModel.java index 061c43e96a..b42a8a5817 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayCreationLevelMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayCreationLevelMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayInitializerExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayInitializerExprMetaModel.java index 1abb6265b6..bf62e4d067 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayInitializerExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayInitializerExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayTypeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayTypeMetaModel.java index ae757d32f7..95ee2670d7 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayTypeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ArrayTypeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/AssertStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/AssertStmtMetaModel.java index d1afaa8434..22e643b9c8 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/AssertStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/AssertStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/AssignExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/AssignExprMetaModel.java index 3faa130b6e..d37c7e31cf 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/AssignExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/AssignExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BaseNodeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BaseNodeMetaModel.java index c7a273c15f..88b2695900 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BaseNodeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BaseNodeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BinaryExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BinaryExprMetaModel.java index 7d2006abe7..443744f832 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BinaryExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BinaryExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BlockCommentMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BlockCommentMetaModel.java index 18451ed79f..154006338b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BlockCommentMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BlockCommentMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BlockStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BlockStmtMetaModel.java index 81a69ff851..5b0886f0ae 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BlockStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BlockStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BodyDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BodyDeclarationMetaModel.java index ed11238a71..ec0f5a4dcd 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BodyDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BodyDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BooleanLiteralExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BooleanLiteralExprMetaModel.java index 55a53a5b50..53b03b57d1 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BooleanLiteralExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BooleanLiteralExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BreakStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BreakStmtMetaModel.java index bc9ac81c0c..1ce94f158b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/BreakStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/BreakStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CallableDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CallableDeclarationMetaModel.java index b404779bbc..9bd72dc904 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CallableDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CallableDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CastExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CastExprMetaModel.java index ca3d98cee7..8966f4598f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CastExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CastExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CatchClauseMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CatchClauseMetaModel.java index 52443f229b..6d469c0eac 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CatchClauseMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CatchClauseMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CharLiteralExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CharLiteralExprMetaModel.java index 95820f004e..03c38da9b0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CharLiteralExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CharLiteralExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassExprMetaModel.java index 8f5fb5801e..698eb3d53c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassOrInterfaceDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassOrInterfaceDeclarationMetaModel.java index ffc94d05c4..1bf3ebb598 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassOrInterfaceDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassOrInterfaceDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassOrInterfaceTypeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassOrInterfaceTypeMetaModel.java index a04e7de676..75e200564c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassOrInterfaceTypeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ClassOrInterfaceTypeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CommentMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CommentMetaModel.java index d582034c8f..db8227dc91 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CommentMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CommentMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CompactConstructorDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CompactConstructorDeclarationMetaModel.java index 1792e3d0a9..eaa8252794 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CompactConstructorDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CompactConstructorDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CompilationUnitMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CompilationUnitMetaModel.java index 8c54b796fa..2c5740114b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/CompilationUnitMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/CompilationUnitMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ConditionalExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ConditionalExprMetaModel.java index 3c3a66c852..39538f37a7 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ConditionalExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ConditionalExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ConstructorDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ConstructorDeclarationMetaModel.java index 3ededbc46d..157dccf48f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ConstructorDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ConstructorDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ContinueStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ContinueStmtMetaModel.java index 55aacc1f36..585d7c571a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ContinueStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ContinueStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/DerivedProperty.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/DerivedProperty.java index 7dd8b47f4e..ae7490ff73 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/DerivedProperty.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/DerivedProperty.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/DoStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/DoStmtMetaModel.java index 99a952f981..abd408fcaf 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/DoStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/DoStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/DoubleLiteralExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/DoubleLiteralExprMetaModel.java index 104fc41aaa..e6a51f516a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/DoubleLiteralExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/DoubleLiteralExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/EmptyStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/EmptyStmtMetaModel.java index 3bda628828..d0376c4ef1 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/EmptyStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/EmptyStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnclosedExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnclosedExprMetaModel.java index 5f74748e8b..56f63a8c69 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnclosedExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnclosedExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnumConstantDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnumConstantDeclarationMetaModel.java index 65b8351407..955f4a88b0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnumConstantDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnumConstantDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnumDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnumDeclarationMetaModel.java index a041a66fb7..58fb98e7f2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnumDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/EnumDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExplicitConstructorInvocationStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExplicitConstructorInvocationStmtMetaModel.java index 0075631e93..5dc734232b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExplicitConstructorInvocationStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExplicitConstructorInvocationStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExpressionMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExpressionMetaModel.java index 5775f21e27..0480e393a4 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExpressionMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExpressionMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExpressionStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExpressionStmtMetaModel.java index cb40652534..e96f5fa609 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExpressionStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ExpressionStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/FieldAccessExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/FieldAccessExprMetaModel.java index 195abbe35c..a6d80a3e05 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/FieldAccessExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/FieldAccessExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/FieldDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/FieldDeclarationMetaModel.java index 2ac4d99eb9..c2008b88c8 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/FieldDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/FieldDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ForEachStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ForEachStmtMetaModel.java index 3d0321c0af..f8efe987b8 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ForEachStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ForEachStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ForStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ForStmtMetaModel.java index f0cd5a0c9d..5e3697e53a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ForStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ForStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/IfStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/IfStmtMetaModel.java index 417b2e6577..5386197e18 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/IfStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/IfStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ImportDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ImportDeclarationMetaModel.java index c0b54327b9..0c991e35e5 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ImportDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ImportDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/InitializerDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/InitializerDeclarationMetaModel.java index df595d97d8..7055226817 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/InitializerDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/InitializerDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/InstanceOfExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/InstanceOfExprMetaModel.java index b40b79c61c..72eebbaf8f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/InstanceOfExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/InstanceOfExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/IntegerLiteralExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/IntegerLiteralExprMetaModel.java index 4d9849afee..181f45e641 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/IntegerLiteralExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/IntegerLiteralExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/InternalProperty.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/InternalProperty.java index 5bf47c1d85..4a4e765ce0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/InternalProperty.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/InternalProperty.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/IntersectionTypeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/IntersectionTypeMetaModel.java index 0918803340..d6566f9379 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/IntersectionTypeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/IntersectionTypeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/JavaParserMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/JavaParserMetaModel.java index 1dda97cd0a..c4906d5e0a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/JavaParserMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/JavaParserMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/JavadocCommentMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/JavadocCommentMetaModel.java index eb4fdaf24d..35a68513a0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/JavadocCommentMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/JavadocCommentMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LabeledStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LabeledStmtMetaModel.java index 76593b2a96..625c5886a8 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LabeledStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LabeledStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LambdaExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LambdaExprMetaModel.java index 261b9a2745..c8ff905a18 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LambdaExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LambdaExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LineCommentMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LineCommentMetaModel.java index d33e9fe5e1..c5e842e32c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LineCommentMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LineCommentMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LiteralExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LiteralExprMetaModel.java index 471005edab..72eb220eb7 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LiteralExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LiteralExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LiteralStringValueExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LiteralStringValueExprMetaModel.java index 59b3a24fc2..7b36829063 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LiteralStringValueExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LiteralStringValueExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LocalClassDeclarationStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LocalClassDeclarationStmtMetaModel.java index c5ad9a9853..2387c94937 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LocalClassDeclarationStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LocalClassDeclarationStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LocalRecordDeclarationStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LocalRecordDeclarationStmtMetaModel.java index c6805ebe1c..d96c7d9c54 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LocalRecordDeclarationStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LocalRecordDeclarationStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LongLiteralExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LongLiteralExprMetaModel.java index 5d2ce14b3e..1c9beaaa4f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/LongLiteralExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/LongLiteralExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/MarkerAnnotationExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/MarkerAnnotationExprMetaModel.java index dc824c91be..8b7bea9cd7 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/MarkerAnnotationExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/MarkerAnnotationExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/MemberValuePairMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/MemberValuePairMetaModel.java index be56c71b33..58a2c27927 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/MemberValuePairMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/MemberValuePairMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodCallExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodCallExprMetaModel.java index a4db672771..6eb89f1aef 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodCallExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodCallExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodDeclarationMetaModel.java index c390b566dd..8b641b0fe3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodReferenceExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodReferenceExprMetaModel.java index ec079c7625..4cee8f64eb 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodReferenceExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/MethodReferenceExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModifierMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModifierMetaModel.java index 831638be71..3ef9e18313 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModifierMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModifierMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleDeclarationMetaModel.java index 3895075318..6b57678b21 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleDirectiveMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleDirectiveMetaModel.java index 8e81ac1df4..473c54aa58 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleDirectiveMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleDirectiveMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleExportsDirectiveMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleExportsDirectiveMetaModel.java index d5e478af7e..5dadfad174 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleExportsDirectiveMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleExportsDirectiveMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleOpensDirectiveMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleOpensDirectiveMetaModel.java index 973dbfaaeb..689b80664a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleOpensDirectiveMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleOpensDirectiveMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleProvidesDirectiveMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleProvidesDirectiveMetaModel.java index 6721b4b42e..5c241782da 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleProvidesDirectiveMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleProvidesDirectiveMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleRequiresDirectiveMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleRequiresDirectiveMetaModel.java index 5d560fdaf3..fac31aaabf 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleRequiresDirectiveMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleRequiresDirectiveMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleUsesDirectiveMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleUsesDirectiveMetaModel.java index 8c6ba51b9e..13d0f0a842 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleUsesDirectiveMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ModuleUsesDirectiveMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NameExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NameExprMetaModel.java index d5847b2cea..fe42116ed2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NameExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NameExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NameMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NameMetaModel.java index 46c4c11888..4e92b789de 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NameMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NameMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NodeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NodeMetaModel.java index c67f075c0c..5c09dcc75b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NodeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NodeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NonEmptyProperty.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NonEmptyProperty.java index 61b2bffde0..fab4f8be36 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NonEmptyProperty.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NonEmptyProperty.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NormalAnnotationExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NormalAnnotationExprMetaModel.java index fd17a0996d..08bf167713 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NormalAnnotationExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NormalAnnotationExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NullLiteralExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NullLiteralExprMetaModel.java index 342d10a82b..4d09d757a9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/NullLiteralExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/NullLiteralExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ObjectCreationExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ObjectCreationExprMetaModel.java index 2dd9d1bf8e..f3124dbe6c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ObjectCreationExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ObjectCreationExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/OptionalProperty.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/OptionalProperty.java index 2a7ed48aac..a5b708a6ca 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/OptionalProperty.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/OptionalProperty.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/PackageDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/PackageDeclarationMetaModel.java index bfbb39e25a..7b2dd8b587 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/PackageDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/PackageDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ParameterMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ParameterMetaModel.java index 6d7dcb975a..95bacf596a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ParameterMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ParameterMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/PatternExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/PatternExprMetaModel.java index f2e4439951..0d56525e9b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/PatternExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/PatternExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/PrimitiveTypeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/PrimitiveTypeMetaModel.java index 40517da7e4..2ce17a7edc 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/PrimitiveTypeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/PrimitiveTypeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/PropertyMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/PropertyMetaModel.java index 9400c7865c..95146fbc8f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/PropertyMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/PropertyMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReceiverParameterMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReceiverParameterMetaModel.java index e54bf91489..f1b028fcec 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReceiverParameterMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReceiverParameterMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/RecordDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/RecordDeclarationMetaModel.java index 1389fedbdd..9a2f6d48b1 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/RecordDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/RecordDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReferenceTypeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReferenceTypeMetaModel.java index 36f90b9253..c02b82854e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReferenceTypeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReferenceTypeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReturnStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReturnStmtMetaModel.java index 225b742c00..920e46d07d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReturnStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ReturnStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SimpleNameMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SimpleNameMetaModel.java index 9a7ff9a030..bf0180f933 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SimpleNameMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SimpleNameMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SingleMemberAnnotationExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SingleMemberAnnotationExprMetaModel.java index 91e01c9474..44ab2fbed5 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SingleMemberAnnotationExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SingleMemberAnnotationExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/StatementMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/StatementMetaModel.java index 5594121faa..535bdce0aa 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/StatementMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/StatementMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/StringLiteralExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/StringLiteralExprMetaModel.java index 2a1d726ac8..729c30f1f1 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/StringLiteralExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/StringLiteralExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SuperExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SuperExprMetaModel.java index cedfe862bb..98a043c13f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SuperExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SuperExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchEntryMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchEntryMetaModel.java index 446106157f..d72173d305 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchEntryMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchEntryMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchExprMetaModel.java index 0cd8f3bc0a..cdf5031901 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchStmtMetaModel.java index b9ab567b53..52b1292443 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SwitchStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SynchronizedStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SynchronizedStmtMetaModel.java index ff4ec75afa..e51d396598 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/SynchronizedStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/SynchronizedStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TextBlockLiteralExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TextBlockLiteralExprMetaModel.java index 333330e1a7..49fb69182d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TextBlockLiteralExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TextBlockLiteralExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ThisExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ThisExprMetaModel.java index d2241368d0..dee10a3a54 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ThisExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ThisExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ThrowStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ThrowStmtMetaModel.java index 316963de7b..b389b369d4 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/ThrowStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/ThrowStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TryStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TryStmtMetaModel.java index 48b81b5337..f8eb254b83 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TryStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TryStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeDeclarationMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeDeclarationMetaModel.java index a2885d82fa..31bac5a264 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeDeclarationMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeDeclarationMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeExprMetaModel.java index 5cedca2e06..128c27d4e5 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeMetaModel.java index 983b832bee..c28460f0b6 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeParameterMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeParameterMetaModel.java index a1c2ad6cdb..4c1a84b231 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeParameterMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/TypeParameterMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnaryExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnaryExprMetaModel.java index 64cd83d4e3..1d480caaf0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnaryExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnaryExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnionTypeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnionTypeMetaModel.java index 30fca06db5..ff20d8a2ac 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnionTypeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnionTypeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnknownTypeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnknownTypeMetaModel.java index b06cd4bed3..aec7103dad 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnknownTypeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnknownTypeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnparsableStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnparsableStmtMetaModel.java index 60c446ba97..5c23415c5a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnparsableStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/UnparsableStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/VarTypeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/VarTypeMetaModel.java index e1b798ad29..bc95153b8b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/VarTypeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/VarTypeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/VariableDeclarationExprMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/VariableDeclarationExprMetaModel.java index 5643fa0443..c86ab2af7c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/VariableDeclarationExprMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/VariableDeclarationExprMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/VariableDeclaratorMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/VariableDeclaratorMetaModel.java index d1c48ebc59..ecd32a17fd 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/VariableDeclaratorMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/VariableDeclaratorMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/VoidTypeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/VoidTypeMetaModel.java index ed719f3371..087b4d9e4a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/VoidTypeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/VoidTypeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/WhileStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/WhileStmtMetaModel.java index 6393d2c777..ed04aef35c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/WhileStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/WhileStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/WildcardTypeMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/WildcardTypeMetaModel.java index 10e163248b..54a2f4a5f7 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/WildcardTypeMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/WildcardTypeMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/metamodel/YieldStmtMetaModel.java b/javaparser-core/src/main/java/com/github/javaparser/metamodel/YieldStmtMetaModel.java index 39ea207788..6634a1c474 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/metamodel/YieldStmtMetaModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/metamodel/YieldStmtMetaModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/ConcreteSyntaxModel.java b/javaparser-core/src/main/java/com/github/javaparser/printer/ConcreteSyntaxModel.java index 357ff2e2ec..f09057f007 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/ConcreteSyntaxModel.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/ConcreteSyntaxModel.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -89,7 +89,7 @@ private static CsmElement typeArguments() { // / concreteSyntaxModelByClass.put(AnnotationDeclaration.class, sequence(comment(), memberAnnotations(), modifiers(), token(GeneratedJavaParserConstants.AT), token(GeneratedJavaParserConstants.INTERFACE), space(), child(ObservableProperty.NAME), space(), token(LBRACE), newline(), indent(), list(ObservableProperty.MEMBERS, newline(), none(), none(), newline()), unindent(), token(RBRACE))); concreteSyntaxModelByClass.put(AnnotationMemberDeclaration.class, sequence(comment(), memberAnnotations(), modifiers(), child(ObservableProperty.TYPE), space(), child(ObservableProperty.NAME), token(LPAREN), token(RPAREN), conditional(ObservableProperty.DEFAULT_VALUE, IS_PRESENT, sequence(space(), token(GeneratedJavaParserConstants._DEFAULT), space(), child(DEFAULT_VALUE))), semicolon())); - concreteSyntaxModelByClass.put(ClassOrInterfaceDeclaration.class, sequence(comment(), memberAnnotations(), modifiers(), conditional(ObservableProperty.INTERFACE, FLAG, token(GeneratedJavaParserConstants.INTERFACE), token(GeneratedJavaParserConstants.CLASS)), space(), child(ObservableProperty.NAME), list(TYPE_PARAMETERS, sequence(comma(), space()), string(GeneratedJavaParserConstants.LT), string(GeneratedJavaParserConstants.GT)), list(ObservableProperty.EXTENDED_TYPES, sequence(string(GeneratedJavaParserConstants.COMMA), space()), sequence(space(), token(GeneratedJavaParserConstants.EXTENDS), space()), none()), list(ObservableProperty.IMPLEMENTED_TYPES, sequence(string(GeneratedJavaParserConstants.COMMA), space()), sequence(space(), token(GeneratedJavaParserConstants.IMPLEMENTS), space()), none()), space(), block(sequence(newline(), list(ObservableProperty.MEMBERS, sequence(newline(), newline()), newline(), newline()))))); + concreteSyntaxModelByClass.put(ClassOrInterfaceDeclaration.class, sequence(comment(), memberAnnotations(), modifiers(), conditional(ObservableProperty.INTERFACE, FLAG, token(GeneratedJavaParserConstants.INTERFACE), token(GeneratedJavaParserConstants.CLASS)), space(), child(ObservableProperty.NAME), list(TYPE_PARAMETERS, sequence(comma(), space()), string(GeneratedJavaParserConstants.LT), string(GeneratedJavaParserConstants.GT)), list(ObservableProperty.EXTENDED_TYPES, sequence(string(GeneratedJavaParserConstants.COMMA), space()), sequence(space(), token(GeneratedJavaParserConstants.EXTENDS), space()), none()), list(ObservableProperty.IMPLEMENTED_TYPES, sequence(string(GeneratedJavaParserConstants.COMMA), space()), sequence(space(), token(GeneratedJavaParserConstants.IMPLEMENTS), space()), none()), space(), list(ObservableProperty.PERMITTED_TYPES, sequence(string(GeneratedJavaParserConstants.COMMA), space()), sequence(space(), token(GeneratedJavaParserConstants.PERMITS), space()), none()), block(sequence(newline(), list(ObservableProperty.MEMBERS, sequence(newline(), newline()), newline(), newline()))))); concreteSyntaxModelByClass.put(ConstructorDeclaration.class, sequence(comment(), memberAnnotations(), modifiers(), typeParameters(), child(ObservableProperty.NAME), token(GeneratedJavaParserConstants.LPAREN), list(ObservableProperty.PARAMETERS, sequence(comma(), space()), none(), none()), token(GeneratedJavaParserConstants.RPAREN), list(ObservableProperty.THROWN_EXCEPTIONS, sequence(comma(), space()), sequence(space(), token(GeneratedJavaParserConstants.THROWS), space()), none()), space(), child(ObservableProperty.BODY))); concreteSyntaxModelByClass.put(RecordDeclaration.class, sequence(comment(), memberAnnotations(), modifiers(), token(GeneratedJavaParserConstants.RECORD), space(), child(ObservableProperty.NAME), token(GeneratedJavaParserConstants.LPAREN), list(ObservableProperty.PARAMETERS, sequence(comma(), space()), none(), none()), token(GeneratedJavaParserConstants.RPAREN), list(TYPE_PARAMETERS, sequence(comma(), space()), string(GeneratedJavaParserConstants.LT), string(GeneratedJavaParserConstants.GT)), list(ObservableProperty.IMPLEMENTED_TYPES, sequence(string(GeneratedJavaParserConstants.COMMA), space()), sequence(space(), token(GeneratedJavaParserConstants.IMPLEMENTS), space()), none()), space(), block(sequence(newline(), list(ObservableProperty.MEMBERS, sequence(newline(), newline()), newline(), newline()))))); concreteSyntaxModelByClass.put(CompactConstructorDeclaration.class, sequence(comment(), memberAnnotations(), modifiers(), typeParameters(), child(ObservableProperty.NAME), list(ObservableProperty.THROWN_EXCEPTIONS, sequence(comma(), space()), sequence(space(), token(GeneratedJavaParserConstants.THROWS), space()), none()), space(), child(ObservableProperty.BODY))); diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/DefaultPrettyPrinter.java b/javaparser-core/src/main/java/com/github/javaparser/printer/DefaultPrettyPrinter.java index 38f74b55d6..31e008d274 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/DefaultPrettyPrinter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/DefaultPrettyPrinter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/DefaultPrettyPrinterVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/printer/DefaultPrettyPrinterVisitor.java index 339fb05fa4..17309618ae 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/DefaultPrettyPrinterVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/DefaultPrettyPrinterVisitor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -1499,7 +1499,7 @@ public void visit(final Parameter n, final Void arg) { printAnnotations(n.getVarArgsAnnotations(), false, arg); printer.print("..."); } - if (!(n.getType() instanceof UnknownType)) { + if (!(n.getType().isUnknownType())) { printer.print(" "); } n.getName().accept(this, arg); diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/DotPrinter.java b/javaparser-core/src/main/java/com/github/javaparser/printer/DotPrinter.java index d2470fce58..c17f4a35a6 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/DotPrinter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/DotPrinter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -24,7 +24,9 @@ import com.github.javaparser.ast.NodeList; import com.github.javaparser.metamodel.NodeMetaModel; import com.github.javaparser.metamodel.PropertyMetaModel; + import java.util.List; + import static com.github.javaparser.utils.Utils.SYSTEM_EOL; import static com.github.javaparser.utils.Utils.assertNotNull; import static java.util.stream.Collectors.toList; diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/PrettyPrintVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/printer/PrettyPrintVisitor.java index d29c2f299f..792d8b9c4a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/PrettyPrintVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/PrettyPrintVisitor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -1236,7 +1236,7 @@ public void visit(final Parameter n, final Void arg) { printAnnotations(n.getVarArgsAnnotations(), false, arg); printer.print("..."); } - if (!(n.getType() instanceof UnknownType)) { + if (!(n.getType().isUnknownType())) { printer.print(" "); } n.getName().accept(this, arg); diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/PrettyPrinter.java b/javaparser-core/src/main/java/com/github/javaparser/printer/PrettyPrinter.java index 02967c6115..0b43b19112 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/PrettyPrinter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/PrettyPrinter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/Printer.java b/javaparser-core/src/main/java/com/github/javaparser/printer/Printer.java index 628a6f9b26..72a363d218 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/Printer.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/Printer.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/SourcePrinter.java b/javaparser-core/src/main/java/com/github/javaparser/printer/SourcePrinter.java index 5a1d4e9674..026ff0352a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/SourcePrinter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/SourcePrinter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/Stringable.java b/javaparser-core/src/main/java/com/github/javaparser/printer/Stringable.java index 920f271c37..faa6373bf9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/Stringable.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/Stringable.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/XmlPrinter.java b/javaparser-core/src/main/java/com/github/javaparser/printer/XmlPrinter.java index e757f6764c..18c341fe75 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/XmlPrinter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/XmlPrinter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/YamlPrinter.java b/javaparser-core/src/main/java/com/github/javaparser/printer/YamlPrinter.java index 3ea03713a9..2350f5177e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/YamlPrinter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/YamlPrinter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmAttribute.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmAttribute.java index 68a93da568..6c0f6cc102 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmAttribute.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmAttribute.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmChar.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmChar.java index a6fead625a..3b453abf0b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmChar.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmChar.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmComment.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmComment.java index d8a13f7976..e0cc2d4787 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmComment.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmComment.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmConditional.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmConditional.java index 30e0bee5ba..f7c5733b81 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmConditional.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmConditional.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmElement.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmElement.java index ef6e424ef9..817cd48e0a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmElement.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmElement.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmIndent.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmIndent.java index 72eff98f29..bc4dfc7410 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmIndent.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmIndent.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmList.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmList.java index 95a829750b..c0bccf6416 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmList.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmList.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmMix.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmMix.java index 3c47599fa7..f173958439 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmMix.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmMix.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmNone.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmNone.java index 5944cd0199..2316612fe9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmNone.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmNone.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmOrphanCommentsEnding.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmOrphanCommentsEnding.java index f04d058c58..0d273d0164 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmOrphanCommentsEnding.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmOrphanCommentsEnding.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmSequence.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmSequence.java index ea368cef6a..a9e71d8d30 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmSequence.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmSequence.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmSingleReference.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmSingleReference.java index 181f81540b..769822ff2b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmSingleReference.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmSingleReference.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmString.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmString.java index 191ace3962..b35351b672 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmString.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmString.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmTextBlock.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmTextBlock.java index 3fd7e4e7b9..9713a2fe4a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmTextBlock.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmTextBlock.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmToken.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmToken.java index 4f90149471..5422417421 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmToken.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmToken.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmUnindent.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmUnindent.java index ab8cdbac80..db359ebbca 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmUnindent.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/CsmUnindent.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/PrintingHelper.java b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/PrintingHelper.java index b2332e6edf..054f15ba0a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/PrintingHelper.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/PrintingHelper.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/ConfigurationOption.java b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/ConfigurationOption.java index 0aca1b59bb..136fb034fb 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/ConfigurationOption.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/ConfigurationOption.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/DefaultConfigurationOption.java b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/DefaultConfigurationOption.java index 929d776053..c81642d715 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/DefaultConfigurationOption.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/DefaultConfigurationOption.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/DefaultPrinterConfiguration.java b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/DefaultPrinterConfiguration.java index 8af4c21c20..d5a659f77b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/DefaultPrinterConfiguration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/DefaultPrinterConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/ImportOrderingStrategy.java b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/ImportOrderingStrategy.java index 4de36c9af2..fda8c0c837 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/ImportOrderingStrategy.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/ImportOrderingStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/Indentation.java b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/Indentation.java index 65a394a22b..42b91a39fa 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/Indentation.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/Indentation.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/PrettyPrinterConfiguration.java b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/PrettyPrinterConfiguration.java index dcf8773551..abf601b3de 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/PrettyPrinterConfiguration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/PrettyPrinterConfiguration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/PrinterConfiguration.java b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/PrinterConfiguration.java index 1df0bb3b95..48f0e17c60 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/PrinterConfiguration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/PrinterConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/DefaultImportOrderingStrategy.java b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/DefaultImportOrderingStrategy.java index 339368b70d..2ab79551bc 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/DefaultImportOrderingStrategy.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/DefaultImportOrderingStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/EclipseImportOrderingStrategy.java b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/EclipseImportOrderingStrategy.java index 82897b00bf..287d217499 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/EclipseImportOrderingStrategy.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/EclipseImportOrderingStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/IntelliJImportOrderingStrategy.java b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/IntelliJImportOrderingStrategy.java index 372a11cac2..27debbc09e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/IntelliJImportOrderingStrategy.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/configuration/imports/IntelliJImportOrderingStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Added.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Added.java index e08e79e1b0..50e9ca2c06 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Added.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Added.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ChildTextElement.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ChildTextElement.java index b6bdb9a194..27f138e35a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ChildTextElement.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ChildTextElement.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Difference.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Difference.java index cfbe45cc26..d0198bc45f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Difference.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Difference.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElement.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElement.java index 5378e7cdcd..33f28eae34 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElement.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElement.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElementCalculator.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElementCalculator.java index cc98cea682..b00eaf7bd2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElementCalculator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/DifferenceElementCalculator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Kept.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Kept.java index bf40ddb040..3b998f8294 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Kept.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Kept.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalDifferenceCalculator.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalDifferenceCalculator.java index 23d4e2d22f..56fb10da32 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalDifferenceCalculator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalDifferenceCalculator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinter.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinter.java index 0859490f35..00414440bf 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinter.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingPrinter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -26,10 +26,12 @@ import static com.github.javaparser.utils.Utils.decapitalize; import static java.util.Comparator.comparing; import static java.util.stream.Collectors.toList; + import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.util.*; + import com.github.javaparser.JavaToken; import com.github.javaparser.Range; import com.github.javaparser.ast.DataKey; @@ -52,16 +54,6 @@ import com.github.javaparser.printer.lexicalpreservation.LexicalDifferenceCalculator.CsmChild; import com.github.javaparser.utils.LineSeparator; import com.github.javaparser.utils.Pair; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.lang.reflect.ParameterizedType; -import java.util.*; -import static com.github.javaparser.GeneratedJavaParserConstants.*; -import static com.github.javaparser.TokenTypes.eolTokenKind; -import static com.github.javaparser.utils.Utils.assertNotNull; -import static com.github.javaparser.utils.Utils.decapitalize; -import static java.util.Comparator.comparing; -import static java.util.stream.Collectors.toList; /** * A Lexical Preserving Printer is used to capture all the lexical information while parsing, update them when @@ -118,7 +110,7 @@ public static N setup(N node) { * Returns true if the lexical preserving printer is initialized on the node */ public static boolean isAvailableOn(Node node) { - return node.containsData(NODE_TEXT_DATA); + return node.containsData(NODE_TEXT_DATA); } // @@ -141,15 +133,11 @@ public void concretePropertyChange(Node observedNode, ObservableProperty propert } if (property == ObservableProperty.COMMENT) { Optional parentNode = observedNode.getParentNode(); - // We're at the root node. - NodeText // We're at the root node. - nodeText = parentNode.map(parent -> getOrCreateNodeText(parentNode.get())).orElse(getOrCreateNodeText(observedNode)); - if (oldValue == null) { - // this case corresponds to the addition of a comment - // Find the position of the comment node and put in front of it the [...] - int // Find the position of the comment node and put in front of it the [...] - // - index = parentNode.isPresent() ? nodeText.findChild(observedNode) : 0; + NodeText nodeText = parentNode.map(parent -> getOrCreateNodeText(parentNode.get())).orElseGet(() -> getOrCreateNodeText(observedNode)); + if (oldValue == null) { // this case corresponds to the addition of a comment + int index = parentNode.isPresent() ? // Find the position of the comment node and put in front of it the [...] + nodeText.findChild(observedNode) : // + 0; /* Add the same indentation to the comment as the previous node * for example if we want to add a comment on the body of the method declaration : * Actual code @@ -175,8 +163,7 @@ public void concretePropertyChange(Node observedNode, ObservableProperty propert nodeText.addElement(index++, makeCommentToken((Comment) newValue)); nodeText.addToken(index, eolTokenKind(lineSeparator), lineSeparator.asRawString()); // code indentation after inserting an eol token may be wrong - } else if (newValue == null) { - // this case corresponds to a deletion of a comment + } else if (newValue == null) { // this case corresponds to a deletion of a comment if (oldValue instanceof Comment) { if (((Comment) oldValue).isOrphan()) { nodeText = getOrCreateNodeText(observedNode); @@ -184,18 +171,18 @@ public void concretePropertyChange(Node observedNode, ObservableProperty propert int index = getIndexOfComment((Comment) oldValue, nodeText); nodeText.removeElement(index); if (isCompleteLine(nodeText.getElements(), index)) { - removeAllExtraCharacters(nodeText.getElements(), index); + removeAllExtraCharacters(nodeText.getElements(), index); } else { - removeAllExtraCharactersStartingFrom(nodeText.getElements().listIterator(index)); + removeAllExtraCharactersStartingFrom(nodeText.getElements().listIterator(index)); } - // if (nodeText.getElements().get(index).isNewline()) { - // nodeText.removeElement(index); - // } +// if (nodeText.getElements().get(index).isNewline()) { +// nodeText.removeElement(index); +// } } else { throw new UnsupportedOperationException("Trying to remove something that is not a comment!"); } } else { - // this is a replacement of a comment + // this is a replacement of a comment List matchingTokens = findTokenTextElementForComment((Comment) oldValue, nodeText); if (matchingTokens.size() != 1) { throw new IllegalStateException("The matching comment to be replaced could not be found"); @@ -212,71 +199,66 @@ public void concretePropertyChange(Node observedNode, ObservableProperty propert LEXICAL_DIFFERENCE_CALCULATOR.calculatePropertyChange(nodeText, observedNode, property, oldValue, newValue); } - private boolean isCompleteLine(List elements, int index) { - if (index <= 0 || index >= elements.size()) - return false; - boolean isCompleteLine = true; - ListIterator iterator = elements.listIterator(index); - // verify if elements after the index are only spaces or tabs - while (iterator.hasNext()) { - TextElement textElement = iterator.next(); - if (textElement.isNewline()) - break; - if (textElement.isSpaceOrTab()) - continue; - isCompleteLine = false; - break; - } - // verify if elements before the index are only spaces or tabs - iterator = elements.listIterator(index); - while (iterator.hasPrevious() && isCompleteLine) { - TextElement textElement = iterator.previous(); - if (textElement.isNewline()) - break; - if (textElement.isSpaceOrTab()) - continue; - isCompleteLine = false; - } - return isCompleteLine; - } - - private void removeAllExtraCharacters(List elements, int index) { - if (index < 0 || index >= elements.size()) - return; - removeAllExtraCharactersStartingFrom(elements.listIterator(index)); - removeAllExtraCharactersBeforePosition(elements.listIterator(index)); + private boolean isCompleteLine(List elements , int index) { + if (index <= 0 || index >= elements.size()) return false; + boolean isCompleteLine=true; + ListIterator iterator = elements.listIterator(index); + // verify if elements after the index are only spaces or tabs + while(iterator.hasNext()) { + TextElement textElement = iterator.next(); + if (textElement.isNewline()) break; + if (textElement.isSpaceOrTab()) continue; + isCompleteLine=false; + break; + } + // verify if elements before the index are only spaces or tabs + iterator = elements.listIterator(index); + while(iterator.hasPrevious() && isCompleteLine) { + TextElement textElement = iterator.previous(); + if (textElement.isNewline()) break; + if (textElement.isSpaceOrTab()) continue; + isCompleteLine=false; + } + + return isCompleteLine; + } + + private void removeAllExtraCharacters(List elements , int index) { + if (index < 0 || index >= elements.size()) return; + removeAllExtraCharactersStartingFrom(elements.listIterator(index)); + removeAllExtraCharactersBeforePosition(elements.listIterator(index)); } /* * Removes all spaces,tabs characters before this position */ - private void removeAllExtraCharactersBeforePosition(ListIterator iterator) { - while (iterator.hasPrevious()) { - TextElement textElement = iterator.previous(); - if (textElement.isSpaceOrTab()) { - iterator.remove(); - continue; - } - break; - } - } - - /* - * Removes all spaces,tabs or new line characters starting from this position - */ - private void removeAllExtraCharactersStartingFrom(ListIterator iterator) { - while (iterator.hasNext()) { - TextElement textElement = iterator.next(); - if (textElement.isSpaceOrTab()) { - iterator.remove(); - continue; - } - if (textElement.isNewline()) { - iterator.remove(); - } - break; - } - } + private void removeAllExtraCharactersBeforePosition(ListIterator iterator) { + while(iterator.hasPrevious()) { + TextElement textElement = iterator.previous(); + if (textElement.isSpaceOrTab()) { + iterator.remove(); + continue; + } + break; + } + } + + /* + * Removes all spaces,tabs or new line characters starting from this position + */ + private void removeAllExtraCharactersStartingFrom(ListIterator iterator) { + while(iterator.hasNext()) { + TextElement textElement = iterator.next(); + if (textElement.isSpaceOrTab()) { + iterator.remove(); + continue; + } + if (textElement.isNewline()) { + iterator.remove(); + } + break; + } + } private TokenTextElement makeCommentToken(Comment newComment) { if (newComment.isJavadocComment()) { @@ -305,7 +287,7 @@ private int getIndexOfComment(Comment oldValue, NodeText nodeText) { private List findChildTextElementForComment(Comment oldValue, NodeText nodeText) { List matchingChildElements; - matchingChildElements = selectMatchingChildElements(oldValue, nodeText); + matchingChildElements = selectMatchingChildElements(oldValue, nodeText); if (matchingChildElements.size() > 1) { // Duplicate child nodes found, refine the result matchingChildElements = matchingChildElements.stream().filter(t -> isEqualRange(t.getChild().getRange(), oldValue.getRange())).collect(toList()); @@ -317,26 +299,27 @@ private List findChildTextElementForComment(Comment oldValue, } private List selectMatchingChildElements(Comment oldValue, NodeText nodeText) { - List result = new ArrayList<>(); - List childTextElements = nodeText.getElements().stream().filter(e -> e.isChild()).map(c -> (ChildTextElement) c).collect(toList()); - ListIterator iterator = childTextElements.listIterator(); - while (iterator.hasNext()) { - ChildTextElement textElement = iterator.next(); - if (textElement.isComment() && isSameComment(((Comment) textElement.getChild()), oldValue)) { - result.add(textElement); - continue; - } - Node node = textElement.getChild(); - if (node.getComment().isPresent() && isSameComment(node.getComment().get(), oldValue)) { - result.add(textElement); - continue; - } - } - return result; + List result = new ArrayList<>(); + List childTextElements = nodeText.getElements().stream().filter(e -> e.isChild()) + .map(c -> (ChildTextElement) c).collect(toList()); + ListIterator iterator = childTextElements.listIterator(); + while(iterator.hasNext()) { + ChildTextElement textElement = iterator.next(); + if (textElement.isComment() && isSameComment(((Comment) textElement.getChild()), oldValue)) { + result.add(textElement); + continue; + } + Node node = textElement.getChild(); + if (node.getComment().isPresent() && isSameComment(node.getComment().get(), oldValue)) { + result.add(textElement); + continue; + } + } + return result; } private boolean isSameComment(Comment childValue, Comment oldValue) { - return childValue.getContent().equals(oldValue.getContent()); + return childValue.getContent().equals(oldValue.getContent()); } private List findTokenTextElementForComment(Comment oldValue, NodeText nodeText) { @@ -362,14 +345,14 @@ private boolean isEqualRange(Optional range1, Optional range2) { return false; } - /** - * This method inserts new space tokens at the given {@code index}. If a new - * comment is added to the token list at the position following {@code index}, - * the new comment and the node will have the same indent. - * - * @param nodeText The text of the node - * @param index The position at which the analysis should start - */ + /** + * This method inserts new space tokens at the given {@code index}. If a new + * comment is added to the token list at the position following {@code index}, + * the new comment and the node will have the same indent. + * + * @param nodeText The text of the node + * @param index The position at which the analysis should start + */ private void fixIndentOfAddedNode(NodeText nodeText, int index) { if (index <= 0) { return; @@ -383,7 +366,7 @@ private void fixIndentOfAddedNode(NodeText nodeText, int index) { } if (!spaceCandidate.isSpaceOrTab()) { if (spaceCandidate.isNewline() && i != index) { - int numberOfIndentationCharacters = index - i; + int numberOfIndentationCharacters = index - i; for (int j = 0; j < numberOfIndentationCharacters; j++) { if (currentSpaceCandidate != null) { // use the current (or last) indentation character @@ -516,10 +499,11 @@ private static Iterator tokensPreceeding(final Node node) { * Print a Node into a String, preserving the lexical information. */ public static String print(Node node) { - LexicalPreservingVisitor visitor = new LexicalPreservingVisitor(); - final NodeText nodeText = getOrCreateNodeText(node); - nodeText.getElements().forEach(element -> element.accept(visitor)); + LexicalPreservingVisitor visitor = new LexicalPreservingVisitor(); + final NodeText nodeText = getOrCreateNodeText(node); + nodeText.getElements().forEach(element -> element.accept(visitor)); return visitor.toString(); + } // @@ -528,7 +512,7 @@ public static String print(Node node) { private static void prettyPrintingTextNode(Node node, NodeText nodeText) { if (node instanceof PrimitiveType) { PrimitiveType primitiveType = (PrimitiveType) node; - switch (primitiveType.getType()) { + switch(primitiveType.getType()) { case BOOLEAN: nodeText.addToken(BOOLEAN, node.toString()); break; @@ -559,17 +543,17 @@ private static void prettyPrintingTextNode(Node node, NodeText nodeText) { return; } if (node instanceof JavadocComment) { - Comment comment = (JavadocComment) node; + Comment comment = (JavadocComment) node; nodeText.addToken(JAVADOC_COMMENT, comment.getHeader() + ((JavadocComment) node).getContent() + comment.getFooter()); return; } if (node instanceof BlockComment) { - Comment comment = (BlockComment) node; + Comment comment = (BlockComment) node; nodeText.addToken(MULTI_LINE_COMMENT, comment.getHeader() + ((BlockComment) node).getContent() + comment.getFooter()); return; } if (node instanceof LineComment) { - Comment comment = (LineComment) node; + Comment comment = (LineComment) node; nodeText.addToken(SINGLE_LINE_COMMENT, comment.getHeader() + comment.getContent()); return; } @@ -590,12 +574,12 @@ private static NodeText interpret(Node node, CsmElement csm, NodeText nodeText) boolean pendingIndentation = false; // Add a comment and line separator if necessary node.getComment().ifPresent(comment -> { - // new comment has no range so in this case we want to force the comment before the node - if (!comment.hasRange()) { - LineSeparator lineSeparator = node.getLineEndingStyleOrDefault(LineSeparator.SYSTEM); - calculatedSyntaxModel.elements.add(0, new CsmToken(eolTokenKind(lineSeparator), lineSeparator.asRawString())); - calculatedSyntaxModel.elements.add(0, new CsmChild(comment)); - } + // new comment has no range so in this case we want to force the comment before the node + if (!comment.hasRange()) { + LineSeparator lineSeparator = node.getLineEndingStyleOrDefault(LineSeparator.SYSTEM); + calculatedSyntaxModel.elements.add(0,new CsmToken(eolTokenKind(lineSeparator), lineSeparator.asRawString())); + calculatedSyntaxModel.elements.add(0,new CsmChild(comment)); + } }); for (CsmElement element : calculatedSyntaxModel.elements) { if (element instanceof CsmIndent) { diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingVisitor.java index e029027f4d..46eeb36fe9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingVisitor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LexicalPreservingVisitor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LookaheadIterator.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LookaheadIterator.java old mode 100755 new mode 100644 index f29df7a304..bf0b02fc13 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LookaheadIterator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/LookaheadIterator.java @@ -1,10 +1,30 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.printer.lexicalpreservation; import java.util.NoSuchElementException; public interface LookaheadIterator { - /** + /** * Returns the next element in iteration without advancing the underlying iterator. * If the iterator is already exhausted, null will be returned. *

@@ -26,4 +46,5 @@ public interface LookaheadIterator { * @throws NoSuchElementException if the iterator is already exhausted according to {@link #hasNext()} */ public E element(); + } diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/NodeText.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/NodeText.java index 9abab110e8..fa1c6c7a71 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/NodeText.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/NodeText.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PeekingIterator.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PeekingIterator.java index 45ba0d6b86..52d95ab016 100755 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PeekingIterator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PeekingIterator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -36,24 +36,16 @@ */ public class PeekingIterator implements ListIterator, LookaheadIterator { - /** - * The iterator being decorated. - */ + /** The iterator being decorated. */ private final ListIterator iterator; - /** - * Indicates that the decorated iterator is exhausted. - */ + /** Indicates that the decorated iterator is exhausted. */ private boolean exhausted; - /** - * Indicates if the lookahead slot is filled. - */ + /** Indicates if the lookahead slot is filled. */ private boolean slotFilled; - /** - * The current slot for lookahead. - */ + /** The current slot for lookahead. */ private E slot; /** @@ -61,8 +53,8 @@ public class PeekingIterator implements ListIterator, LookaheadIterator *

* If the iterator is already a {@link PeekingIterator} it is returned directly. * - * @param the element type - * @param iterator the iterator to decorate + * @param the element type + * @param iterator the iterator to decorate * @return a new peeking iterator * @throws NullPointerException if the iterator is null */ @@ -75,10 +67,11 @@ public PeekingIterator peekingIterator(final ListIterator iterator) { return new PeekingIterator<>(iterator); } + /** * Constructor. * - * @param iterator the iterator to decorate + * @param iterator the iterator to decorate */ public PeekingIterator(final ListIterator iterator) { this.iterator = iterator; @@ -87,7 +80,7 @@ public PeekingIterator(final ListIterator iterator) { /** * Constructor. * - * @param list the provider of the iterator to decorate + * @param list the provider of the iterator to decorate */ public PeekingIterator(final List list) { this.iterator = list.listIterator(); @@ -128,7 +121,7 @@ public boolean hasNext() { * @return the next element from the iterator */ @Override - public E peek() { + public E peek() { fill(); return exhausted ? null : slot; } @@ -141,7 +134,7 @@ public E peek() { * @throws NoSuchElementException if the iterator is already exhausted according to {@link #hasNext()} */ @Override - public E element() { + public E element() { fill(); if (exhausted) { throw new NoSuchElementException(); @@ -165,7 +158,7 @@ public E next() { * {@inheritDoc} * * @throws IllegalStateException if {@link #peek()} or {@link #element()} has been called - * prior to the call to {@link #remove()} + * prior to the call to {@link #remove()} */ @Override public void remove() { @@ -175,50 +168,56 @@ public void remove() { iterator.remove(); } - @Override - public boolean hasPrevious() { - return iterator.hasPrevious(); - } - @Override - public E previous() { - return iterator.previous(); - } + @Override + public boolean hasPrevious() { + return iterator.hasPrevious(); + } - @Override - public int nextIndex() { - return iterator.nextIndex(); - } - /* - * Returns the index of the element that would be returned by the last call to next. - * Returns list size - 1 if the listiterator is at the end of the list. - * Returns -1 if the listiterator is at the beginning of the list. - */ - public int currentIndex() { - if (!hasPrevious()) - return previousIndex(); - return nextIndex() - 1; - } + @Override + public E previous() { + return iterator.previous(); + } - @Override - public int previousIndex() { - return iterator.previousIndex(); - } - @Override - public void set(E e) { - if (slotFilled) { + @Override + public int nextIndex() { + return iterator.nextIndex(); + } + + /* + * Returns the index of the element that would be returned by the last call to next. + * Returns list size - 1 if the listiterator is at the end of the list. + * Returns -1 if the listiterator is at the beginning of the list. + */ + public int currentIndex() { + if (!hasPrevious()) return previousIndex(); + return nextIndex() - 1; + } + + + @Override + public int previousIndex() { + return iterator.previousIndex(); + } + + + @Override + public void set(E e) { + if (slotFilled) { throw new IllegalStateException("peek() or element() called before set()"); } - iterator.set(e); - } + iterator.set(e); + } - @Override - public void add(E e) { - if (slotFilled) { + + @Override + public void add(E e) { + if (slotFilled) { throw new IllegalStateException("peek() or element() called before add()"); } - iterator.add(e); - } + iterator.add(e); + } + } diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PhantomNodeLogic.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PhantomNodeLogic.java index 6396162fbf..8f3775d70b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PhantomNodeLogic.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PhantomNodeLogic.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PrintableTextElement.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PrintableTextElement.java index 10eade8a8f..944438d5af 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PrintableTextElement.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/PrintableTextElement.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Removed.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Removed.java index d4bdce16ba..41eecbd252 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Removed.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Removed.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/RemovedGroup.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/RemovedGroup.java index a153126ff4..9a5a9fba07 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/RemovedGroup.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/RemovedGroup.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Reshuffled.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Reshuffled.java index bc0f6e813c..03ff1eeec9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Reshuffled.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/Reshuffled.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ReshuffledDiffElementExtractor.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ReshuffledDiffElementExtractor.java old mode 100755 new mode 100644 index 0c7852f68a..2375397922 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ReshuffledDiffElementExtractor.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ReshuffledDiffElementExtractor.java @@ -1,6 +1,27 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.printer.lexicalpreservation; import java.util.*; + import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; import com.github.javaparser.printer.concretesyntaxmodel.CsmMix; import com.github.javaparser.printer.concretesyntaxmodel.CsmToken; @@ -8,7 +29,7 @@ public class ReshuffledDiffElementExtractor { - private final NodeText nodeText; + private final NodeText nodeText; private enum MatchClassification { @@ -26,15 +47,15 @@ int getPriority() { } static ReshuffledDiffElementExtractor of(NodeText nodeText) { - return new ReshuffledDiffElementExtractor(nodeText); + return new ReshuffledDiffElementExtractor(nodeText); } - private ReshuffledDiffElementExtractor(NodeText nodeText) { - this.nodeText = nodeText; - } + private ReshuffledDiffElementExtractor(NodeText nodeText) { + this.nodeText = nodeText; + } - public void extract(List diffElements) { - ArrayIterator iterator = new ArrayIterator<>(diffElements); + public void extract(List diffElements) { + ArrayIterator iterator = new ArrayIterator<>(diffElements); while (iterator.hasNext()) { DifferenceElement diffElement = iterator.next(); if (diffElement instanceof Reshuffled) { @@ -49,9 +70,9 @@ public void extract(List diffElements) { PeekingIterator nodeTextIndexOfPreviousElementsIterator = new PeekingIterator<>(nodeTextIndexOfPreviousElements); Map nodeTextIndexToPreviousCSMIndex = new HashMap<>(); while (nodeTextIndexOfPreviousElementsIterator.hasNext()) { - int value = nodeTextIndexOfPreviousElementsIterator.next(); + int value = nodeTextIndexOfPreviousElementsIterator.next(); if (value != -1) { - nodeTextIndexToPreviousCSMIndex.put(value, nodeTextIndexOfPreviousElementsIterator.currentIndex()); + nodeTextIndexToPreviousCSMIndex.put(value, nodeTextIndexOfPreviousElementsIterator.currentIndex()); } } int lastNodeTextIndex = nodeTextIndexOfPreviousElements.stream().max(Integer::compareTo).orElse(-1); @@ -101,9 +122,9 @@ public void extract(List diffElements) { CsmElement originalCSMElement = elementsFromPreviousOrder.getElements().get(indexOfOriginalCSMElement); boolean toBeKept = correspondanceBetweenNextOrderAndPreviousOrder.containsValue(indexOfOriginalCSMElement); if (toBeKept) { - iterator.add(new Kept(originalCSMElement)); + iterator.add(new Kept(originalCSMElement)); } else { - iterator.add(new Removed(originalCSMElement)); + iterator.add(new Removed(originalCSMElement)); } } // else we have a simple node text element, without associated csm element, just keep ignore it @@ -112,59 +133,64 @@ public void extract(List diffElements) { // Finally we look for the remaining new elements that were not yet added and // add all of them for (CsmElement elementToAdd : elementsToBeAddedAtTheEnd) { - iterator.add(new Added(elementToAdd)); + iterator.add(new Added(elementToAdd)); } } } } - /* - * Considering that the lists of elements are ordered, We can find the common - * elements by starting with the list before the modifications and, for each - * element, by going through the list of elements containing the modifications. - * - * We can find the common elements by starting with the list before the - * modifications (L1) and, for each element, by going through the list of elements - * containing the modifications (L2). - * - * If element A in list L1 is not found in list L2, it is a deleted element. - * If element A of list L1 is found in list L2, it is a kept element. In this - * case the search for the next element of the list L1 must start from the - * position of the last element kept {@code syncNextIndex}. - */ - private Map getCorrespondanceBetweenNextOrderAndPreviousOrder(CsmMix elementsFromPreviousOrder, CsmMix elementsFromNextOrder) { - Map correspondanceBetweenNextOrderAndPreviousOrder = new HashMap<>(); - ArrayIterator previousOrderElementsIterator = new ArrayIterator<>(elementsFromPreviousOrder.getElements()); - int syncNextIndex = 0; - while (previousOrderElementsIterator.hasNext()) { - CsmElement pe = previousOrderElementsIterator.next(); - ArrayIterator nextOrderElementsIterator = new ArrayIterator<>(elementsFromNextOrder.getElements(), syncNextIndex); - while (nextOrderElementsIterator.hasNext()) { - CsmElement ne = nextOrderElementsIterator.next(); - if (!correspondanceBetweenNextOrderAndPreviousOrder.values().contains(previousOrderElementsIterator.index()) && DifferenceElementCalculator.matching(ne, pe)) { - correspondanceBetweenNextOrderAndPreviousOrder.put(nextOrderElementsIterator.index(), previousOrderElementsIterator.index()); - // set the position to start on the next {@code nextOrderElementsIterator} iteration - syncNextIndex = nextOrderElementsIterator.index(); - break; - } - } - } - return correspondanceBetweenNextOrderAndPreviousOrder; - } + /* + * Considering that the lists of elements are ordered, We can find the common + * elements by starting with the list before the modifications and, for each + * element, by going through the list of elements containing the modifications. + * + * We can find the common elements by starting with the list before the + * modifications (L1) and, for each element, by going through the list of elements + * containing the modifications (L2). + * + * If element A in list L1 is not found in list L2, it is a deleted element. + * If element A of list L1 is found in list L2, it is a kept element. In this + * case the search for the next element of the list L1 must start from the + * position of the last element kept {@code syncNextIndex}. + */ + private Map getCorrespondanceBetweenNextOrderAndPreviousOrder(CsmMix elementsFromPreviousOrder, + CsmMix elementsFromNextOrder) { + Map correspondanceBetweenNextOrderAndPreviousOrder = new HashMap<>(); + ArrayIterator previousOrderElementsIterator = new ArrayIterator<>( + elementsFromPreviousOrder.getElements()); + int syncNextIndex = 0; + while (previousOrderElementsIterator.hasNext()) { + CsmElement pe = previousOrderElementsIterator.next(); + ArrayIterator nextOrderElementsIterator = new ArrayIterator<>( + elementsFromNextOrder.getElements(), syncNextIndex); + while (nextOrderElementsIterator.hasNext()) { + CsmElement ne = nextOrderElementsIterator.next(); + if (!correspondanceBetweenNextOrderAndPreviousOrder.values().contains(previousOrderElementsIterator.index()) + && DifferenceElementCalculator.matching(ne, pe)) { + correspondanceBetweenNextOrderAndPreviousOrder.put(nextOrderElementsIterator.index(), + previousOrderElementsIterator.index()); + // set the position to start on the next {@code nextOrderElementsIterator} iteration + syncNextIndex = nextOrderElementsIterator.index(); + break; + } + } + } + return correspondanceBetweenNextOrderAndPreviousOrder; + } - private List findIndexOfCorrespondingNodeTextElement(List elements, NodeText nodeText) { + private List findIndexOfCorrespondingNodeTextElement(List elements, NodeText nodeText) { List correspondingIndices = new ArrayList<>(); PeekingIterator csmElementListIterator = new PeekingIterator<>(elements); - while (csmElementListIterator.hasNext()) { - boolean isFirstIterationOnCsmElements = !csmElementListIterator.hasPrevious(); + while ( csmElementListIterator.hasNext() ) { + boolean isFirstIterationOnCsmElements = !csmElementListIterator.hasPrevious(); int previousCsmElementIndex = csmElementListIterator.previousIndex(); CsmElement csmElement = csmElementListIterator.next(); Map potentialMatches = new EnumMap<>(MatchClassification.class); PeekingIterator nodeTextListIterator = new PeekingIterator<>(nodeText.getElements()); while (nodeTextListIterator.hasNext()) { - boolean isFirstIterationOnNodeTextElements = !nodeTextListIterator.hasPrevious(); - TextElement textElement = nodeTextListIterator.next(); - int currentTextElementIndex = nodeTextListIterator.currentIndex(); + boolean isFirstIterationOnNodeTextElements = !nodeTextListIterator.hasPrevious(); + TextElement textElement = nodeTextListIterator.next(); + int currentTextElementIndex = nodeTextListIterator.currentIndex(); if (!correspondingIndices.contains(currentTextElementIndex)) { boolean isCorresponding = csmElement.isCorrespondingElement(textElement); if (isCorresponding) { diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElement.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElement.java index 364ebcc551..4bf015e5e6 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElement.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElement.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementIteratorsFactory.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementIteratorsFactory.java index 8c8db5f473..c206efb376 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementIteratorsFactory.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementIteratorsFactory.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementMatcher.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementMatcher.java index 16ea483464..696d998e70 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementMatcher.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementMatcher.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementMatchers.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementMatchers.java index aa0fb2a9fe..3a21ddac4c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementMatchers.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TextElementMatchers.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TokenTextElement.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TokenTextElement.java index a9a7acd6ec..c468bf7a26 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TokenTextElement.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/TokenTextElement.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/Change.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/Change.java index d922f7d66a..6d6792e83e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/Change.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/Change.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListAdditionChange.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListAdditionChange.java index 00fdd9d272..561078c40d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListAdditionChange.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListAdditionChange.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListRemovalChange.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListRemovalChange.java index 6580ef6e6c..ba9a723f02 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListRemovalChange.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListRemovalChange.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListReplacementChange.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListReplacementChange.java index 4f0bf224cb..0f32a46b2c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListReplacementChange.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/ListReplacementChange.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/NoChange.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/NoChange.java index 472fb8a520..a60c7eb4ee 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/NoChange.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/NoChange.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/PropertyChange.java b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/PropertyChange.java index 2f1523ed36..3fa75ed307 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/PropertyChange.java +++ b/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/PropertyChange.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/quality/NotNull.java b/javaparser-core/src/main/java/com/github/javaparser/quality/NotNull.java index f19215538e..a2ff0e2c8c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/quality/NotNull.java +++ b/javaparser-core/src/main/java/com/github/javaparser/quality/NotNull.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/quality/Nullable.java b/javaparser-core/src/main/java/com/github/javaparser/quality/Nullable.java index 0b37ebc666..6a10d8bf59 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/quality/Nullable.java +++ b/javaparser-core/src/main/java/com/github/javaparser/quality/Nullable.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/quality/Preconditions.java b/javaparser-core/src/main/java/com/github/javaparser/quality/Preconditions.java index f64a15ad1c..db0c17e48b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/quality/Preconditions.java +++ b/javaparser-core/src/main/java/com/github/javaparser/quality/Preconditions.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/Context.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/Context.java index 1e42493c90..c3afadb3c3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/Context.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/Context.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/MethodAmbiguityException.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/MethodAmbiguityException.java index b664b0d49b..e927a84e6a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/MethodAmbiguityException.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/MethodAmbiguityException.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/MethodUsage.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/MethodUsage.java index d95e5cc1c9..d1907db2bb 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/MethodUsage.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/MethodUsage.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/Navigator.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/Navigator.java index ea76a29b3b..fdf8b4abc0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/Navigator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/Navigator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/Resolvable.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/Resolvable.java index 062e425f8a..c3568edec5 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/Resolvable.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/Resolvable.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/Solver.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/Solver.java index 70e54c332e..6922b40ecd 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/Solver.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/Solver.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/SymbolDeclarator.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/SymbolDeclarator.java index c42ac22a7e..7ff1b3cadf 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/SymbolDeclarator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/SymbolDeclarator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/SymbolResolver.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/SymbolResolver.java index 5377bfd6e2..1a93ae6fc0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/SymbolResolver.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/SymbolResolver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/TypeSolver.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/TypeSolver.java index f307ccba0e..04409049eb 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/TypeSolver.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/TypeSolver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/UnsolvedSymbolException.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/UnsolvedSymbolException.java index 3ab60360cd..e8667a82e2 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/UnsolvedSymbolException.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/UnsolvedSymbolException.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/Cache.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/cache/Cache.java similarity index 86% rename from javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/Cache.java rename to javaparser-core/src/main/java/com/github/javaparser/resolution/cache/Cache.java index 6c8797d90e..d0adde8061 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/Cache.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/cache/Cache.java @@ -1,6 +1,5 @@ /* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -19,7 +18,7 @@ * GNU Lesser General Public License for more details. */ -package com.github.javaparser.symbolsolver.cache; +package com.github.javaparser.resolution.cache; import java.util.Optional; @@ -90,5 +89,13 @@ public interface Cache { * @return {@code True} if is empty. */ boolean isEmpty(); + + /** + * Returns a current snapshot of this cache's cumulative statistics, or a set of default values if + * the cache is not recording statistics. All statistics begin at zero and never decrease over the + * lifetime of the cache. + * + */ + CacheStats stats(); } diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/cache/CacheStats.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/cache/CacheStats.java new file mode 100644 index 0000000000..1923036fe1 --- /dev/null +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/cache/CacheStats.java @@ -0,0 +1,151 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.resolution.cache; + +public interface CacheStats { + + /** + * Returns the number of times lookup methods have returned either a cached or + * uncached value. This is defined as {@code hitCount + missCount}. + * + *

Note: the values of the metrics are undefined in case of overflow (though it is + * guaranteed not to throw an exception). If you require specific handling, we recommend + * implementing your own stats collector. + */ + long requestCount(); + + /** Returns the number of times lookup methods have returned a cached value. */ + long hitCount(); + + /** + * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount / + * requestCount}, or {@code 1.0} when {@code requestCount == 0}. Note that {@code hitRate + + * missRate =~ 1.0}. + */ + double hitRate(); + + /** + * Returns the number of times lookup methods have returned an uncached (newly + * loaded) value, or null. Multiple concurrent calls to lookup methods on an absent + * value can result in multiple misses, all returning the results of a single cache load + * operation. + */ + long missCount(); + + /** + * Returns the ratio of cache requests which were misses. This is defined as {@code missCount / + * requestCount}, or {@code 0.0} when {@code requestCount == 0}. Note that {@code hitRate + + * missRate =~ 1.0}. Cache misses include all requests which weren't cache hits, including + * requests which resulted in either successful or failed loading attempts, and requests which + * waited for other threads to finish loading. It is thus the case that {@code missCount >= + * loadSuccessCount + loadExceptionCount}. Multiple concurrent misses for the same key will result + * in a single load operation. + */ + double missRate(); + + /** + * Returns the total number of times that lookup methods attempted to load new + * values. This includes both successful load operations and those that threw exceptions. This is + * defined as {@code loadSuccessCount + loadExceptionCount}. + * + *

Note: the values of the metrics are undefined in case of overflow (though it is + * guaranteed not to throw an exception). If you require specific handling, we recommend + * implementing your own stats collector. + */ + long loadCount(); + + /** + * Returns the number of times lookup methods have successfully loaded a new value. + * This is usually incremented in conjunction with {@link #missCount}, though {@code missCount} is + * also incremented when an exception is encountered during cache loading (see {@link + * #loadExceptionCount}). Multiple concurrent misses for the same key will result in a single load + * operation. This may be incremented not in conjunction with {@code missCount} if the load occurs + * as a result of a refresh or if the cache loader returned more items than was requested. {@code + * missCount} may also be incremented not in conjunction with this (nor {@link + * #loadExceptionCount}) on calls to {@code getIfPresent}. + */ + long loadSuccessCount(); + + /** + * Returns the number of times lookup methods threw an exception while loading a new + * value. This is usually incremented in conjunction with {@code missCount}, though {@code + * missCount} is also incremented when cache loading completes successfully (see {@link + * #loadSuccessCount}). Multiple concurrent misses for the same key will result in a single load + * operation. This may be incremented not in conjunction with {@code missCount} if the load occurs + * as a result of a refresh or if the cache loader returned more items than was requested. {@code + * missCount} may also be incremented not in conjunction with this (nor {@link #loadSuccessCount}) + * on calls to {@code getIfPresent}. + */ + long loadExceptionCount(); + + /** + * Returns the ratio of cache loading attempts which threw exceptions. This is defined as {@code + * loadExceptionCount / (loadSuccessCount + loadExceptionCount)}, or {@code 0.0} when {@code + * loadSuccessCount + loadExceptionCount == 0}. + * + *

Note: the values of the metrics are undefined in case of overflow (though it is + * guaranteed not to throw an exception). If you require specific handling, we recommend + * implementing your own stats collector. + */ + double loadExceptionRate(); + + /** + * Returns the total number of nanoseconds the cache has spent loading new values. This can be + * used to calculate the miss penalty. This value is increased every time {@code loadSuccessCount} + * or {@code loadExceptionCount} is incremented. + */ + long totalLoadTime(); + + /** + * Returns the average time spent loading new values. This is defined as {@code totalLoadTime / + * (loadSuccessCount + loadExceptionCount)}. + * + *

Note: the values of the metrics are undefined in case of overflow (though it is + * guaranteed not to throw an exception). If you require specific handling, we recommend + * implementing your own stats collector. + */ + double averageLoadPenalty(); + + /** + * Returns the number of times an entry has been evicted. This count does not include manual + * invalidations. + */ + long evictionCount(); + + /** + * Returns a new {@code ICacheStats} representing the difference between this {@code ICacheStats} + * and {@code other}. Negative values, which aren't supported by {@code ICacheStats} will be + * rounded up to zero. + */ + CacheStats minus(CacheStats other); + + /** + * Returns a new {@code ICacheStats} representing the sum of this {@code ICacheStats} and {@code + * other}. + * + *

Note: the values of the metrics are undefined in case of overflow (though it is + * guaranteed not to throw an exception). If you require specific handling, we recommend + * implementing your own stats collector. + * + */ + CacheStats plus(CacheStats other); + +} \ No newline at end of file diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/AssociableToAST.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/AssociableToAST.java index d63400bb2f..7433f2a703 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/AssociableToAST.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/AssociableToAST.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/HasAccessSpecifier.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/HasAccessSpecifier.java index 90e51e7bb1..3c784c0a4e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/HasAccessSpecifier.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/HasAccessSpecifier.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationDeclaration.java index a14969199f..3ff2d480bf 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationMemberDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationMemberDeclaration.java index 5a7d89fd09..8a839c6d75 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationMemberDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationMemberDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedClassDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedClassDeclaration.java index 19550af323..cb5e61f5a9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedClassDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedClassDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedConstructorDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedConstructorDeclaration.java index 3c1339ad41..34fa137882 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedConstructorDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedConstructorDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedDeclaration.java index c35f717584..fe8509d4f9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedEnumConstantDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedEnumConstantDeclaration.java index ff8f8357e7..ce173d563d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedEnumConstantDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedEnumConstantDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedEnumDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedEnumDeclaration.java index fb3e442dc4..1d49d1cb21 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedEnumDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedEnumDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedFieldDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedFieldDeclaration.java index e4d15e3886..fd4fec0e4f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedFieldDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedFieldDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedInterfaceDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedInterfaceDeclaration.java index ecb00aef05..7a47684c4c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedInterfaceDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedInterfaceDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedMethodDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedMethodDeclaration.java index 663ac08526..c845dd83c3 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedMethodDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedMethodDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedMethodLikeDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedMethodLikeDeclaration.java index 3ce3fe6b47..c37a388337 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedMethodLikeDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedMethodLikeDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedParameterDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedParameterDeclaration.java index 077e1bc8c0..f60e8f1a5a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedParameterDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedParameterDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedPatternDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedPatternDeclaration.java index 83e46508e5..414e56f55f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedPatternDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedPatternDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedReferenceTypeDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedReferenceTypeDeclaration.java index 14b2374123..be966d5661 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedReferenceTypeDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedReferenceTypeDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeDeclaration.java index 252e170007..a56e4a356f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeParameterDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeParameterDeclaration.java index 6e483728fa..b22d72234c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeParameterDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeParameterDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeParametrizable.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeParametrizable.java index df110d93a4..e91b06024b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeParametrizable.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedTypeParametrizable.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedValueDeclaration.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedValueDeclaration.java index 49634cf695..231a7f7aad 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedValueDeclaration.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedValueDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/ConflictingGenericTypesException.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/ConflictingGenericTypesException.java index 06368cdd00..66adad5416 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/ConflictingGenericTypesException.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/ConflictingGenericTypesException.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/ConstructorResolutionLogic.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/ConstructorResolutionLogic.java index 442d507dc6..2a8c5f883a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/ConstructorResolutionLogic.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/ConstructorResolutionLogic.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/FunctionalInterfaceLogic.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/FunctionalInterfaceLogic.java index 068267704d..462d56fe51 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/FunctionalInterfaceLogic.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/FunctionalInterfaceLogic.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/InferenceContext.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/InferenceContext.java index 78bb165dce..fbac1b83bb 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/InferenceContext.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/InferenceContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/InferenceVariableType.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/InferenceVariableType.java index e54b256384..082d026a1e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/InferenceVariableType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/InferenceVariableType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/MethodResolutionCapability.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/MethodResolutionCapability.java index 0090dee0fd..0c5d244c28 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/MethodResolutionCapability.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/MethodResolutionCapability.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/MethodResolutionLogic.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/MethodResolutionLogic.java index 3f81bd27b4..22c5124ff6 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/MethodResolutionLogic.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/logic/MethodResolutionLogic.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/LambdaArgumentTypePlaceholder.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/LambdaArgumentTypePlaceholder.java index 74b875be0c..d19c13488f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/LambdaArgumentTypePlaceholder.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/LambdaArgumentTypePlaceholder.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/SymbolReference.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/SymbolReference.java index ae735fb98f..6b9504f919 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/SymbolReference.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/SymbolReference.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/Value.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/Value.java index e2afcf6009..902ac3237e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/Value.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/Value.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/LazyType.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/LazyType.java index cbfb971ba9..fc045735be 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/LazyType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/LazyType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -35,7 +35,7 @@ public LazyType(Function provider) { this.provider = provider; } - private ResolvedType getType() { + public ResolvedType getType() { if (concrete == null) { concrete = provider.apply(null); } diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/NullType.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/NullType.java index dcb2d05ece..f9914939e9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/NullType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/NullType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/ReferenceTypeImpl.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/ReferenceTypeImpl.java index ac34f82e81..e3972b0a18 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/ReferenceTypeImpl.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/model/typesystem/ReferenceTypeImpl.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/promotion/ConditionalExprHandler.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/promotion/ConditionalExprHandler.java index 1a79bc701a..ce3293cec5 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/promotion/ConditionalExprHandler.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/promotion/ConditionalExprHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedArrayType.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedArrayType.java index 40de0765f1..bb5e08f0cc 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedArrayType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedArrayType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedIntersectionType.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedIntersectionType.java index efd02417fb..7c31c27eed 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedIntersectionType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedIntersectionType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedLambdaConstraintType.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedLambdaConstraintType.java index 4a98c85219..19c7ee1e2a 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedLambdaConstraintType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedLambdaConstraintType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedPrimitiveType.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedPrimitiveType.java index 2de1b04da8..2f9ccdbdc9 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedPrimitiveType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedPrimitiveType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedReferenceType.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedReferenceType.java index fd947eb579..0316ece22d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedReferenceType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedReferenceType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedType.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedType.java index 1bced4299a..d05f50db6f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedTypeTransformer.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedTypeTransformer.java index e56c8aa9ca..23d81597f0 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedTypeTransformer.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedTypeTransformer.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedTypeVariable.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedTypeVariable.java index d512a6b799..3631d8dda7 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedTypeVariable.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedTypeVariable.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedUnionType.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedUnionType.java index 43c0e543ac..32bce2f0cf 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedUnionType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedUnionType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedVoidType.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedVoidType.java index 4d386263e1..aa972f82cb 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedVoidType.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedVoidType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedWildcard.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedWildcard.java index 944ab7d1f9..39e4c67909 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedWildcard.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ResolvedWildcard.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParameterValueProvider.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParameterValueProvider.java index 5770838ee7..1c9b93c728 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParameterValueProvider.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParameterValueProvider.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -46,7 +46,14 @@ default ResolvedType useThisTypeParametersOnTheGivenType(ResolvedType type) { if (typeParameter.declaredOnType()) { Optional typeParam = typeParamValue(typeParameter); if (typeParam.isPresent()) { - type = typeParam.get(); + ResolvedType resolvedTypeParam = typeParam.get(); + // Try to avoid an infinite loop when the type is a wildcard type bounded by a type variable like "? super T" + if (resolvedTypeParam.isWildcard() && + ( !resolvedTypeParam.asWildcard().equals(ResolvedWildcard.UNBOUNDED) + && type.equals(resolvedTypeParam.asWildcard().getBoundedType()))) { + return type; + } + type = resolvedTypeParam; } } } diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParametersMap.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParametersMap.java index 7763358039..bcfea40fc1 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParametersMap.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParametersMap.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParametrized.java b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParametrized.java index c1cc056206..18a754cd71 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParametrized.java +++ b/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/ResolvedTypeParametrized.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/ClassUtils.java b/javaparser-core/src/main/java/com/github/javaparser/utils/ClassUtils.java index fc1813359a..d50864bd3f 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/ClassUtils.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/ClassUtils.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/CodeGenerationUtils.java b/javaparser-core/src/main/java/com/github/javaparser/utils/CodeGenerationUtils.java index 8d6b6a13f5..4d9dfc7d1c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/CodeGenerationUtils.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/CodeGenerationUtils.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/CollectionStrategy.java b/javaparser-core/src/main/java/com/github/javaparser/utils/CollectionStrategy.java index 29789b7e7e..86259ae4db 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/CollectionStrategy.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/CollectionStrategy.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/LineSeparator.java b/javaparser-core/src/main/java/com/github/javaparser/utils/LineSeparator.java index 452dea2e82..eaaaa37d10 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/LineSeparator.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/LineSeparator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/Log.java b/javaparser-core/src/main/java/com/github/javaparser/utils/Log.java index 040cdd5ca7..a0664b0f52 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/Log.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/Log.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/Pair.java b/javaparser-core/src/main/java/com/github/javaparser/utils/Pair.java index cdd45ffc16..8285c96a9e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/Pair.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/Pair.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/ParserCollectionStrategy.java b/javaparser-core/src/main/java/com/github/javaparser/utils/ParserCollectionStrategy.java index 1cf9f3ec41..9dbf7c5546 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/ParserCollectionStrategy.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/ParserCollectionStrategy.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/PositionUtils.java b/javaparser-core/src/main/java/com/github/javaparser/utils/PositionUtils.java index 7a5bc54592..566ef9b227 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/PositionUtils.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/PositionUtils.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/ProjectRoot.java b/javaparser-core/src/main/java/com/github/javaparser/utils/ProjectRoot.java index 14d42a2f26..5bf4131bcf 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/ProjectRoot.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/ProjectRoot.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/SeparatedItemStringBuilder.java b/javaparser-core/src/main/java/com/github/javaparser/utils/SeparatedItemStringBuilder.java index bec3a497d4..d9637d2235 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/SeparatedItemStringBuilder.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/SeparatedItemStringBuilder.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/SourceRoot.java b/javaparser-core/src/main/java/com/github/javaparser/utils/SourceRoot.java index 4b173cc7be..6f03ba807b 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/SourceRoot.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/SourceRoot.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/SourceZip.java b/javaparser-core/src/main/java/com/github/javaparser/utils/SourceZip.java index 7a7a94109c..db0f97380e 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/SourceZip.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/SourceZip.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/StringEscapeUtils.java b/javaparser-core/src/main/java/com/github/javaparser/utils/StringEscapeUtils.java index 12b1405214..d7b3dee9d7 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/StringEscapeUtils.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/StringEscapeUtils.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/TypeUtils.java b/javaparser-core/src/main/java/com/github/javaparser/utils/TypeUtils.java index 2d83c8bab2..f0e38112cf 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/TypeUtils.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/TypeUtils.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/Utils.java b/javaparser-core/src/main/java/com/github/javaparser/utils/Utils.java index f3590cc6cf..085f010705 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/Utils.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/Utils.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorList.java b/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorList.java index 04bdad05b1..b254528a53 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorList.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorList.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -24,6 +24,7 @@ import com.github.javaparser.ast.visitor.GenericVisitor; import com.github.javaparser.ast.visitor.Visitable; import com.github.javaparser.ast.visitor.VoidVisitor; + import java.util.*; import java.util.stream.Collectors; @@ -61,9 +62,8 @@ public void add(int index, N elem) { @Override public boolean addAll(Collection col) { boolean modified = false; - for (N elem : col) - if (add(elem)) - modified = true; + for (N elem : col) if (add(elem)) + modified = true; return modified; } @@ -93,9 +93,8 @@ public boolean contains(Object elem) { @Override public boolean containsAll(Collection col) { - for (Object elem : col) - if (!contains(elem)) - return false; + for (Object elem : col) if (!contains(elem)) + return false; return true; } @@ -213,9 +212,8 @@ public N remove(int index) { @Override public boolean removeAll(Collection col) { boolean modified = false; - for (Object elem : col) - if (remove(elem)) - modified = true; + for (Object elem : col) if (remove(elem)) + modified = true; return modified; } diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorMap.java b/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorMap.java index b054435bfa..f9f97e54d4 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorMap.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorMap.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorSet.java b/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorSet.java index d0151cbc4a..c9bc71647d 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorSet.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/VisitorSet.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -24,6 +24,7 @@ import com.github.javaparser.ast.visitor.GenericVisitor; import com.github.javaparser.ast.visitor.Visitable; import com.github.javaparser.ast.visitor.VoidVisitor; + import java.util.Collection; import java.util.HashSet; import java.util.Iterator; @@ -58,9 +59,8 @@ public boolean add(N elem) { @Override public boolean addAll(Collection col) { boolean modified = false; - for (N elem : col) - if (add(elem)) - modified = true; + for (N elem : col) if (add(elem)) + modified = true; return modified; } @@ -76,9 +76,8 @@ public boolean contains(Object elem) { @Override public boolean containsAll(Collection col) { - for (Object elem : col) - if (!contains(elem)) - return false; + for (Object elem : col) if (!contains(elem)) + return false; return true; } @@ -118,9 +117,8 @@ public boolean remove(Object elem) { @Override public boolean removeAll(Collection col) { boolean modified = false; - for (Object elem : col) - if (remove(elem)) - modified = true; + for (Object elem : col) if (remove(elem)) + modified = true; return modified; } diff --git a/javaparser-core/src/main/javacc-support/com/github/javaparser/GeneratedJavaParserBase.java b/javaparser-core/src/main/javacc-support/com/github/javaparser/GeneratedJavaParserBase.java index 931ceb53ff..954459a020 100644 --- a/javaparser-core/src/main/javacc-support/com/github/javaparser/GeneratedJavaParserBase.java +++ b/javaparser-core/src/main/javacc-support/com/github/javaparser/GeneratedJavaParserBase.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/javacc-support/com/github/javaparser/GeneratedJavaParserTokenManagerBase.java b/javaparser-core/src/main/javacc-support/com/github/javaparser/GeneratedJavaParserTokenManagerBase.java index 5c96278f05..6b8e9c2d50 100644 --- a/javaparser-core/src/main/javacc-support/com/github/javaparser/GeneratedJavaParserTokenManagerBase.java +++ b/javaparser-core/src/main/javacc-support/com/github/javaparser/GeneratedJavaParserTokenManagerBase.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/javacc-support/com/github/javaparser/ModifierHolder.java b/javaparser-core/src/main/javacc-support/com/github/javaparser/ModifierHolder.java index 96e89f643b..44c72fe19a 100644 --- a/javaparser-core/src/main/javacc-support/com/github/javaparser/ModifierHolder.java +++ b/javaparser-core/src/main/javacc-support/com/github/javaparser/ModifierHolder.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/javacc-support/com/github/javaparser/RangedList.java b/javaparser-core/src/main/javacc-support/com/github/javaparser/RangedList.java index 7aa516a9c7..e272a7ae3e 100644 --- a/javaparser-core/src/main/javacc-support/com/github/javaparser/RangedList.java +++ b/javaparser-core/src/main/javacc-support/com/github/javaparser/RangedList.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/javacc-support/com/github/javaparser/TokenBase.java b/javaparser-core/src/main/javacc-support/com/github/javaparser/TokenBase.java index 9480b656a5..3df5d5a48b 100644 --- a/javaparser-core/src/main/javacc-support/com/github/javaparser/TokenBase.java +++ b/javaparser-core/src/main/javacc-support/com/github/javaparser/TokenBase.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-core/src/main/javacc/java.jj b/javaparser-core/src/main/javacc/java.jj index dd14ab6c1c..b9bebb27f7 100644 --- a/javaparser-core/src/main/javacc/java.jj +++ b/javaparser-core/src/main/javacc/java.jj @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -57,7 +57,7 @@ options { PARSER_BEGIN(GeneratedJavaParser) /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/pom.xml b/javaparser-symbol-solver-core/pom.xml index 8eca098770..cb54183721 100644 --- a/javaparser-symbol-solver-core/pom.xml +++ b/javaparser-symbol-solver-core/pom.xml @@ -4,7 +4,7 @@ jmlparser-parent io.github.jmltoolkit - 3.25.6 + 3.25.8 4.0.0 diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/JavaSymbolSolver.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/JavaSymbolSolver.java index 24f394432f..f541fade87 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/JavaSymbolSolver.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/JavaSymbolSolver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -23,10 +23,13 @@ import static com.github.javaparser.resolution.Navigator.demandParentNode; +import java.util.Optional; + import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.Node; import com.github.javaparser.ast.body.*; import com.github.javaparser.ast.expr.*; +import com.github.javaparser.ast.stmt.CatchClause; import com.github.javaparser.ast.jml.NodeWithJmlTags; import com.github.javaparser.ast.stmt.ExplicitConstructorInvocationStmt; import com.github.javaparser.ast.type.Type; @@ -37,9 +40,11 @@ import com.github.javaparser.resolution.UnsolvedSymbolException; import com.github.javaparser.resolution.declarations.*; import com.github.javaparser.resolution.model.SymbolReference; +import com.github.javaparser.resolution.model.Value; import com.github.javaparser.resolution.types.ResolvedPrimitiveType; import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.symbolsolver.javaparsermodel.JavaParserFacade; +import com.github.javaparser.symbolsolver.javaparsermodel.JavaParserFactory; import com.github.javaparser.symbolsolver.javaparsermodel.declarations.*; import java.util.Optional; @@ -64,6 +69,9 @@ public class JavaSymbolSolver implements SymbolResolver { */ public static boolean ENABLE_JML_RESOLUTION = true; + /* + * add possibility to resolve array.length #1695 + */ private static class ArrayLengthValueDeclaration implements ResolvedValueDeclaration { private static final ArrayLengthValueDeclaration INSTANCE = new ArrayLengthValueDeclaration(); @@ -270,23 +278,51 @@ public T resolveDeclarationImpl(Node node, Class resultClass) { throw new UnsolvedSymbolException("We are unable to find the constructor declaration corresponding to " + node); } } - if (node instanceof Parameter) { - if (ResolvedParameterDeclaration.class.equals(resultClass)) { - Parameter parameter = (Parameter) node; - CallableDeclaration callableDeclaration = node.findAncestor(CallableDeclaration.class).get(); - ResolvedMethodLikeDeclaration resolvedMethodLikeDeclaration; - if (callableDeclaration.isConstructorDeclaration()) { - resolvedMethodLikeDeclaration = callableDeclaration.asConstructorDeclaration().resolve(); - } else { - resolvedMethodLikeDeclaration = callableDeclaration.asMethodDeclaration().resolve(); - } - for (int i = 0; i < resolvedMethodLikeDeclaration.getNumberOfParams(); i++) { - if (resolvedMethodLikeDeclaration.getParam(i).getName().equals(parameter.getNameAsString())) { - return resultClass.cast(resolvedMethodLikeDeclaration.getParam(i)); - } - } - } - } + if (node instanceof Parameter) { + if (ResolvedParameterDeclaration.class.equals(resultClass)) { + Parameter parameter = (Parameter) node; + Optional parentNode = node.getParentNode(); + if (!parentNode.isPresent()) { + throw new UnsolvedSymbolException( + "We are unable to resolve the parameter declaration corresponding to " + node); + } + Node parent = (Node) parentNode.get(); + if (parent instanceof ConstructorDeclaration) { + Optional resolvedParameterDeclaration = resolveParameterDeclaration( + ((ConstructorDeclaration) parent).resolve(), parameter); + return resolvedParameterDeclaration.map(rpd -> resultClass.cast(rpd)) + .orElseThrow(() -> new UnsolvedSymbolException( + "We are unable to resolve the parameter declaration corresponding to " + node)); + } else if (parent instanceof MethodDeclaration) { + Optional resolvedParameterDeclaration = resolveParameterDeclaration( + ((MethodDeclaration) parent).resolve(), parameter); + return resolvedParameterDeclaration.map(rpd -> resultClass.cast(rpd)) + .orElseThrow(() -> new UnsolvedSymbolException( + "We are unable to resolve the parameter declaration corresponding to " + node)); + } else if (parent instanceof RecordDeclaration) { + Optional resolvedParameterDeclaration = resolveParameterDeclaration( + ((RecordDeclaration) parent).resolve(), parameter); + return resolvedParameterDeclaration.map(rpd -> resultClass.cast(rpd)) + .orElseThrow(() -> new UnsolvedSymbolException( + "We are unable to resolve the parameter declaration corresponding to " + node)); + } else if (parent instanceof LambdaExpr) { + Optional resolvedParameterDeclaration = resolveParameterDeclaration( + parameter); + return resolvedParameterDeclaration.map(rpd -> resultClass.cast(rpd)) + .orElseThrow(() -> new UnsolvedSymbolException( + "We are unable to resolve the parameter declaration corresponding to " + node)); + } else if (parent instanceof CatchClause) { + Optional resolvedParameterDeclaration = resolveParameterDeclaration( + parameter); + return resolvedParameterDeclaration.map(rpd -> resultClass.cast(rpd)) + .orElseThrow(() -> new UnsolvedSymbolException( + "We are unable to resolve the parameter declaration corresponding to " + node)); + } else { + throw new UnsolvedSymbolException( + "We are unable to resolve the parameter declaration corresponding to " + node); + } + } + } if (node instanceof AnnotationExpr) { SymbolReference result = JavaParserFacade.get(typeSolver).solve((AnnotationExpr) node); if (result.isSolved()) { @@ -311,6 +347,79 @@ public T resolveDeclarationImpl(Node node, Class resultClass) { + " from " + node.getClass().getSimpleName()); } + /* + * Resolves constructor or method parameter + */ + private Optional resolveParameterDeclaration( + ResolvedMethodLikeDeclaration resolvedMethodLikeDeclaration, Parameter parameter) { + for (int i = 0; i < resolvedMethodLikeDeclaration.getNumberOfParams(); i++) { + if (resolvedMethodLikeDeclaration.getParam(i).getName().equals(parameter.getNameAsString())) { + return Optional.of(resolvedMethodLikeDeclaration.getParam(i)); + } + } + return Optional.empty(); + } + + /* + * Resolves record parameter + */ + private Optional resolveParameterDeclaration( + ResolvedReferenceTypeDeclaration resolvedReferenceTypeDeclaration, Parameter parameter) { + ResolvedFieldDeclaration rfd = resolvedReferenceTypeDeclaration.getField(parameter.getNameAsString()); + if (rfd == null) return Optional.empty(); + ResolvedParameterDeclaration resolvedParameterDeclaration = new ResolvedParameterDeclaration() { + + @Override + public ResolvedType getType() { + return rfd.getType(); + } + + @Override + public String getName() { + return parameter.getNameAsString(); + } + + @Override + public boolean isVariadic() { + return parameter.isVarArgs(); + } + + }; + return Optional.of(resolvedParameterDeclaration); + } + + /* + * Resolves lambda expression parameters and catch clause parameters + */ + private Optional resolveParameterDeclaration(Parameter parameter) { + ResolvedParameterDeclaration resolvedParameterDeclaration = new ResolvedParameterDeclaration() { + + @Override + public ResolvedType getType() { + Node parentNode = parameter.getParentNode().get(); + if (parameter.getType().isUnknownType() && parentNode instanceof LambdaExpr) { + Optional value = JavaParserFactory.getContext(parentNode, typeSolver) + .solveSymbolAsValue(parameter.getNameAsString()); + return value.map(v -> v.getType()).orElseThrow(() -> new UnsolvedSymbolException( + "We are unable to resolve the parameter declaration corresponding to " + parameter)); + } + return JavaParserFacade.get(typeSolver).convertToUsage(parameter.getType()); + } + + @Override + public String getName() { + return parameter.getNameAsString(); + } + + @Override + public boolean isVariadic() { + return parameter.isVarArgs(); + } + + }; + return Optional.of(resolvedParameterDeclaration); + } + @Override public T toResolvedType(Type javaparserType, Class resultClass) { ResolvedType resolvedType = JavaParserFacade.get(typeSolver).convertToUsage(javaparserType); diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/SourceFileInfoExtractor.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/SourceFileInfoExtractor.java index 22e86f6576..90726f49d3 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/SourceFileInfoExtractor.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/SourceFileInfoExtractor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/DefaultCacheStats.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/DefaultCacheStats.java new file mode 100644 index 0000000000..0e81f17e86 --- /dev/null +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/DefaultCacheStats.java @@ -0,0 +1,321 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.symbolsolver.cache; + +import static com.google.common.math.LongMath.saturatedAdd; +import static com.google.common.math.LongMath.saturatedSubtract; + +import java.util.Arrays; + +import javax.annotation.CheckForNull; + +import com.github.javaparser.resolution.cache.Cache; +import com.github.javaparser.resolution.cache.CacheStats; + + /** + * Statistics about the performance of a {@link Cache}. Instances of this class are immutable. + * + *

Cache statistics are incremented according to the following rules: + * + *

    + *
  • When a cache lookup encounters an existing cache entry {@code hitCount} is incremented. + *
  • When a cache lookup first encounters a missing cache entry, a new entry is loaded. + *
      + *
    • After successfully loading an entry {@code missCount} and {@code loadSuccessCount} + * are incremented, and the total loading time, in nanoseconds, is added to {@code + * totalLoadTime}. + *
    • When an exception is thrown while loading an entry, {@code missCount} and {@code + * loadExceptionCount} are incremented, and the total loading time, in nanoseconds, is + * added to {@code totalLoadTime}. + *
    • Cache lookups that encounter a missing cache entry that is still loading will wait + * for loading to complete (whether successful or not) and then increment {@code + * missCount}. + *
    + *
  • When an entry is evicted from the cache, {@code evictionCount} is incremented. + *
  • No stats are modified when a cache entry is invalidated or manually removed. + *
  • No stats are modified by operations invoked on the {@linkplain Cache#asMap asMap} view of + * the cache. + *
+ * + */ + public class DefaultCacheStats implements CacheStats { + private final long hitCount; + private final long missCount; + private final long loadSuccessCount; + private final long loadExceptionCount; + + private final long totalLoadTime; + + private final long evictionCount; + + /** + * Constructs a new {@code ICacheStats} instance. + * + */ + public DefaultCacheStats() { + this.hitCount = 0; + this.missCount = 0; + this.loadSuccessCount = 0; + this.loadExceptionCount = 0; + this.totalLoadTime = 0; + this.evictionCount = 0; + } + + /** + * Constructs a new {@code ICacheStats} instance. + * + */ + public DefaultCacheStats( + long hitCount, + long missCount, + long loadSuccessCount, + long loadExceptionCount, + long totalLoadTime, + long evictionCount) { + + this.hitCount = hitCount; + this.missCount = missCount; + this.loadSuccessCount = loadSuccessCount; + this.loadExceptionCount = loadExceptionCount; + this.totalLoadTime = totalLoadTime; + this.evictionCount = evictionCount; + } + + /** + * Returns the number of times {@link Cache} lookup methods have returned either a cached or + * uncached value. This is defined as {@code hitCount + missCount}. + * + *

Note: the values of the metrics are undefined in case of overflow (though it is + * guaranteed not to throw an exception). If you require specific handling, we recommend + * implementing your own stats collector. + */ + @Override + public long requestCount() { + return saturatedAdd(hitCount, missCount); + } + + /** Returns the number of times {@link Cache} lookup methods have returned a cached value. */ + @Override + public long hitCount() { + return hitCount; + } + + /** + * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount / + * requestCount}, or {@code 1.0} when {@code requestCount == 0}. Note that {@code hitRate + + * missRate =~ 1.0}. + */ + @Override + public double hitRate() { + long requestCount = requestCount(); + return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount; + } + + /** + * Returns the number of times {@link Cache} lookup methods have returned an uncached (newly + * loaded) value, or null. Multiple concurrent calls to {@link Cache} lookup methods on an absent + * value can result in multiple misses, all returning the results of a single cache load + * operation. + */ + @Override + public long missCount() { + return missCount; + } + + /** + * Returns the ratio of cache requests which were misses. This is defined as {@code missCount / + * requestCount}, or {@code 0.0} when {@code requestCount == 0}. Note that {@code hitRate + + * missRate =~ 1.0}. Cache misses include all requests which weren't cache hits, including + * requests which resulted in either successful or failed loading attempts, and requests which + * waited for other threads to finish loading. It is thus the case that {@code missCount >= + * loadSuccessCount + loadExceptionCount}. Multiple concurrent misses for the same key will result + * in a single load operation. + */ + @Override + public double missRate() { + long requestCount = requestCount(); + return (requestCount == 0) ? 0.0 : (double) missCount / requestCount; + } + + /** + * Returns the total number of times that {@link Cache} lookup methods attempted to load new + * values. This includes both successful load operations and those that threw exceptions. This is + * defined as {@code loadSuccessCount + loadExceptionCount}. + * + *

Note: the values of the metrics are undefined in case of overflow (though it is + * guaranteed not to throw an exception). If you require specific handling, we recommend + * implementing your own stats collector. + */ + @Override + public long loadCount() { + return saturatedAdd(loadSuccessCount, loadExceptionCount); + } + + /** + * Returns the number of times {@link Cache} lookup methods have successfully loaded a new value. + * This is usually incremented in conjunction with {@link #missCount}, though {@code missCount} is + * also incremented when an exception is encountered during cache loading (see {@link + * #loadExceptionCount}). Multiple concurrent misses for the same key will result in a single load + * operation. This may be incremented not in conjunction with {@code missCount} if the load occurs + * as a result of a refresh or if the cache loader returned more items than was requested. {@code + * missCount} may also be incremented not in conjunction with this (nor {@link + * #loadExceptionCount}) on calls to {@code getIfPresent}. + */ + @Override + public long loadSuccessCount() { + return loadSuccessCount; + } + + /** + * Returns the number of times {@link Cache} lookup methods threw an exception while loading a new + * value. This is usually incremented in conjunction with {@code missCount}, though {@code + * missCount} is also incremented when cache loading completes successfully (see {@link + * #loadSuccessCount}). Multiple concurrent misses for the same key will result in a single load + * operation. This may be incremented not in conjunction with {@code missCount} if the load occurs + * as a result of a refresh or if the cache loader returned more items than was requested. {@code + * missCount} may also be incremented not in conjunction with this (nor {@link #loadSuccessCount}) + * on calls to {@code getIfPresent}. + */ + @Override + public long loadExceptionCount() { + return loadExceptionCount; + } + + /** + * Returns the ratio of cache loading attempts which threw exceptions. This is defined as {@code + * loadExceptionCount / (loadSuccessCount + loadExceptionCount)}, or {@code 0.0} when {@code + * loadSuccessCount + loadExceptionCount == 0}. + * + *

Note: the values of the metrics are undefined in case of overflow (though it is + * guaranteed not to throw an exception). If you require specific handling, we recommend + * implementing your own stats collector. + */ + @Override + public double loadExceptionRate() { + long totalLoadCount = saturatedAdd(loadSuccessCount, loadExceptionCount); + return (totalLoadCount == 0) ? 0.0 : (double) loadExceptionCount / totalLoadCount; + } + + /** + * Returns the total number of nanoseconds the cache has spent loading new values. This can be + * used to calculate the miss penalty. This value is increased every time {@code loadSuccessCount} + * or {@code loadExceptionCount} is incremented. + */ + @Override + @SuppressWarnings("GoodTime") // should return a java.time.Duration + public long totalLoadTime() { + return totalLoadTime; + } + + /** + * Returns the average time spent loading new values. This is defined as {@code totalLoadTime / + * (loadSuccessCount + loadExceptionCount)}. + * + *

Note: the values of the metrics are undefined in case of overflow (though it is + * guaranteed not to throw an exception). If you require specific handling, we recommend + * implementing your own stats collector. + */ + @Override + public double averageLoadPenalty() { + long totalLoadCount = saturatedAdd(loadSuccessCount, loadExceptionCount); + return (totalLoadCount == 0) ? 0.0 : (double) totalLoadTime / totalLoadCount; + } + + /** + * Returns the number of times an entry has been evicted. This count does not include manual + * {@linkplain Cache#invalidate invalidations}. + */ + @Override + public long evictionCount() { + return evictionCount; + } + + /** + * Returns a new {@code ICacheStats} representing the difference between this {@code ICacheStats} + * and {@code other}. Negative values, which aren't supported by {@code ICacheStats} will be + * rounded up to zero. + */ + @Override + public CacheStats minus(CacheStats other) { + return new DefaultCacheStats( + Math.max(0, saturatedSubtract(hitCount, other.hitCount())), + Math.max(0, saturatedSubtract(missCount, other.missCount())), + Math.max(0, saturatedSubtract(loadSuccessCount, other.loadSuccessCount())), + Math.max(0, saturatedSubtract(loadExceptionCount, other.loadExceptionCount())), + Math.max(0, saturatedSubtract(totalLoadTime, other.totalLoadTime())), + Math.max(0, saturatedSubtract(evictionCount, other.evictionCount()))); + } + + /** + * Returns a new {@code ICacheStats} representing the sum of this {@code ICacheStats} and {@code + * other}. + * + *

Note: the values of the metrics are undefined in case of overflow (though it is + * guaranteed not to throw an exception). If you require specific handling, we recommend + * implementing your own stats collector. + * + * @since 11.0 + */ + @Override + public CacheStats plus(CacheStats other) { + return new DefaultCacheStats( + saturatedAdd(hitCount, other.hitCount()), + saturatedAdd(missCount, other.missCount()), + saturatedAdd(loadSuccessCount, other.loadSuccessCount()), + saturatedAdd(loadExceptionCount, other.loadExceptionCount()), + saturatedAdd(totalLoadTime, other.totalLoadTime()), + saturatedAdd(evictionCount, other.evictionCount())); + } + + @Override + public int hashCode() { + return Arrays.hashCode(new long[] { + hitCount, missCount, loadSuccessCount, loadExceptionCount, totalLoadTime, evictionCount}); + } + + @Override + public boolean equals(@CheckForNull Object object) { + if (object instanceof CacheStats) { + CacheStats other = (CacheStats) object; + return hitCount == other.hitCount() + && missCount == other.missCount() + && loadSuccessCount == other.loadSuccessCount() + && loadExceptionCount == other.loadExceptionCount() + && totalLoadTime == other.totalLoadTime() + && evictionCount == other.evictionCount(); + } + return false; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(this.getClass().getSimpleName()).append(": "); + return sb.append("hitCount").append(hitCount).append(",") + .append("missCount").append(missCount).append(",") + .append("loadSuccessCount").append(loadSuccessCount).append(",") + .append("loadExceptionCount").append(loadExceptionCount).append(",") + .append("totalLoadTime").append(totalLoadTime).append(",") + .append("evictionCount").append(evictionCount).append(",") + .toString(); + } + } + + diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/GuavaCache.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/GuavaCache.java index 2eb2112a8b..c287a942ce 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/GuavaCache.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/GuavaCache.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -24,6 +24,9 @@ import java.util.Objects; import java.util.Optional; +import com.github.javaparser.resolution.cache.Cache; +import com.github.javaparser.resolution.cache.CacheStats; + /** * This class is used to wrap a Guava {@link com.google.common.cache.Cache}. * @@ -87,4 +90,11 @@ public boolean isEmpty() { return size() == 0; } + @Override + public CacheStats stats() { + com.google.common.cache.CacheStats stats = guavaCache.stats(); + return new DefaultCacheStats(stats.hitCount(), stats.missCount(), stats.loadSuccessCount(), + stats.loadExceptionCount(), stats.totalLoadTime(), stats.evictionCount()); + } + } diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/InMemoryCache.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/InMemoryCache.java index c0cd532c18..0f69b575d6 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/InMemoryCache.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/InMemoryCache.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -26,6 +26,9 @@ import java.util.Optional; import java.util.WeakHashMap; +import com.github.javaparser.resolution.cache.Cache; +import com.github.javaparser.resolution.cache.CacheStats; + /** * A cache implementation that stores the information in memory. *
@@ -90,4 +93,9 @@ public boolean isEmpty() { return mappedValues.isEmpty(); } + @Override + public CacheStats stats() { + return new DefaultCacheStats(); + } + } diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/NoCache.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/NoCache.java index 9e6d0795eb..8465497f36 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/NoCache.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/cache/NoCache.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -23,6 +23,9 @@ import java.util.Optional; +import com.github.javaparser.resolution.cache.Cache; +import com.github.javaparser.resolution.cache.CacheStats; + /** * A cache implementation that does not store any information. * @@ -77,4 +80,9 @@ public boolean isEmpty() { return true; } + @Override + public CacheStats stats() { + return new DefaultCacheStats(); + } + } diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/MethodUsageResolutionCapability.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/MethodUsageResolutionCapability.java index cbb1040161..9fe97490c3 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/MethodUsageResolutionCapability.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/MethodUsageResolutionCapability.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/SymbolResolutionCapability.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/SymbolResolutionCapability.java index 658f731761..fa5986c60f 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/SymbolResolutionCapability.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/SymbolResolutionCapability.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/TypeVariableResolutionCapability.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/TypeVariableResolutionCapability.java index 18f2495f17..9c489e8ad6 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/TypeVariableResolutionCapability.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/TypeVariableResolutionCapability.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/declarations/common/MethodDeclarationCommonLogic.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/declarations/common/MethodDeclarationCommonLogic.java index 051441895e..7a10614ebe 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/declarations/common/MethodDeclarationCommonLogic.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/declarations/common/MethodDeclarationCommonLogic.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparser/package-info.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparser/package-info.java index b1de28abdb..8bbeccc843 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparser/package-info.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparser/package-info.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/DefaultVisitorAdapter.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/DefaultVisitorAdapter.java index 2b9c2fed5d..0aeb5e134e 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/DefaultVisitorAdapter.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/DefaultVisitorAdapter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/FailureHandler.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/FailureHandler.java index c19b790cde..3a2ffc9852 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/FailureHandler.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/FailureHandler.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java index 710e6d98d3..435c1b2d04 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -653,7 +653,7 @@ public MethodUsage solveMethodAsUsage(MethodCallExpr call) { Context context = JavaParserFactory.getContext(call, typeSolver); Optional methodUsage = context.solveMethodAsUsage(call.getName().getId(), params); if (!methodUsage.isPresent()) { - throw new RuntimeException("Method '" + call.getName() + "' cannot be resolved in context " + throw new UnsolvedSymbolException("Method '" + call.getName() + "' cannot be resolved in context " + call + " (line: " + call.getRange().map(r -> "" + r.begin.line).orElse("??") + ") " + context + ". Parameter types: " + params); } return methodUsage.get(); diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFactory.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFactory.java index 399ec64191..223c42945a 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFactory.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFactory.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/TypeExtractor.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/TypeExtractor.java index a0e1508296..4a0cfcce24 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/TypeExtractor.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/TypeExtractor.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -40,7 +40,6 @@ import com.github.javaparser.ast.stmt.ExpressionStmt; import com.github.javaparser.ast.stmt.ReturnStmt; import com.github.javaparser.ast.type.ClassOrInterfaceType; -import com.github.javaparser.ast.type.UnknownType; import com.github.javaparser.resolution.*; import com.github.javaparser.resolution.declarations.*; import com.github.javaparser.resolution.logic.FunctionalInterfaceLogic; @@ -92,7 +91,7 @@ public ResolvedType visit(VariableDeclarator node, Boolean solveLambdas) { @Override public ResolvedType visit(Parameter node, Boolean solveLambdas) { - if (node.getType() instanceof UnknownType) { + if (node.getType().isUnknownType()) { throw new IllegalStateException("Parameter has unknown type: " + node); } return facade.convertToUsage(node.getType()); diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AbstractJavaParserContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AbstractJavaParserContext.java index f8613623c5..4d3b4331da 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AbstractJavaParserContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AbstractJavaParserContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -181,15 +181,6 @@ protected Collection findTypeDeclarations(Opti if (optScope.isPresent()) { Expression scope = optScope.get(); - // consider static methods - if (scope instanceof NameExpr) { - NameExpr scopeAsName = scope.asNameExpr(); - SymbolReference symbolReference = this.solveType(scopeAsName.getName().getId()); - if (symbolReference.isSolved() && symbolReference.getCorrespondingDeclaration().isType()) { - return singletonList(symbolReference.getCorrespondingDeclaration().asReferenceType()); - } - } - ResolvedType typeOfScope; try { typeOfScope = JavaParserFacade.get(typeSolver).getType(scope); diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AbstractMethodLikeDeclarationContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AbstractMethodLikeDeclarationContext.java index cce4dd8357..1f77e3d07d 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AbstractMethodLikeDeclarationContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AbstractMethodLikeDeclarationContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AnnotationDeclarationContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AnnotationDeclarationContext.java index a31032efb4..dc491135cb 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AnnotationDeclarationContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AnnotationDeclarationContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AnonymousClassDeclarationContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AnonymousClassDeclarationContext.java index 57636dfa27..3f74fe22c7 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AnonymousClassDeclarationContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/AnonymousClassDeclarationContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ArrayAccessExprContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ArrayAccessExprContext.java index 2db4b4516a..ca9e922a78 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ArrayAccessExprContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ArrayAccessExprContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/BinaryExprContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/BinaryExprContext.java index cc933495f9..4a9e5f92ea 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/BinaryExprContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/BinaryExprContext.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/BlockStmtContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/BlockStmtContext.java index 111e8c543a..fd6d68b41a 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/BlockStmtContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/BlockStmtContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/CatchClauseContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/CatchClauseContext.java index 809cbe06f9..c50fb45c0f 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/CatchClauseContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/CatchClauseContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationContext.java index ed2303baad..63390c93ff 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationExtendsContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationExtendsContext.java index 32e4844137..7860d4b94a 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationExtendsContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationExtendsContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/CompilationUnitContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/CompilationUnitContext.java index 0b08b12dcd..e665908fe9 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/CompilationUnitContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/CompilationUnitContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ConstructorContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ConstructorContext.java index 520dbe5d88..063537433e 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ConstructorContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ConstructorContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ContextHelper.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ContextHelper.java index de27bfa3d0..f1edf2c8c6 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ContextHelper.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ContextHelper.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/EnclosedExprContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/EnclosedExprContext.java index 25e154b7f3..3de5fa4547 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/EnclosedExprContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/EnclosedExprContext.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/EnumDeclarationContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/EnumDeclarationContext.java index 6d56171fe3..39564de354 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/EnumDeclarationContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/EnumDeclarationContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/FieldAccessContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/FieldAccessContext.java index a27f3a33ef..e814810546 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/FieldAccessContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/FieldAccessContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ForEachStatementContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ForEachStatementContext.java index 6d7e18cb3f..c7a7077c87 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ForEachStatementContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ForEachStatementContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ForStatementContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ForStatementContext.java index 206074f635..d3b92d2feb 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ForStatementContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ForStatementContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/IfStatementContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/IfStatementContext.java index e832a8048b..a558bec589 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/IfStatementContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/IfStatementContext.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/InstanceOfExprContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/InstanceOfExprContext.java index ae0586c855..6399b5bfe7 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/InstanceOfExprContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/InstanceOfExprContext.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/JavaParserTypeDeclarationAdapter.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/JavaParserTypeDeclarationAdapter.java index 367697bd80..9a68102dfe 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/JavaParserTypeDeclarationAdapter.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/JavaParserTypeDeclarationAdapter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/LambdaExprContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/LambdaExprContext.java index 174847b3e5..90bfec3280 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/LambdaExprContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/LambdaExprContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/MethodCallExprContext.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/MethodCallExprContext.java index 4ffbde2d11..a162b389de 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/MethodCallExprContext.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/MethodCallExprContext.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -348,13 +348,14 @@ private MethodUsage resolveMethodTypeParameters(MethodUsage methodUsage, List value = JavaParserFactory.getContext(wrappedNode, typeSolver).solveSymbolAsValue(wrappedNode.getNameAsString()); if (value.isPresent()) { return value.get().getType(); diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserPatternDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserPatternDeclaration.java index 8691ca3a02..3a0f76b7fc 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserPatternDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserPatternDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserSymbolDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserSymbolDeclaration.java index a2b108b49e..98cc8efeaf 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserSymbolDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserSymbolDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeAdapter.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeAdapter.java index ab5210484b..4050648a21 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeAdapter.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeAdapter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -166,8 +166,8 @@ public List getFieldsForDeclaredVariables() { List fields = new ArrayList<>(); if (wrappedNode.getMembers() != null) { for (BodyDeclaration member : this.wrappedNode.getMembers()) { - if (member instanceof com.github.javaparser.ast.body.FieldDeclaration) { - com.github.javaparser.ast.body.FieldDeclaration field = (com.github.javaparser.ast.body.FieldDeclaration) member; + if (member.isFieldDeclaration()) { + FieldDeclaration field = member.asFieldDeclaration(); for (VariableDeclarator vd : field.getVariables()) { fields.add(new JavaParserFieldDeclaration(vd, typeSolver)); } diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeParameter.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeParameter.java index 177adce146..aa86a53013 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeParameter.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeParameter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeVariableDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeVariableDeclaration.java index 1f74833c73..3bcba08cbf 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeVariableDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeVariableDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserVariableDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserVariableDeclaration.java index bfc6527f68..8b865eeb19 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserVariableDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserVariableDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/AbstractSymbolDeclarator.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/AbstractSymbolDeclarator.java index f7a1ff5ea7..e67928d045 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/AbstractSymbolDeclarator.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/AbstractSymbolDeclarator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/FieldSymbolDeclarator.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/FieldSymbolDeclarator.java index 14a47fde62..959430a054 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/FieldSymbolDeclarator.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/FieldSymbolDeclarator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/NoSymbolDeclarator.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/NoSymbolDeclarator.java index 1eb0cf397d..43d66b305f 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/NoSymbolDeclarator.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/NoSymbolDeclarator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/ParameterSymbolDeclarator.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/ParameterSymbolDeclarator.java index 5be25deba2..7ac5040924 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/ParameterSymbolDeclarator.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/ParameterSymbolDeclarator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/PatternSymbolDeclarator.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/PatternSymbolDeclarator.java index f534c14450..49bef65030 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/PatternSymbolDeclarator.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/PatternSymbolDeclarator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/VariableSymbolDeclarator.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/VariableSymbolDeclarator.java index 8448a74af1..4bf987041b 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/VariableSymbolDeclarator.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarators/VariableSymbolDeclarator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/package-info.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/package-info.java index 2cf2749d71..45398024b4 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/package-info.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/package-info.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationDeclaration.java index 3e25b03aea..67a92f2c12 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationMemberDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationMemberDeclaration.java index 43e3e21f6f..252a156dc5 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationMemberDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationMemberDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistClassDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistClassDeclaration.java index 9f7838498f..38b850dcb3 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistClassDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistClassDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistConstructorDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistConstructorDeclaration.java index 0e8ac31c3b..ce36ff4ffd 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistConstructorDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistConstructorDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumConstantDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumConstantDeclaration.java index 47c51dbe3f..df0992a51d 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumConstantDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumConstantDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumDeclaration.java index dac74e603f..e241de948f 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFactory.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFactory.java index 49cc0dcb2c..78055a548d 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFactory.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFactory.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFieldDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFieldDeclaration.java index 4889469a4c..a25a5f0701 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFieldDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFieldDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistInterfaceDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistInterfaceDeclaration.java index 8280438137..9670ac1ec0 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistInterfaceDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistInterfaceDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodDeclaration.java index 46b34e2d0b..be342749ec 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodLikeDeclarationAdapter.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodLikeDeclarationAdapter.java index 9d3813c15a..3955cc836c 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodLikeDeclarationAdapter.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodLikeDeclarationAdapter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistParameterDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistParameterDeclaration.java index bde64a8c40..d8a05111fa 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistParameterDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistParameterDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeDeclarationAdapter.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeDeclarationAdapter.java index ec7766e919..2132444dcb 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeDeclarationAdapter.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeDeclarationAdapter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeParameter.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeParameter.java index 0cd1ff982c..b3f6929733 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeParameter.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeParameter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistUtils.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistUtils.java index 02d2cea19f..a007b75e00 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistUtils.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistUtils.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/package-info.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/package-info.java index 0995b7ccc4..059db5e6a4 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/package-info.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/package-info.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/AbstractClassDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/AbstractClassDeclaration.java index 468728ff0c..58075fb027 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/AbstractClassDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/AbstractClassDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/AbstractTypeDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/AbstractTypeDeclaration.java index 8428f89b14..1cf85f19cd 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/AbstractTypeDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/AbstractTypeDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/ObjectProvider.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/ObjectProvider.java index 2a59194587..b4e931becf 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/ObjectProvider.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/logic/ObjectProvider.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationDeclaration.java index 240f7f5c53..f5aa29bce2 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationMemberDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationMemberDeclaration.java index c1dbdd9ec8..c4734b3ad6 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationMemberDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationMemberDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassAdapter.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassAdapter.java index f139cd1e57..4a6befebd2 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassAdapter.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassAdapter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassDeclaration.java index 1b1004dac4..48ce4ddf0f 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionConstructorDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionConstructorDeclaration.java index 484eb82089..d964057b55 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionConstructorDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionConstructorDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumConstantDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumConstantDeclaration.java index 36ee12ff68..082d94e222 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumConstantDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumConstantDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumDeclaration.java index eafb77d519..9a56bc3be3 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFactory.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFactory.java index 609e749523..2f61e1c675 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFactory.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFactory.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFieldDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFieldDeclaration.java index 35c70606db..477db25e16 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFieldDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFieldDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionInterfaceDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionInterfaceDeclaration.java index c89bc3de44..7ef1af6731 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionInterfaceDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionInterfaceDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodDeclaration.java index 67e59ca33f..09d72ff568 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodResolutionLogic.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodResolutionLogic.java index 2d8629a2fa..a7605fa5f7 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodResolutionLogic.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodResolutionLogic.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionParameterDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionParameterDeclaration.java index 78a8141d35..8237574032 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionParameterDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionParameterDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionPatternDeclaration.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionPatternDeclaration.java index b7e352713c..c0eb40dc86 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionPatternDeclaration.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionPatternDeclaration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionTypeParameter.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionTypeParameter.java index 9aef9b9bc7..29d9d26896 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionTypeParameter.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionTypeParameter.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/ClassComparator.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/ClassComparator.java index d10b3d381c..471f2eb415 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/ClassComparator.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/ClassComparator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/MethodComparator.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/MethodComparator.java index 8491bb78b2..a1e8ef37b0 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/MethodComparator.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/MethodComparator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/ParameterComparator.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/ParameterComparator.java index b54a3c91a1..a58341b156 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/ParameterComparator.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/comparators/ParameterComparator.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/package-info.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/package-info.java index 69577bfb09..ac7a0a8ae9 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/package-info.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/package-info.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/SymbolSolver.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/SymbolSolver.java index 4a53c8768d..f9f23021c4 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/SymbolSolver.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/SymbolSolver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameCategory.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameCategory.java index 9f18552a17..98fadfbcfd 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameCategory.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameCategory.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogic.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogic.java index 6e8d6a239a..3ed190549c 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogic.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogic.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameRole.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameRole.java index 63d4b94df8..a3cc0ba9aa 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameRole.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameRole.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/BooleanConditionalExprHandler.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/BooleanConditionalExprHandler.java index 29c983827c..c6698e0d78 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/BooleanConditionalExprHandler.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/BooleanConditionalExprHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/ConditionalExprResolver.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/ConditionalExprResolver.java index c906b72d59..0c76ea763d 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/ConditionalExprResolver.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/ConditionalExprResolver.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/NumericConditionalExprHandler.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/NumericConditionalExprHandler.java index 58feac5cfa..8ee9d6a7a6 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/NumericConditionalExprHandler.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/NumericConditionalExprHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/ReferenceConditionalExprHandler.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/ReferenceConditionalExprHandler.java index 8e41fc9725..8ff692ec95 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/ReferenceConditionalExprHandler.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/promotion/ReferenceConditionalExprHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Bound.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Bound.java index 150b050716..2c5ba5bed0 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Bound.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Bound.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/BoundSet.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/BoundSet.java index b48833ff32..f4cad2bd41 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/BoundSet.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/BoundSet.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ConstraintFormula.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ConstraintFormula.java index 6759e4c6c9..545bdd0571 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ConstraintFormula.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ConstraintFormula.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ConstraintFormulaSet.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ConstraintFormulaSet.java index a9225b44da..bafe2f4798 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ConstraintFormulaSet.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ConstraintFormulaSet.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ControlFlowLogic.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ControlFlowLogic.java index c094734677..fcc26d5eff 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ControlFlowLogic.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ControlFlowLogic.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ExpressionHelper.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ExpressionHelper.java index b8666cc696..011fc80577 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ExpressionHelper.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ExpressionHelper.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -24,7 +24,6 @@ import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.LambdaExpr; import com.github.javaparser.ast.stmt.BlockStmt; -import com.github.javaparser.ast.type.UnknownType; import com.github.javaparser.resolution.TypeSolver; import com.github.javaparser.resolution.types.ResolvedType; import com.github.javaparser.symbolsolver.javaparsermodel.JavaParserFacade; @@ -37,7 +36,7 @@ public class ExpressionHelper { public static boolean isExplicitlyTyped(LambdaExpr lambdaExpr) { - return lambdaExpr.getParameters().stream().allMatch(p -> !(p.getType() instanceof UnknownType)); + return lambdaExpr.getParameters().stream().allMatch(p -> !(p.getType().isUnknownType())); } public static List getResultExpressions(BlockStmt blockStmt) { diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InferenceVariable.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InferenceVariable.java index 1fe73be57c..bfbb496678 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InferenceVariable.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InferenceVariable.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InferenceVariableSubstitution.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InferenceVariableSubstitution.java index 6e6a051d26..f76070651f 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InferenceVariableSubstitution.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InferenceVariableSubstitution.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Instantiation.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Instantiation.java index 9ffdf34b44..9dc8d7f5d7 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Instantiation.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Instantiation.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InstantiationSet.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InstantiationSet.java index 1677b84f4b..da271edcf3 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InstantiationSet.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/InstantiationSet.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/LeastUpperBoundLogic.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/LeastUpperBoundLogic.java old mode 100755 new mode 100644 index 1644aa2016..5c3c0bc966 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/LeastUpperBoundLogic.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/LeastUpperBoundLogic.java @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.symbolsolver.resolution.typeinference; import java.util.*; @@ -6,6 +26,7 @@ import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration; import com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration; import com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration.Bound; +import com.github.javaparser.resolution.model.typesystem.LazyType; import com.github.javaparser.resolution.model.typesystem.NullType; import com.github.javaparser.resolution.types.ResolvedReferenceType; import com.github.javaparser.resolution.types.ResolvedType; @@ -39,7 +60,11 @@ public ResolvedType lub(Set types) { // The direct supertypes of the null type are all reference types other than the null type itself. // One way to handle this case is to remove the type null from the list of types. - Set resolvedTypes = types.stream().filter(type -> !(type instanceof NullType)).collect(Collectors.toSet()); + // Provides the concret type of Lazy type if needed + Set resolvedTypes = types.stream() + .filter(type -> !(type instanceof NullType)) + .map(type -> concreteType(type)) + .collect(Collectors.toSet()); // reduces the set in the presence of enumeration type because members are // not equal and they do not have an explicit super type. @@ -200,6 +225,13 @@ public ResolvedType lub(Set types) { } return erasedBest; } + + /* + * Provides concrete type of Lazy type + */ + private ResolvedType concreteType(ResolvedType type) { + return type instanceof LazyType ? LazyType.class.cast(type).getType() : type; + } /* * Check the type declaration if it is an enum diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/MethodType.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/MethodType.java index d0d5732c1e..a1a6ae2b39 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/MethodType.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/MethodType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ProperLowerBound.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ProperLowerBound.java index c9f4156e31..5a2cb583d2 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ProperLowerBound.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ProperLowerBound.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ProperUpperBound.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ProperUpperBound.java index 0a5b446800..cb67e4a24e 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ProperUpperBound.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ProperUpperBound.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Substitution.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Substitution.java index c3507c1132..ad82bf7005 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Substitution.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/Substitution.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java index 2dd77d5a1e..8c08c5dfc9 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInference.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInference.java index 5a44fe2558..5d641a4909 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInference.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInference.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -22,7 +22,6 @@ package com.github.javaparser.symbolsolver.resolution.typeinference; import com.github.javaparser.ast.expr.*; -import com.github.javaparser.ast.type.UnknownType; import com.github.javaparser.resolution.MethodUsage; import com.github.javaparser.resolution.TypeSolver; import com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration; @@ -584,7 +583,7 @@ private List formalParameterTypes(ResolvedMethodDeclaration method } private boolean isImplicitlyTyped(LambdaExpr lambdaExpr) { - return lambdaExpr.getParameters().stream().anyMatch(p -> p.getType() instanceof UnknownType); + return lambdaExpr.getParameters().stream().anyMatch(p -> p.getType().isUnknownType()); } private boolean isInexact(MethodReferenceExpr methodReferenceExpr) { @@ -597,7 +596,7 @@ private boolean isPertinentToApplicability(Expression argument) { // // - An implicitly typed lambda expression (§15.27.1). - if (argument instanceof LambdaExpr) { + if (argument.isLambdaExpr()) { LambdaExpr lambdaExpr = (LambdaExpr) argument; if (isImplicitlyTyped(lambdaExpr)) { return false; @@ -606,7 +605,7 @@ private boolean isPertinentToApplicability(Expression argument) { // - An inexact method reference expression (§15.13.1). - if (argument instanceof MethodReferenceExpr) { + if (argument.isMethodReferenceExpr()) { MethodReferenceExpr methodReferenceExpr = (MethodReferenceExpr) argument; if (isInexact(methodReferenceExpr)) { return false; @@ -617,37 +616,37 @@ private boolean isPertinentToApplicability(Expression argument) { // explicitly typed lambda expression or an exact method reference expression for which the // corresponding target type (as derived from the signature of m) is a type parameter of m. - if (argument instanceof LambdaExpr) { + if (argument.isLambdaExpr()) { throw new UnsupportedOperationException(); } - if (argument instanceof MethodReferenceExpr) { + if (argument.isMethodReferenceExpr()) { throw new UnsupportedOperationException(); } // - An explicitly typed lambda expression whose body is an expression that is not pertinent to applicability. - if (argument instanceof LambdaExpr) { + if (argument.isLambdaExpr()) { throw new UnsupportedOperationException(); } // - An explicitly typed lambda expression whose body is a block, where at least one result expression is not // pertinent to applicability. - if (argument instanceof LambdaExpr) { + if (argument.isLambdaExpr()) { throw new UnsupportedOperationException(); } // - A parenthesized expression (§15.8.5) whose contained expression is not pertinent to applicability. - if (argument instanceof EnclosedExpr) { + if (argument.isEnclosedExpr()) { EnclosedExpr enclosedExpr = (EnclosedExpr) argument; return isPertinentToApplicability(enclosedExpr.getInner()); } // - A conditional expression (§15.25) whose second or third operand is not pertinent to applicability. - if (argument instanceof ConditionalExpr) { + if (argument.isConditionalExpr()) { ConditionalExpr conditionalExpr = (ConditionalExpr) argument; return isPertinentToApplicability(conditionalExpr.getThenExpr()) && isPertinentToApplicability(conditionalExpr.getElseExpr()); diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInferenceCache.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInferenceCache.java index 840168e640..79521759d8 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInferenceCache.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInferenceCache.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/CapturesBound.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/CapturesBound.java index 7e399ab9fa..b8fdc29f72 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/CapturesBound.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/CapturesBound.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/FalseBound.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/FalseBound.java index 7cd74fbe1f..8ad27eae42 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/FalseBound.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/FalseBound.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SameAsBound.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SameAsBound.java index 3e3b44540c..8922c37596 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SameAsBound.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SameAsBound.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SubtypeOfBound.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SubtypeOfBound.java index 4ac78541dc..f38cb997cb 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SubtypeOfBound.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SubtypeOfBound.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/ThrowsBound.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/ThrowsBound.java index 4a7d3bad39..3590b81210 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/ThrowsBound.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/ThrowsBound.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/ExpressionCompatibleWithType.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/ExpressionCompatibleWithType.java index 502d28b53a..c0b541c84d 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/ExpressionCompatibleWithType.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/ExpressionCompatibleWithType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -26,7 +26,6 @@ import com.github.javaparser.ast.stmt.ExpressionStmt; import com.github.javaparser.ast.stmt.ReturnStmt; import com.github.javaparser.ast.stmt.Statement; -import com.github.javaparser.ast.type.UnknownType; import com.github.javaparser.resolution.TypeSolver; import com.github.javaparser.resolution.logic.FunctionalInterfaceLogic; import com.github.javaparser.resolution.types.ResolvedType; @@ -188,7 +187,7 @@ public ReductionResult reduce(BoundSet currentBoundSet) { // - If the lambda parameters have explicitly declared types F1, ..., Fn and the function type // has parameter types G1, ..., Gn, then i) for all i (1 ≤ i ≤ n), ‹Fi = Gi›, and ii) ‹T' <: T›. - boolean hasExplicitlyDeclaredTypes = lambdaExpr.getParameters().stream().anyMatch(p -> !(p.getType() instanceof UnknownType)); + boolean hasExplicitlyDeclaredTypes = lambdaExpr.getParameters().stream().anyMatch(p -> !(p.getType().isUnknownType())); if (hasExplicitlyDeclaredTypes) { throw new UnsupportedOperationException(); } diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/LambdaThrowsCompatibleWithType.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/LambdaThrowsCompatibleWithType.java index eb57d28aa0..ab256ee327 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/LambdaThrowsCompatibleWithType.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/LambdaThrowsCompatibleWithType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/MethodReferenceThrowsCompatibleWithType.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/MethodReferenceThrowsCompatibleWithType.java index eb1d9f12c1..474c3c444a 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/MethodReferenceThrowsCompatibleWithType.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/MethodReferenceThrowsCompatibleWithType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeCompatibleWithType.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeCompatibleWithType.java index ce61e031a7..cf56fde674 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeCompatibleWithType.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeCompatibleWithType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeContainedByType.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeContainedByType.java index 4474c91011..01685a89f8 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeContainedByType.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeContainedByType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeSameAsType.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeSameAsType.java index 5329edad74..71dda3fb9f 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeSameAsType.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeSameAsType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeSubtypeOfType.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeSubtypeOfType.java index 429892cee3..73622b3e5b 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeSubtypeOfType.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/TypeSubtypeOfType.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AarTypeSolver.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AarTypeSolver.java index 66c6dff9a3..4d9d40e20f 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AarTypeSolver.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AarTypeSolver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ClassLoaderTypeSolver.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ClassLoaderTypeSolver.java index d23c39980a..ca31728a11 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ClassLoaderTypeSolver.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ClassLoaderTypeSolver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/CombinedTypeSolver.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/CombinedTypeSolver.java index 9596d2902e..3262d05250 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/CombinedTypeSolver.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/CombinedTypeSolver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -23,9 +23,9 @@ import com.github.javaparser.resolution.TypeSolver; import com.github.javaparser.resolution.UnsolvedSymbolException; +import com.github.javaparser.resolution.cache.Cache; import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration; import com.github.javaparser.resolution.model.SymbolReference; -import com.github.javaparser.symbolsolver.cache.Cache; import com.github.javaparser.symbolsolver.cache.InMemoryCache; import java.util.*; diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JarTypeSolver.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JarTypeSolver.java index 298e684c96..a6e8ae48bf 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JarTypeSolver.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JarTypeSolver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JavaParserTypeSolver.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JavaParserTypeSolver.java index e9ef9c99f2..2dc860b1a5 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JavaParserTypeSolver.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JavaParserTypeSolver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -26,9 +26,9 @@ import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.resolution.Navigator; import com.github.javaparser.resolution.TypeSolver; +import com.github.javaparser.resolution.cache.Cache; import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration; import com.github.javaparser.resolution.model.SymbolReference; -import com.github.javaparser.symbolsolver.cache.Cache; import com.github.javaparser.symbolsolver.cache.GuavaCache; import com.github.javaparser.symbolsolver.javaparsermodel.JavaParserFacade; import com.github.javaparser.symbolsolver.utils.FileUtils; diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/MemoryTypeSolver.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/MemoryTypeSolver.java index 28f73d83d1..c3c850e129 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/MemoryTypeSolver.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/MemoryTypeSolver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ReflectionTypeSolver.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ReflectionTypeSolver.java index 686104917c..7b7f333cce 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ReflectionTypeSolver.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ReflectionTypeSolver.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/TypeSolverBuilder.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/TypeSolverBuilder.java index 440d6e0154..8133f0396d 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/TypeSolverBuilder.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/TypeSolverBuilder.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/utils/FileUtils.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/utils/FileUtils.java index ce23237732..e9da0c01b2 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/utils/FileUtils.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/utils/FileUtils.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/utils/SymbolSolverCollectionStrategy.java b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/utils/SymbolSolverCollectionStrategy.java index fbffe0f79e..6a32fc65d8 100644 --- a/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/utils/SymbolSolverCollectionStrategy.java +++ b/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/utils/SymbolSolverCollectionStrategy.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/pom.xml b/javaparser-symbol-solver-testing/pom.xml index d119a12a73..52aeb0c547 100644 --- a/javaparser-symbol-solver-testing/pom.xml +++ b/javaparser-symbol-solver-testing/pom.xml @@ -4,7 +4,7 @@ jmlparser-parent io.github.jmltoolkit - 3.25.6 + 3.25.8 4.0.0 @@ -179,7 +179,7 @@ org.hamcrest - hamcrest-library + hamcrest org.junit.jupiter diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/SlowTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/SlowTest.java index f48c71b7db..9d2e21d3da 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/SlowTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/SlowTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/ast/type/ClassOrInterfaceTypeTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/ast/type/ClassOrInterfaceTypeTest.java index e7999b066a..19d3a34bc8 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/ast/type/ClassOrInterfaceTypeTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/ast/type/ClassOrInterfaceTypeTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/AssociableToASTTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/AssociableToASTTest.java index 5f7ff5c6ed..1e5bb7c073 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/AssociableToASTTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/AssociableToASTTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/HasAccessSpecifierTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/HasAccessSpecifierTest.java index 5c37dc1aa0..36339ef5ee 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/HasAccessSpecifierTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/HasAccessSpecifierTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationDeclarationTest.java index e1b3267976..cd2179bf3e 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationMemberDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationMemberDeclarationTest.java index 27fe4e6bb0..9a3e9d532f 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationMemberDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedAnnotationMemberDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedClassDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedClassDeclarationTest.java index 18ae432867..1d53235c6c 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedClassDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedClassDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedConstructorDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedConstructorDeclarationTest.java index e8b7b9f47a..5ef476f66b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedConstructorDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedConstructorDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedDeclarationTest.java index e34de2a00b..05a8ee0e91 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedEnumConstantDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedEnumConstantDeclarationTest.java index 6ad8c084d6..b8adc878d9 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedEnumConstantDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedEnumConstantDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedEnumDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedEnumDeclarationTest.java index 8b4ae8d93f..3e2238cd7a 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedEnumDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedEnumDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedFieldDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedFieldDeclarationTest.java index c91844bd70..3ee9ae2720 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedFieldDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedFieldDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedMethodDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedMethodDeclarationTest.java index 15cbf6cc23..0c7c18e355 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedMethodDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedMethodDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedMethodLikeDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedMethodLikeDeclarationTest.java index b8250f5125..6de25eaa57 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedMethodLikeDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedMethodLikeDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedParameterDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedParameterDeclarationTest.java index b787bf070a..1d50d9b7c2 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedParameterDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedParameterDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedPatternDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedPatternDeclarationTest.java index 2ab2062d75..e1f0346634 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedPatternDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedPatternDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedReferenceTypeDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedReferenceTypeDeclarationTest.java index b0ae413fc7..2870c9dafd 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedReferenceTypeDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedReferenceTypeDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeDeclarationTest.java index 52d23f18c2..4de14acc09 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeParameterDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeParameterDeclarationTest.java index 9824eeeba3..fd83e9cb06 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeParameterDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeParameterDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeParametrizableTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeParametrizableTest.java index a63a903eef..9bd139c784 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeParametrizableTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedTypeParametrizableTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedValueDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedValueDeclarationTest.java index 540ed764cf..19fa157593 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedValueDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/resolution/declarations/ResolvedValueDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/AbstractSymbolResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/AbstractSymbolResolutionTest.java index 0ef0d12a87..5f03a54373 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/AbstractSymbolResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/AbstractSymbolResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -68,8 +68,7 @@ protected enum TestJdk { JDK15(15), JDK16(16), JDK17(17), - JDK18(17); - + JDK18(18); private final Integer major; diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/FindingAllFieldsTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/FindingAllFieldsTest.java index 18f7e68ce2..17d0e4c9d0 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/FindingAllFieldsTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/FindingAllFieldsTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue113Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue113Test.java index 718a8e9a74..fef42660eb 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue113Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue113Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue116Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue116Test.java index b558cb1bb5..4ced38dc89 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue116Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue116Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue128Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue128Test.java index cbdd1bace2..30e749f004 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue128Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue128Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1364Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1364Test.java index 6f93f3f19b..4bd0e923f5 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1364Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1364Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1370Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1370Test.java index 69f9b38764..8f97ab3121 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1370Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1370Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue144Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue144Test.java index 81f71271a0..5ac17bd6e2 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue144Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue144Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1456Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1456Test.java index e91faf3ca5..c8a5f606aa 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1456Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1456Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1479Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1479Test.java index e0f9ac80bf..02954972f9 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1479Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1479Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1480Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1480Test.java index 524a76a40b..7fa8a10891 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1480Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1480Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1485Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1485Test.java index 63770a4824..2bcdaeb3ad 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1485Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1485Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1491Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1491Test.java index 8e82b646ea..2664f2264d 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1491Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1491Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1511Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1511Test.java index efdf15523b..6876bd0408 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1511Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1511Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1518Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1518Test.java index 8c50d2d54e..c69a63b6b0 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1518Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1518Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1526Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1526Test.java index 3ce5f9d215..b024e99bc3 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1526Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1526Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue156Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue156Test.java index 87fae4c32a..4b04c8f734 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue156Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue156Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1574Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1574Test.java index 2742fae9be..70ff5321e7 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1574Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1574Test.java @@ -1,23 +1,23 @@ -/* - * Copyright (C) 2013-2023 The JavaParser Team. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - */ - +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.symbolsolver; import com.github.javaparser.StaticJavaParser; @@ -35,83 +35,74 @@ public class Issue1574Test { private static final String LINE_FILE = "src/test/resources/issue1574/Comment.java"; private static final String BLOCK_FILE = "src/test/resources/issue1574/BlockComment.java"; private static final String ORPHAN_FILE = "src/test/resources/issue1574/ClassWithOrphanComments.java"; - @Test - void removeAllCommentsBeforePackageLine() throws Exception { + void removeAllCommentsBeforePackageLine() throws Exception{ CompilationUnit cu = StaticJavaParser.parse(new File(LINE_FILE)); - for (Comment child : cu.getComments()) { + for(Comment child: cu.getComments()){ child.remove(); } - assertEquals(0, cu.getComments().size()); + assertEquals(0,cu.getComments().size()); assertFalse(cu.getComment().isPresent()); } - @Test - void removeAllCommentsBeforePackageBlock() throws Exception { + void removeAllCommentsBeforePackageBlock() throws Exception{ CompilationUnit cu = StaticJavaParser.parse(new File(BLOCK_FILE)); - for (Comment child : cu.getComments()) { + for(Comment child: cu.getComments()){ child.remove(); } - assertEquals(0, cu.getComments().size()); + assertEquals(0,cu.getComments().size()); assertFalse(cu.getComment().isPresent()); } - @Test - void getAllContainedCommentBeforePackageDeclarationLine() throws Exception { + void getAllContainedCommentBeforePackageDeclarationLine() throws Exception{ CompilationUnit cu = StaticJavaParser.parse(new File(LINE_FILE)); List comments = cu.getAllContainedComments(); - assertEquals(2, comments.size()); + assertEquals(2,comments.size()); } - @Test - void getAllContainedCommentBeforePackageDeclarationBlock() throws Exception { + void getAllContainedCommentBeforePackageDeclarationBlock() throws Exception{ CompilationUnit cu = StaticJavaParser.parse(new File(BLOCK_FILE)); List comments = cu.getAllContainedComments(); - assertEquals(2, comments.size()); + assertEquals(2,comments.size()); } - @Test - void getAllCommentBeforePackageDeclarationOrphan() throws Exception { + void getAllCommentBeforePackageDeclarationOrphan() throws Exception{ CompilationUnit cu = StaticJavaParser.parse(new File(ORPHAN_FILE)); List comments = cu.getAllContainedComments(); - assertEquals(6, comments.size()); + assertEquals(6,comments.size()); } - @Test - void getOrphanComments() throws Exception { + void getOrphanComments() throws Exception{ CompilationUnit cu = StaticJavaParser.parse(new File(LINE_FILE)); List comments = cu.getOrphanComments(); //The 2 first should be orphan comment while the third will be associated to the package - assertEquals(1, comments.size()); + assertEquals(1,comments.size()); } - @Test - void getOrphanCommentsBlock() throws Exception { + void getOrphanCommentsBlock() throws Exception{ CompilationUnit cu = StaticJavaParser.parse(new File(BLOCK_FILE)); List comments = cu.getOrphanComments(); //The 2 first should be orphan comment while the third will be associated to the package - assertEquals(1, comments.size()); + assertEquals(1,comments.size()); } - @Test - void getAllCommentBeforePackageDeclarationLine() throws Exception { + void getAllCommentBeforePackageDeclarationLine() throws Exception{ CompilationUnit cu = StaticJavaParser.parse(new File(LINE_FILE)); List comments = cu.getComments(); - assertEquals(3, comments.size()); + assertEquals(3,comments.size()); } - @Test - void getAllCommentBeforePackageDeclarationBlock() throws Exception { + void getAllCommentBeforePackageDeclarationBlock() throws Exception{ CompilationUnit cu = StaticJavaParser.parse(new File(BLOCK_FILE)); List comments = cu.getComments(); - assertEquals(3, comments.size()); + assertEquals(3,comments.size()); } } diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1599Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1599Test.java index bddb4baa44..2fc8dd7532 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1599Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1599Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1668Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1668Test.java index 62fe737215..cc0f8d1731 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1668Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1668Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1713Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1713Test.java index c47bd6d2d2..7c14259030 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1713Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1713Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1726Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1726Test.java index a9df802d2a..bba46132e2 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1726Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1726Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1757Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1757Test.java index f1bb7c6836..32b3d8f0de 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1757Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1757Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1769Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1769Test.java index ad02551e35..786b6fa637 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1769Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1769Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1774Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1774Test.java index 5d5a87e41f..beb8b916bd 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1774Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1774Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1814Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1814Test.java index 47231d64df..6203347d99 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1814Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1814Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1817Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1817Test.java index edcc49250b..e46d6a120b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1817Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1817Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1827Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1827Test.java index e973da9ef9..9c40b5c0e2 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1827Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1827Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue185Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue185Test.java index 6f583f2ab6..0f8a9b9b83 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue185Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue185Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1868Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1868Test.java index 743091c5bd..4409f39d40 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1868Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1868Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue186Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue186Test.java index 060bfe7511..26671fdf5e 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue186Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue186Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue18Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue18Test.java index dd33dde965..076b8f40f0 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue18Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue18Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1945Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1945Test.java index 69c5e41ede..2c860464c3 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1945Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1945Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1946Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1946Test.java index d57e3ab048..da1aef6835 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1946Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1946Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1950Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1950Test.java index 20facc91d9..14c450410a 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1950Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue1950Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue200Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue200Test.java index e2ce319e31..fd8721ae45 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue200Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue200Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2035Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2035Test.java index 6e12a5ba35..0025e83222 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2035Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2035Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2044Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2044Test.java index 606e2df65a..cab51f2ffa 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2044Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2044Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2062Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2062Test.java index ac40d25aba..64e87a5311 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2062Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2062Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2065Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2065Test.java index eba009233e..65b2395ea2 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2065Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2065Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2083Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2083Test.java index a7467e9482..35a726d29f 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2083Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2083Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2132Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2132Test.java index e0a6f14593..f04e4b439e 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2132Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2132Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2162Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2162Test.java index e799b19302..bc6d820b75 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2162Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2162Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2210Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2210Test.java index 22cb6dc76d..84a0d32c6a 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2210Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2210Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2236Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2236Test.java index 73c0b5d939..de85bbae85 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2236Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2236Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2259Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2259Test.java index d67f5a6331..dd173e6786 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2259Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2259Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2284Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2284Test.java index 89a676289d..ccd478fff9 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2284Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2284Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2289Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2289Test.java index 27c5591dcc..39dbce2fb0 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2289Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2289Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue228Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue228Test.java index 46550d43ff..0ae29569d6 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue228Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue228Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue232Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue232Test.java index 2e225dadb0..2164027933 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue232Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue232Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue235Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue235Test.java index 8dffc3477e..375295c603 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue235Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue235Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2360.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2360.java index 94e31e4426..39a58ae46c 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2360.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2360.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2362Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2362Test.java index cd887bb80b..c894a8e38b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2362Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2362Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2367Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2367Test.java index 63dd1eaef2..fea02f92ed 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2367Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2367Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2397Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2397Test.java index 3a6b1c4fd0..e8da302e6b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2397Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2397Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2406Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2406Test.java index 44cf31f7c7..c1ff84adf2 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2406Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2406Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue241Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue241Test.java index 2821f0f6ff..97fcab2bc8 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue241Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue241Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2477Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2477Test.java index 54dff5550b..efe95ab369 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2477Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2477Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2481Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2481Test.java index 58a1f667ce..0768866b2f 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2481Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2481Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2489Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2489Test.java index df19a85411..920b20184b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2489Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2489Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue251Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue251Test.java index dbc9680d79..00e7341d7e 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue251Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue251Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2595Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2595Test.java index fe0cacaca7..1c1aba2d97 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2595Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2595Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2602Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2602Test.java index a44e3f7b61..e2b8e55372 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2602Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2602Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2740Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2740Test.java index c386fce9d2..884bbfd904 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2740Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2740Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2764Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2764Test.java index 500d47b8f6..02c6f831a7 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2764Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2764Test.java @@ -1,23 +1,23 @@ -/* - * Copyright (C) 2013-2023 The JavaParser Team. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - */ - +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.symbolsolver; import com.github.javaparser.*; @@ -42,17 +42,17 @@ void setUp() { config.setSymbolResolver(new JavaSymbolSolver(typeSolver)); javaParser = new JavaParser(config); } - + @Test void resolveUnaryExpr() { - String code = + String code = "class A {" + - " void a() {" + - " int e;" + - " for(e++;;){}" + - " }" + - "}"; - + " void a() {" + + " int e;" + + " for(e++;;){}" + + " }" + + "}"; + ParseResult parseResult = javaParser.parse(ParseStart.COMPILATION_UNIT, Providers.provider(code)); assertTrue(parseResult.isSuccessful()); assertTrue(parseResult.getResult().isPresent()); diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue276Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue276Test.java index 6e90ebcba0..79510fdba4 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue276Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue276Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2781Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2781Test.java index 51a87aa322..a99eb22333 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2781Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2781Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2823Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2823Test.java index 5aa3d5b6aa..66438a50fb 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2823Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2823Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2878Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2878Test.java index b2e81893ea..6c8b51b953 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2878Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2878Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2909Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2909Test.java index fb5b0a0d29..5fb6e6f936 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2909Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2909Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2943Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2943Test.java index 98790ecaf8..d306650426 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2943Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2943Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2951Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2951Test.java index 66b7456541..bd9ead6ba0 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2951Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2951Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2953Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2953Test.java index b0acbd34b2..3d787b2e8a 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2953Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2953Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2987Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2987Test.java index 482ae072ba..95801f7ac9 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2987Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2987Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2995Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2995Test.java index bb14e65e67..92803c36eb 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2995Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue2995Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue300Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue300Test.java index 7aa0b12923..ee5c95aa3d 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue300Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue300Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3024Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3024Test.java index e5dc9e8914..6229d984b9 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3024Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3024Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3028Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3028Test.java index df36ea15e6..d45a2ad6e1 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3028Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3028Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3030Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3030Test.java index 4ee18cfec5..5e27c4864f 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3030Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3030Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3038Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3038Test.java index 738e557762..f352663b62 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3038Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3038Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3045Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3045Test.java index 08b8848438..17ca4b4426 100755 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3045Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3045Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3083Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3083Test.java index f81e8cc30c..088bbdf377 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3083Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3083Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3087Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3087Test.java index a455daee65..800d014bdf 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3087Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3087Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3099Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3099Test.java index 40a609e479..91da12c3db 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3099Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3099Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3112Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3112Test.java index e1262097c9..14bd496a64 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3112Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3112Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3136Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3136Test.java index bd76844ae8..66cca9a467 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3136Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3136Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue314Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue314Test.java index 959f0d8c38..54b221a376 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue314Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue314Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3159Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3159Test.java index 2f2b57ef36..1f532d6b63 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3159Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3159Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3173Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3173Test.java index e0bf14ddab..ebac1d4ef7 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3173Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3173Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3184Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3184Test.java old mode 100755 new mode 100644 index dda4828696..ef4e2dc3c5 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3184Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3184Test.java @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.symbolsolver; import static org.junit.jupiter.api.Assertions.assertFalse; diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3200Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3200Test.java index 87b2e7919b..c78d5c220b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3200Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3200Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3272Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3272Test.java index 0ee7bd79a8..2619aad9d9 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3272Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3272Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3278Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3278Test.java new file mode 100644 index 0000000000..c6d555dccc --- /dev/null +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3278Test.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.symbolsolver; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.EnabledForJreRange; +import org.junit.jupiter.api.condition.JRE; + +import com.github.javaparser.JavaParserAdapter; +import com.github.javaparser.ast.CompilationUnit; +import com.github.javaparser.ast.expr.ConditionalExpr; +import com.github.javaparser.ast.expr.MethodCallExpr; +import com.github.javaparser.resolution.types.ResolvedType; +import com.github.javaparser.symbolsolver.resolution.AbstractResolutionTest; + +public class Issue3278Test extends AbstractResolutionTest { + + @Test + void test() { + String code = + "public class Foo {\n" + + " public static void main(String[] args) {\n" + + " A a = null;\n" + + " m((a == null ? \"null\" : a.getB()));\n" + + " }\n" + + " void m(Comparable obj) {}\n" + + " }\n" + + "\n" + + " class A{\n" + + " private B b;\n" + + " public A(B b){\n" + + " this.b = b;\n" + + " }\n" + + " public B getB(){\n" + + " return b;\n" + + " }\n" + + " }\n" + + "\n" + + " class B implements Comparable{\n" + + "\n" + + " @Override\n" + + " public int compareTo(B o) {\n" + + " return 0;\n" + + " }\n" + + " }"; + + JavaParserAdapter parser = JavaParserAdapter.of(createParserWithResolver(defaultTypeSolver())); + + CompilationUnit cu = parser.parse(code); + + ConditionalExpr expr = cu.findFirst(ConditionalExpr.class).get(); + + assertEquals("java.lang.Comparable", expr.calculateResolvedType().describe()); + } +} diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3308Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3308Test.java index 4602313999..6f5b30500f 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3308Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3308Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue343Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue343Test.java index 8e6050a871..b84739a998 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue343Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue343Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue347Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue347Test.java index c45de1173b..af74e43524 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue347Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue347Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3614Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3614Test.java index 563f5765ba..6f0401e642 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3614Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3614Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue366Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue366Test.java index 419be74b19..2d26680f79 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue366Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue366Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3859Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3859Test.java index 420ef0b798..ff7e7bf297 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3859Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3859Test.java @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.symbolsolver; import com.github.javaparser.JavaParserAdapter; diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3866Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3866Test.java index a206fbcec2..30b4bd9190 100755 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3866Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3866Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3918Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3918Test.java index 205c452b00..4c3b2535e4 100755 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3918Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3918Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3951Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3951Test.java index 7e57d4df85..3fdb6cdaaa 100755 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3951Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3951Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3972Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3972Test.java new file mode 100755 index 0000000000..d86c66dc6e --- /dev/null +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3972Test.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.symbolsolver; + +import com.github.javaparser.JavaParserAdapter; +import com.github.javaparser.ParserConfiguration; +import com.github.javaparser.StaticJavaParser; +import com.github.javaparser.ast.CompilationUnit; +import com.github.javaparser.ast.expr.MethodCallExpr; +import com.github.javaparser.symbolsolver.resolution.AbstractResolutionTest; +import com.github.javaparser.symbolsolver.resolution.typesolvers.ReflectionTypeSolver; + +import static org.junit.jupiter.api.Assertions.assertNotNull; + +import org.junit.jupiter.api.Test; + +public class Issue3972Test extends AbstractResolutionTest { + + @Test + void test() { + JavaParserAdapter parser = JavaParserAdapter.of(createParserWithResolver(defaultTypeSolver())); + + CompilationUnit cu = parser.parse( + "class C {\n" + + " void f() throws NoSuchMethodException {\n" + + " Class cls = getClass();\n" + + " cls.getSuperclass().getSuperclass().toString();\n" + + " }\n" + + "}" + ); + + for (MethodCallExpr methodCallExpr : cu.findAll(MethodCallExpr.class)) { + methodCallExpr.getScope().ifPresent(s -> { + String type = s.calculateResolvedType().describe(); + assertNotNull(type); + }); + } + } + +} diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3976Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3976Test.java old mode 100755 new mode 100644 index 6016e0cb0e..fc41913d49 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3976Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue3976Test.java @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.symbolsolver; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue4037Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue4037Test.java index 0b4b8cc79e..94d63e168a 100755 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue4037Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue4037Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue4047Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue4047Test.java new file mode 100755 index 0000000000..081f75ea9a --- /dev/null +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue4047Test.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + +package com.github.javaparser.symbolsolver; + +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertEquals; + +import java.util.List; + +import org.junit.jupiter.api.Test; + +import com.github.javaparser.JavaParserAdapter; +import com.github.javaparser.StaticJavaParser; +import com.github.javaparser.ast.CompilationUnit; +import com.github.javaparser.ast.expr.MethodCallExpr; +import com.github.javaparser.ast.expr.MethodReferenceExpr; +import com.github.javaparser.ast.visitor.VoidVisitorAdapter; +import com.github.javaparser.symbolsolver.resolution.AbstractResolutionTest; +import com.github.javaparser.symbolsolver.resolution.typesolvers.CombinedTypeSolver; +import com.github.javaparser.symbolsolver.resolution.typesolvers.ReflectionTypeSolver; + +public class Issue4047Test extends AbstractResolutionTest { + + @Test + void test() { + + String code = + "import static java.lang.String.valueOf;\n" + + "public class MyClass { \n" + + " void f() { \n" + + " Long Integer = null; \n" + + " Integer.intValue(); \n" + + " valueOf(Integer); \n" + + " } \n" + + "} \n"; + + JavaParserAdapter parser = JavaParserAdapter.of(createParserWithResolver(defaultTypeSolver())); + CompilationUnit cu = parser.parse(code); + + List exprs = cu.findAll(MethodCallExpr .class); + + assertEquals("java.lang.Long.intValue()", exprs.get(0).resolve().getQualifiedSignature()); + assertEquals("java.lang.String.valueOf(java.lang.Object)", exprs.get(1).resolve().getQualifiedSignature()); + } +} diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue4124Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue4124Test.java index d86a1b7390..6fc3994368 100755 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue4124Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue4124Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue546Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue546Test.java index e02badc946..92dd6dae1e 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue546Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue546Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue84Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue84Test.java index da62f12a99..f33d207752 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue84Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/Issue84Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/JavaParserAPIIntegrationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/JavaParserAPIIntegrationTest.java index f78d54d04d..9b5fa7a09b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/JavaParserAPIIntegrationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/JavaParserAPIIntegrationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -22,8 +22,10 @@ package com.github.javaparser.symbolsolver; import com.github.javaparser.JavaParser; +import com.github.javaparser.JavaParserAdapter; import com.github.javaparser.ParseStart; import com.github.javaparser.ParserConfiguration; +import com.github.javaparser.ParserConfiguration.LanguageLevel; import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.body.*; import com.github.javaparser.resolution.TypeSolver; @@ -44,6 +46,8 @@ import static com.github.javaparser.Providers.provider; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; class JavaParserAPIIntegrationTest extends AbstractSymbolResolutionTest { @@ -176,5 +180,105 @@ void parameterDeclarationResolve() throws IOException { Parameter declaration = methodDeclaration.getParameter(0); ResolvedParameterDeclaration resolvedDeclaration = declaration.resolve(); } - + + @Test + void resolveParameterDeclarationOnConstructor() throws IOException { + String code = + "class Foo {\n" + + " String baz;\n" + + " Foo(String baz){\n" + + " this.baz = baz;\n" + + " }" + + "}"; + ParserConfiguration parserConfiguration = new ParserConfiguration(); + parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); + JavaParserAdapter parser = JavaParserAdapter.of(new JavaParser(parserConfiguration)); + CompilationUnit cu = parser.parse(code); + Parameter parameter = cu.findFirst(Parameter.class).get(); + ResolvedParameterDeclaration resolvedParameterDeclaration = parameter.resolve(); + assertEquals("java.lang.String",resolvedParameterDeclaration.describeType()); + assertTrue(resolvedParameterDeclaration.isParameter()); + } + + @Test + void resolveParameterDeclarationOnMethodDeclaration() throws IOException { + String code = + "class Foo {\n" + + " void m(String bar) {}\n" + + "}"; + ParserConfiguration parserConfiguration = new ParserConfiguration(); + parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); + JavaParserAdapter parser = JavaParserAdapter.of(new JavaParser(parserConfiguration)); + CompilationUnit cu = parser.parse(code); + Parameter parameter = cu.findFirst(Parameter.class).get(); + ResolvedParameterDeclaration resolvedParameterDeclaration = parameter.resolve(); + assertEquals("java.lang.String",resolvedParameterDeclaration.describeType()); + assertTrue(resolvedParameterDeclaration.isParameter()); + } + + @Test() + void resolveParameterDeclarationOnRecordDeclaration() throws IOException { + String code = "record Point(Integer x) { }"; + ParserConfiguration parserConfiguration = new ParserConfiguration().setLanguageLevel(LanguageLevel.JAVA_16); + parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); + JavaParserAdapter parser = JavaParserAdapter.of(new JavaParser(parserConfiguration)); + CompilationUnit cu = parser.parse(code); + Parameter parameter = cu.findFirst(Parameter.class).get(); + // TODO Fixme when the record declarations are resolved. + assertThrows(UnsupportedOperationException.class, () -> parameter.resolve()); +// assertEquals("java.lang.Integer",parameter.resolve().describeType()); + } + + @Test() + void resolveParameterDeclarationOnCatchClauseExpr() throws IOException { + String code = + "class Foo {\n" + + " void m() {\n" + + " try {\n" + + " throw new java.io.FileNotFoundException();\n" + + " } catch (java.io.IOException ioe) {}\n" + + " }\n" + + "}"; + ParserConfiguration parserConfiguration = new ParserConfiguration(); + parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); + JavaParserAdapter parser = JavaParserAdapter.of(new JavaParser(parserConfiguration)); + CompilationUnit cu = parser.parse(code); + Parameter parameter = cu.findFirst(Parameter.class).get(); + ResolvedParameterDeclaration resolvedParameterDeclaration = parameter.resolve(); + assertEquals("java.io.IOException",resolvedParameterDeclaration.describeType()); + assertTrue(resolvedParameterDeclaration.isParameter()); + } + + @Test() + void resolveParameterDeclarationOnLambdaExprWithTypeInference() throws IOException { + String code = + "class Foo {\n" + + " java.util.function.Consumer consumer = item -> {};\n" + + "}"; + ParserConfiguration parserConfiguration = new ParserConfiguration(); + parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); + JavaParserAdapter parser = JavaParserAdapter.of(new JavaParser(parserConfiguration)); + CompilationUnit cu = parser.parse(code); + Parameter parameter = cu.findFirst(Parameter.class).get(); + ResolvedParameterDeclaration resolvedParameterDeclaration = parameter.resolve(); + assertEquals("java.lang.Integer",resolvedParameterDeclaration.describeType()); + assertTrue(resolvedParameterDeclaration.isParameter()); + } + + @Test() + void resolveParameterDeclarationOnLambdaExprWithoutTypeInference() throws IOException { + String code = + "class Foo {\n" + + " java.util.function.Consumer consumer = (Long a) -> { System.out.println(a); };\n" + + "}"; + ParserConfiguration parserConfiguration = new ParserConfiguration(); + parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); + JavaParserAdapter parser = JavaParserAdapter.of(new JavaParser(parserConfiguration)); + CompilationUnit cu = parser.parse(code); + Parameter parameter = cu.findFirst(Parameter.class).get(); + ResolvedParameterDeclaration resolvedParameterDeclaration = parameter.resolve(); + assertEquals("java.lang.Long",resolvedParameterDeclaration.describeType()); + assertTrue(resolvedParameterDeclaration.isParameter()); + } + } diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/JavaSymbolSolverTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/JavaSymbolSolverTest.java index 5f1978a743..952e2f2025 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/JavaSymbolSolverTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/JavaSymbolSolverTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/PullRequest2398Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/PullRequest2398Test.java index a27b9fc27c..2e3339eba9 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/PullRequest2398Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/PullRequest2398Test.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/SolveMethodDeclaredInEnumTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/SolveMethodDeclaredInEnumTest.java index 67bd032af4..04dbce8ed6 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/SolveMethodDeclaredInEnumTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/SolveMethodDeclaredInEnumTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/GuavaCacheAdapterTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/GuavaCacheAdapterTest.java index bf5daea161..0da35793a6 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/GuavaCacheAdapterTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/GuavaCacheAdapterTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/InMemoryCacheTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/InMemoryCacheTest.java index fe3400a597..a2d75c203a 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/InMemoryCacheTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/InMemoryCacheTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/NoCacheTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/NoCacheTest.java index b7b2c4358d..ceabc60f29 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/NoCacheTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/cache/NoCacheTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/core/resolution/MethodUsageResolutionCapabilityTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/core/resolution/MethodUsageResolutionCapabilityTest.java index d75c528e1c..aa0953417f 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/core/resolution/MethodUsageResolutionCapabilityTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/core/resolution/MethodUsageResolutionCapabilityTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/core/resolution/TypeVariableResolutionCapabilityTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/core/resolution/TypeVariableResolutionCapabilityTest.java index 2b156b9cb5..ccae608459 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/core/resolution/TypeVariableResolutionCapabilityTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/core/resolution/TypeVariableResolutionCapabilityTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/ConvertToUsageTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/ConvertToUsageTest.java index 55fc314c7c..3668459e54 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/ConvertToUsageTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/ConvertToUsageTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/DifferentiateDotExpressionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/DifferentiateDotExpressionTest.java index b33a47f39b..f5dc9a3304 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/DifferentiateDotExpressionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/DifferentiateDotExpressionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacadeTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacadeTest.java index dba947733c..31a3d416c2 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacadeTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacadeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationContextTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationContextTest.java index a58752712e..c60c266e92 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationContextTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ClassOrInterfaceDeclarationContextTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/JavaParserTypeDeclarationAdapterTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/JavaParserTypeDeclarationAdapterTest.java old mode 100755 new mode 100644 index c0908fa726..3e2369d9fb --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/JavaParserTypeDeclarationAdapterTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/JavaParserTypeDeclarationAdapterTest.java @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.symbolsolver.javaparsermodel.contexts; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/MultiCatchMethodCallExprTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/MultiCatchMethodCallExprTest.java index 66716b2902..b5bd9826d7 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/MultiCatchMethodCallExprTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/MultiCatchMethodCallExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserAnnotationDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserAnnotationDeclarationTest.java index 6e88668054..9f087b6828 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserAnnotationDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserAnnotationDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserAnonymousClassDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserAnonymousClassDeclarationTest.java index 7cd3714976..5ca36a3e9a 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserAnonymousClassDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserAnonymousClassDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserClassDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserClassDeclarationTest.java index fa839441c8..2a79bd45fb 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserClassDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserClassDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserEnumDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserEnumDeclarationTest.java index a08267c399..e1004dfd67 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserEnumDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserEnumDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserFieldDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserFieldDeclarationTest.java index 5220d5fd71..53dfee03f7 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserFieldDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserFieldDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserInterfaceDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserInterfaceDeclarationTest.java index 30f6cf9f04..f0eb11b2c1 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserInterfaceDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserInterfaceDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserMethodDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserMethodDeclarationTest.java index c3698ca814..468fba6867 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserMethodDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserMethodDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserParameterDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserParameterDeclarationTest.java index a8faf7c6de..362f686c16 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserParameterDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserParameterDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserPatternDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserPatternDeclarationTest.java index 7fa5bf6329..581f20972a 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserPatternDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserPatternDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserSymbolDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserSymbolDeclarationTest.java index 76da76e9b5..a9af0ad228 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserSymbolDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserSymbolDeclarationTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeParameterTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeParameterTest.java index 8f7c270530..e8a25a6b76 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeParameterTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeParameterTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeVariableDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeVariableDeclarationTest.java index c49a1e85f5..f946650ed3 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeVariableDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserTypeVariableDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserVariableDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserVariableDeclarationTest.java index aeb0f0eb10..0c851f1796 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserVariableDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserVariableDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/Issue257Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/Issue257Test.java index ac2f8a053f..53b51a6973 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/Issue257Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/Issue257Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationDeclarationTest.java index d371c130cf..820696eea7 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationMemberDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationMemberDeclarationTest.java index 14603d6fe0..58cbcc390c 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationMemberDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistAnnotationMemberDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistClassDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistClassDeclarationTest.java index 14e4661305..5dd66e668b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistClassDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistClassDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistConstructorDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistConstructorDeclarationTest.java index dd2f28f983..a2404c2934 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistConstructorDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistConstructorDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumConstantDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumConstantDeclarationTest.java index fd0cc2b9ae..1793e01d3d 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumConstantDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumConstantDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumDeclarationTest.java index 5441807a23..2150bc086d 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistEnumDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFieldDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFieldDeclarationTest.java index b7b0a59c5f..b9e7b06948 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFieldDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistFieldDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistInterfaceDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistInterfaceDeclarationTest.java index ffd393ff78..c6b0662f2b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistInterfaceDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistInterfaceDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodDeclarationTest.java index 620db74c9b..234d742c52 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistMethodDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistParameterDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistParameterDeclarationTest.java index 8a1415086a..4763af0781 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistParameterDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistParameterDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeDeclarationAdapterTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeDeclarationAdapterTest.java index 0dc6403991..fa6c0181c3 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeDeclarationAdapterTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeDeclarationAdapterTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeParameterDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeParameterDeclarationTest.java index 3d4f5e5d90..0752671e05 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeParameterDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/JavassistTypeParameterDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/AbstractClassDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/AbstractClassDeclarationTest.java index 22fd674796..4189c1d290 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/AbstractClassDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/AbstractClassDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/AbstractTypeDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/AbstractTypeDeclarationTest.java index a9966fb559..93c93eaf18 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/AbstractTypeDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/AbstractTypeDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/FunctionInterfaceLogicTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/FunctionInterfaceLogicTest.java index 870c3e5811..81c9a45c9d 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/FunctionInterfaceLogicTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/FunctionInterfaceLogicTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/InferenceContextTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/InferenceContextTest.java index ceb7feb597..1404f96111 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/InferenceContextTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/InferenceContextTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/MethodResolutionCapabilityTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/MethodResolutionCapabilityTest.java index 92558c3532..474c02cd1c 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/MethodResolutionCapabilityTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/MethodResolutionCapabilityTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/resolution/SymbolReferenceTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/resolution/SymbolReferenceTest.java index fc94b4af10..a7d7abd0ed 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/resolution/SymbolReferenceTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/resolution/SymbolReferenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ArrayTypeTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ArrayTypeTest.java index 9f46d696ea..12975f32b2 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ArrayTypeTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ArrayTypeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/LazyTypeTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/LazyTypeTest.java index a459b95dae..9a7205ce86 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/LazyTypeTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/LazyTypeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/NullTypeTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/NullTypeTest.java index 52012a4394..d899fd47c3 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/NullTypeTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/NullTypeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/PrimitiveTypeTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/PrimitiveTypeTest.java index 5dabbb4196..6165051b65 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/PrimitiveTypeTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/PrimitiveTypeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ReferenceTypeTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ReferenceTypeTest.java index 1c566f4c2c..0edd9128ec 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ReferenceTypeTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ReferenceTypeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/TypeVariableUsageTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/TypeVariableUsageTest.java index 28a0865542..7a576239f4 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/TypeVariableUsageTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/TypeVariableUsageTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/VoidTypeTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/VoidTypeTest.java index 7e458039d1..2c74127920 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/VoidTypeTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/VoidTypeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/WildcardUsageTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/WildcardUsageTest.java index e2bab24f35..f71db4e52e 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/WildcardUsageTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/WildcardUsageTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationDeclarationTest.java index 30d506f1b8..207e4966e5 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionAnnotationDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassDeclarationTest.java index 7e5e7f9012..5bda8df705 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionClassDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumDeclarationTest.java index c2d7783ca6..0e0a33c2a7 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionEnumDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFieldDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFieldDeclarationTest.java index 230317b7e5..c4bcce9e25 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFieldDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionFieldDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionInterfaceDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionInterfaceDeclarationTest.java index 9b29c9fe89..1325562dc3 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionInterfaceDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionInterfaceDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodDeclarationTest.java index 304b30176e..9ec26896e0 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionMethodDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionParameterDeclarationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionParameterDeclarationTest.java index 6a7c481724..749d394a3d 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionParameterDeclarationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionParameterDeclarationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionTestObject.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionTestObject.java index 968a9e924b..6b5e305ccb 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionTestObject.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionTestObject.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AbstractResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AbstractResolutionTest.java index d2e0293125..7d1eb747d6 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AbstractResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AbstractResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseJavaParserTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseJavaParserTest.java index f0df2328be..ce0914c4fb 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseJavaParserTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseJavaParserTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseJavaSymbolSolver060Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseJavaSymbolSolver060Test.java index 897d3fc244..9451bf7944 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseJavaSymbolSolver060Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseJavaSymbolSolver060Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseNewJavaParserHelpersTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseNewJavaParserHelpersTest.java index 781fdf3a4a..b8e85a4433 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseNewJavaParserHelpersTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseNewJavaParserHelpersTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseNewJavaParserTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseNewJavaParserTest.java index 16cd2b69d2..8d2ff30584 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseNewJavaParserTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnalyseNewJavaParserTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnnotationsResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnnotationsResolutionTest.java index 60aa366ae3..6a2cd94333 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnnotationsResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnnotationsResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -300,7 +300,7 @@ void solveJavassistMetaAnnotation() throws IOException { AnnotationExpr annotationExpr = method.getAnnotation(0); // resolve annotation expression @Test - JavassistAnnotationDeclaration resolved = (JavassistAnnotationDeclaration) annotationExpr.resolve(); + ResolvedAnnotationDeclaration resolved = annotationExpr.resolve(); // check that the annotation @Test has the annotations @Target and @Retention, but not @Documented assertEquals("org.junit.Test", resolved.getQualifiedName()); diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnonymousClassesResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnonymousClassesResolutionTest.java index d9f547955f..5542909ce0 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnonymousClassesResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/AnonymousClassesResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ArrayExprTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ArrayExprTest.java index d37b4acc32..7b711624d7 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ArrayExprTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ArrayExprTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/CompilationUnitContextResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/CompilationUnitContextResolutionTest.java index fb7a64591a..0fa5dc9445 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/CompilationUnitContextResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/CompilationUnitContextResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ConditionalExprTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ConditionalExprTest.java index bcecdddc56..06987a51ef 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ConditionalExprTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ConditionalExprTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ConstructorsResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ConstructorsResolutionTest.java index 2e1b09dd2b..9f32e91122 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ConstructorsResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ConstructorsResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ContextTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ContextTest.java index 7110c15c9f..a0ea957aca 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ContextTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ContextTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/DefaultPackageTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/DefaultPackageTest.java index d3d4a1a726..a50da8dbbc 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/DefaultPackageTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/DefaultPackageTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/EnumLiteralsInAnnotatedClassTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/EnumLiteralsInAnnotatedClassTest.java index 8f3c9169e5..7fea0b9817 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/EnumLiteralsInAnnotatedClassTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/EnumLiteralsInAnnotatedClassTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/EnumResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/EnumResolutionTest.java index 5207e5d8da..98cf60ecd7 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/EnumResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/EnumResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ExprResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ExprResolutionTest.java index 56918848f8..c60413af6d 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ExprResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ExprResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/FieldAccessExprResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/FieldAccessExprResolutionTest.java index df37a4a017..271f9488ab 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/FieldAccessExprResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/FieldAccessExprResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/FieldsResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/FieldsResolutionTest.java index d7a345384c..252f46750a 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/FieldsResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/FieldsResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/GenericsResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/GenericsResolutionTest.java index cdc3ed0b57..93026273e2 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/GenericsResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/GenericsResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ImplementedOrExtendedTypeResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ImplementedOrExtendedTypeResolutionTest.java index e45a254111..bc97d2e035 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ImplementedOrExtendedTypeResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ImplementedOrExtendedTypeResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/InstanceOfTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/InstanceOfTest.java index 667ca576a5..70e7bef6c3 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/InstanceOfTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/InstanceOfTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/InternalClassInInterfaceTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/InternalClassInInterfaceTest.java index 22a07046d5..22406cd525 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/InternalClassInInterfaceTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/InternalClassInInterfaceTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/JavaParserFacadeResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/JavaParserFacadeResolutionTest.java index f2dc4853bb..47240ba0f4 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/JavaParserFacadeResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/JavaParserFacadeResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -27,6 +27,7 @@ import org.junit.jupiter.api.Test; import com.github.javaparser.JavaParser; +import com.github.javaparser.JavaParserAdapter; import com.github.javaparser.ParseStart; import com.github.javaparser.ParserConfiguration; import com.github.javaparser.StringProvider; @@ -36,6 +37,7 @@ import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.MethodCallExpr; import com.github.javaparser.ast.expr.NameExpr; +import com.github.javaparser.ast.expr.ObjectCreationExpr; import com.github.javaparser.ast.stmt.CatchClause; import com.github.javaparser.ast.type.Type; import com.github.javaparser.resolution.MethodUsage; @@ -293,6 +295,29 @@ void resolveTypeParameterFromPrimitiveArrayArgumentOnNonGenericExpectedParameter assertEquals("java.util.OptionalDouble", resolvedType.describe()); } + + @Test + void resolveMethodTypeParametersUsingVariadicArgument() { + String sourceCode = + "import java.io.BufferedInputStream;\n" + + "import java.io.IOException;\n" + + "import java.nio.file.Files;\n" + + "import java.nio.file.OpenOption;\n" + + "import java.nio.file.Path;\n" + + "\n" + + "public class Test {\n" + + " public void write(final Path path, final OpenOption... options) throws IOException {\n" + + " BufferedInputStream in = new BufferedInputStream(Files.newInputStream(path, options));\n" + + " }\n" + + "}"; + + JavaParserAdapter parser = JavaParserAdapter.of(createParserWithResolver(defaultTypeSolver())); + CompilationUnit cu = parser.parse(sourceCode); + + ObjectCreationExpr oce = cu.findFirst(ObjectCreationExpr.class).get(); + + assertEquals("java.io.BufferedInputStream", oce.calculateResolvedType().describe()); + } // See issue 3725 @Test diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/LambdaGenericResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/LambdaGenericResolutionTest.java index e2785b91d0..9b3874161c 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/LambdaGenericResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/LambdaGenericResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2023 The JavaParser Team. + * Copyright (C) 2011, 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/LambdaResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/LambdaResolutionTest.java index 50b9e16d1e..61b63adc83 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/LambdaResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/LambdaResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodDescriptorTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodDescriptorTest.java index 3ba4ed07f3..ab3fdedb3e 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodDescriptorTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodDescriptorTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodLikeSignaturesTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodLikeSignaturesTest.java index 2e3d5609c6..2ea9257382 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodLikeSignaturesTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodLikeSignaturesTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodReferenceResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodReferenceResolutionTest.java index 24f0aa9c66..cf13288613 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodReferenceResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodReferenceResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionLogicTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionLogicTest.java index 334482e134..7c36beae59 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionLogicTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionLogicTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionTest.java index 94db902823..7eff0aa8d4 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionWithJavassistTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionWithJavassistTest.java index 051c7c9154..b476627df3 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionWithJavassistTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/MethodsResolutionWithJavassistTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/NotQuiteCyclicParentTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/NotQuiteCyclicParentTest.java index 5667cf2c8e..066aef4edc 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/NotQuiteCyclicParentTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/NotQuiteCyclicParentTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/PolyExpressionResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/PolyExpressionResolutionTest.java index 4daf634d0d..d1c0689877 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/PolyExpressionResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/PolyExpressionResolutionTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/QualifiedNameResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/QualifiedNameResolutionTest.java index 235dfbe2fd..b0b126ff87 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/QualifiedNameResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/QualifiedNameResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ReferenceTypeResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ReferenceTypeResolutionTest.java index b36687214f..499d063978 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ReferenceTypeResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ReferenceTypeResolutionTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/StatementContextResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/StatementContextResolutionTest.java index ac732a26ab..c334aff35d 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/StatementContextResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/StatementContextResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverTest.java index 45479ae536..80a930d64b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistClassTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistClassTest.java index 8409268c2a..1536849ac0 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistClassTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistClassTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistEnumTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistEnumTest.java index d7f75e7375..f61df85a2f 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistEnumTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistEnumTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistInterfaceTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistInterfaceTest.java index c0968b4107..02c73284d7 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistInterfaceTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/SymbolSolverWithJavassistInterfaceTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeDescriptorTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeDescriptorTest.java index ca29527ccc..00a4e35a7b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeDescriptorTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeDescriptorTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeInClassWithAnnotationAncestorTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeInClassWithAnnotationAncestorTest.java index 55d8fe684c..874dca4395 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeInClassWithAnnotationAncestorTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeInClassWithAnnotationAncestorTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeResolutionWithSameNameTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeResolutionWithSameNameTest.java index 6ed7aa506c..30a1431422 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeResolutionWithSameNameTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/TypeResolutionWithSameNameTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/UnknownMethodsResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/UnknownMethodsResolutionTest.java index 476f338696..cc38d235cf 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/UnknownMethodsResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/UnknownMethodsResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/VariableResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/VariableResolutionTest.java index 0cab0dfda7..04038fa6a0 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/VariableResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/VariableResolutionTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/VariadicResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/VariadicResolutionTest.java index 8497886043..a8324f1ae3 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/VariadicResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/VariadicResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/VarTypeTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/VarTypeTest.java index 701d819db8..e445ac5f53 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/VarTypeTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/VarTypeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/BlockStmtContextResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/BlockStmtContextResolutionTest.java index 05bcf2a11c..e326056884 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/BlockStmtContextResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/BlockStmtContextResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/ClassOrInterfaceDeclarationContextResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/ClassOrInterfaceDeclarationContextResolutionTest.java index 2a3d25e257..70f254d5c3 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/ClassOrInterfaceDeclarationContextResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/ClassOrInterfaceDeclarationContextResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/CompilationUnitContextResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/CompilationUnitContextResolutionTest.java index 51b9a16b02..d5d3b2e6a3 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/CompilationUnitContextResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/CompilationUnitContextResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/EnumDeclarationContextResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/EnumDeclarationContextResolutionTest.java index f7d04b6745..3fef67e5e6 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/EnumDeclarationContextResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/EnumDeclarationContextResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/FieldAccessContextResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/FieldAccessContextResolutionTest.java index cfce89b0a3..b3e22240c0 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/FieldAccessContextResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/FieldAccessContextResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/LambdaExprContextResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/LambdaExprContextResolutionTest.java index d1e2cb98f9..87822ad5c6 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/LambdaExprContextResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/LambdaExprContextResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/MethodCallExprContextResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/MethodCallExprContextResolutionTest.java index b5a3ecb6f3..e9480ea30e 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/MethodCallExprContextResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/MethodCallExprContextResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/MethodContextResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/MethodContextResolutionTest.java index 1655c8a4af..db90a9c705 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/MethodContextResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/MethodContextResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/declarations/JavaParserTypeParameterResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/declarations/JavaParserTypeParameterResolutionTest.java index 434b9a1b37..4543b38b95 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/declarations/JavaParserTypeParameterResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/declarations/JavaParserTypeParameterResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/logic/FunctionalInterfaceLogicTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/logic/FunctionalInterfaceLogicTest.java old mode 100755 new mode 100644 index 718d5f79ff..42d1132e6b --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/logic/FunctionalInterfaceLogicTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/logic/FunctionalInterfaceLogicTest.java @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.symbolsolver.resolution.logic; import static org.junit.jupiter.api.Assertions.assertFalse; diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/AbstractNameLogicTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/AbstractNameLogicTest.java index 2eeb540143..98798deead 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/AbstractNameLogicTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/AbstractNameLogicTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicDisambiguationTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicDisambiguationTest.java index a64d24e15b..f31853855b 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicDisambiguationTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicDisambiguationTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicTest.java index 037afefb45..73ee651832 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicTestingJss060Test.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicTestingJss060Test.java index a5c5836822..a4c2e488ba 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicTestingJss060Test.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogicTestingJss060Test.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/reflectionmodel/SymbolResolutionResolutionTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/reflectionmodel/SymbolResolutionResolutionTest.java index de8eab061e..31010d2a1e 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/reflectionmodel/SymbolResolutionResolutionTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/reflectionmodel/SymbolResolutionResolutionTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/LeastUpperBoundTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/LeastUpperBoundTest.java old mode 100755 new mode 100644 index d04ecec7e7..0332fa5b98 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/LeastUpperBoundTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/LeastUpperBoundTest.java @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.symbolsolver.resolution.typeinference; import static org.junit.jupiter.api.Assertions.*; diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SameAsBoundTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SameAsBoundTest.java index ebad25d742..a5b9f7998c 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SameAsBoundTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SameAsBoundTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SubtypeOfBoundTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SubtypeOfBoundTest.java index 4f4547784e..38c68f75ba 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SubtypeOfBoundTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/SubtypeOfBoundTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/ConstraintFormulaTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/ConstraintFormulaTest.java index 18d6ac752b..a87991c361 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/ConstraintFormulaTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/ConstraintFormulaTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/types/ResolvedArrayTypeTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/types/ResolvedArrayTypeTest.java index 09a79100a2..360bbd0985 100755 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/types/ResolvedArrayTypeTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/types/ResolvedArrayTypeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/types/ResolvedPrimitiveTypeTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/types/ResolvedPrimitiveTypeTest.java index fd4989271b..0e29b6b471 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/types/ResolvedPrimitiveTypeTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/types/ResolvedPrimitiveTypeTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AarTypeSolverTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AarTypeSolverTest.java index 64bd91a5e7..ea1e3cc312 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AarTypeSolverTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AarTypeSolverTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AbstractTypeSolverTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AbstractTypeSolverTest.java index b17bc22871..0bba0f00c0 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AbstractTypeSolverTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/AbstractTypeSolverTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ClassLoaderTypeSolverTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ClassLoaderTypeSolverTest.java index 6d1d6bfdc5..0dc47cf9c1 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ClassLoaderTypeSolverTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ClassLoaderTypeSolverTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/CombinedTypeSolverTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/CombinedTypeSolverTest.java index 5c30d95599..dbc3a431d8 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/CombinedTypeSolverTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/CombinedTypeSolverTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * @@ -22,9 +22,9 @@ package com.github.javaparser.symbolsolver.resolution.typesolvers; import com.github.javaparser.resolution.TypeSolver; +import com.github.javaparser.resolution.cache.Cache; import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration; import com.github.javaparser.resolution.model.SymbolReference; -import com.github.javaparser.symbolsolver.cache.Cache; import com.github.javaparser.symbolsolver.cache.InMemoryCache; import com.github.javaparser.symbolsolver.reflectionmodel.ReflectionClassDeclaration; import com.github.javaparser.symbolsolver.resolution.typesolvers.CombinedTypeSolver.ExceptionHandlers; diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JarTypeSolverTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JarTypeSolverTest.java index 352de14b4c..181d439cb2 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JarTypeSolverTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JarTypeSolverTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JavaParserTypeSolverTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JavaParserTypeSolverTest.java index 63547bb3b7..e2f6d63da4 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JavaParserTypeSolverTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/JavaParserTypeSolverTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/MemoryTypeSolverTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/MemoryTypeSolverTest.java index e43f0f821f..ca8234c586 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/MemoryTypeSolverTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/MemoryTypeSolverTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2023 The JavaParser Team. + * Copyright (C) 2013-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ReflectionTypeSolverTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ReflectionTypeSolverTest.java index 1ac9fa7c5e..f10c267e04 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ReflectionTypeSolverTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ReflectionTypeSolverTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/TypeSolverBuilderTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/TypeSolverBuilderTest.java index f942c4e3d6..8d596a344f 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/TypeSolverBuilderTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/TypeSolverBuilderTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/SomeClass.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/SomeClass.java index bf6e59d438..8feefc7392 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/SomeClass.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/SomeClass.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/TargetType.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/TargetType.java index 058404db94..9c10bb9175 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/TargetType.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/TargetType.java @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2013-2024 The JavaParser Team. + * + * This file is part of JavaParser. + * + * JavaParser can be used either under the terms of + * a) the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * b) the terms of the Apache License + * + * You should have received a copy of both licenses in LICENCE.LGPL and + * LICENCE.APACHE. Please refer to those files for details. + * + * JavaParser is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + */ + package com.github.javaparser.symbolsolver.testingclasses; import java.lang.annotation.ElementType; diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/UtilityClass.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/UtilityClass.java index ec33cadcb6..09273cd855 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/UtilityClass.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/testingclasses/UtilityClass.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/utils/LeanParserConfiguration.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/utils/LeanParserConfiguration.java index 50ca8cbcd3..cc220de803 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/utils/LeanParserConfiguration.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/utils/LeanParserConfiguration.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/utils/SymbolSolverCollectionStrategyTest.java b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/utils/SymbolSolverCollectionStrategyTest.java index c1a66affa2..695707a79f 100644 --- a/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/utils/SymbolSolverCollectionStrategyTest.java +++ b/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/utils/SymbolSolverCollectionStrategyTest.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015-2016 Federico Tomassetti - * Copyright (C) 2017-2023 The JavaParser Team. + * Copyright (C) 2017-2024 The JavaParser Team. * * This file is part of JavaParser. * diff --git a/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/comments/BlockComment.java b/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/comments/BlockComment.java index 5b21f1ff65..e4946b790a 100644 --- a/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/comments/BlockComment.java +++ b/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/comments/BlockComment.java @@ -29,7 +29,7 @@ *

* AST node that represent block comments. *

- * Block comments can has multi lines and are delimited by "/*" and + * Block comments can have multi lines and are delimited by "/*" and * "*/". * * @author Julio Vilmar Gesser diff --git a/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/comments/BlockComment.java b/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/comments/BlockComment.java index 68e4e84346..f6b8f15b37 100644 --- a/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/comments/BlockComment.java +++ b/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/comments/BlockComment.java @@ -28,7 +28,7 @@ *

* AST node that represent block comments. *

- * Block comments can has multi lines and are delimited by "/*" and + * Block comments can have multi lines and are delimited by "/*" and * "*/". * * @author Julio Vilmar Gesser diff --git a/jmlparser-jml-pretty/pom.xml b/jmlparser-jml-pretty/pom.xml index 44fb96f179..d7dce1c6c8 100644 --- a/jmlparser-jml-pretty/pom.xml +++ b/jmlparser-jml-pretty/pom.xml @@ -7,7 +7,7 @@ io.github.jmltoolkit jmlparser-parent - 3.25.6 + 3.25.8 jmlparser-jml-pretty diff --git a/jmlparser-jml-tests/pom.xml b/jmlparser-jml-tests/pom.xml index 86ab25ae08..fcb9cd4fdd 100644 --- a/jmlparser-jml-tests/pom.xml +++ b/jmlparser-jml-tests/pom.xml @@ -2,7 +2,7 @@ jmlparser-parent io.github.jmltoolkit - 3.25.6 + 3.25.8 4.0.0 @@ -121,6 +121,7 @@ org.hamcrest hamcrest-library + 2.2 test diff --git a/jmlparser-jml-tools/pom.xml b/jmlparser-jml-tools/pom.xml index 452b3a9c47..66f61f1adf 100644 --- a/jmlparser-jml-tools/pom.xml +++ b/jmlparser-jml-tools/pom.xml @@ -6,7 +6,7 @@ jmlparser-parent io.github.jmltoolkit - 3.25.6 + 3.25.8 jmlparser-jml-tools @@ -76,6 +76,7 @@ org.hamcrest hamcrest-library + 2.2 test diff --git a/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/JmlLintingConfig.java b/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/JmlLintingConfig.java index 98d5a41664..4fbd216bed 100644 --- a/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/JmlLintingConfig.java +++ b/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/JmlLintingConfig.java @@ -1,9 +1,14 @@ package com.github.jmlparser.lint; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + /** * @author Alexander Weigl * @version 1 (12/29/21) */ +@Data public class JmlLintingConfig { private boolean checkNameClashes = true; private boolean checkMissingNames = true; @@ -11,22 +16,6 @@ public class JmlLintingConfig { public JmlLintingConfig() { } - public boolean isCheckNameClashes() { - return checkNameClashes; - } - - public void setCheckNameClashes(boolean checkNameClashes) { - this.checkNameClashes = checkNameClashes; - } - - public boolean isCheckMissingNames() { - return checkMissingNames; - } - - public void setCheckMissingNames(boolean checkMissingNames) { - this.checkMissingNames = checkMissingNames; - } - public boolean isDisabled(LintRule lintRule) { return false; } diff --git a/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/JmlLintingFacade.java b/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/JmlLintingFacade.java index e6509e7ab7..3c719e9b3e 100644 --- a/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/JmlLintingFacade.java +++ b/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/JmlLintingFacade.java @@ -2,6 +2,7 @@ import com.github.javaparser.ast.Node; import com.github.jmlparser.lint.sarif.*; +import lombok.Getter; import org.jetbrains.annotations.NotNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -22,14 +23,13 @@ public class JmlLintingFacade { private static final String VERSION = JmlLintingFacade.class.getPackage().getImplementationVersion(); private static final String NAME = "JML-lint"; - private List linters; + @Getter + private final List linters; + private final JmlLintingConfig config; public JmlLintingFacade(JmlLintingConfig config) { linters = getLinter(config); - } - - public List getLinters() { - return linters; + this.config = config; } private Tool getSarifTool() { @@ -57,7 +57,7 @@ public void lint(LintProblemReporter reporter, Collection nodes) for (Node it : nodes) { for (LintRule linter : linters) { try { - linter.accept(it, reporter); + linter.accept(it, reporter, config); } catch (Exception e) { LOGGER.error("Error in linter: {}", linter.getClass().getName(), e); } diff --git a/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintProblem.java b/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintProblem.java index a1a549baef..fdfa7f08c3 100644 --- a/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintProblem.java +++ b/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintProblem.java @@ -4,95 +4,25 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.Objects; - /** * @author Alexander Weigl * @version 1 (13.10.22) */ -public final class LintProblem { - @NotNull - private final String level; - @NotNull - private final String message; - @Nullable - private final TokenRange location; - @Nullable - private final Throwable cause; - @Nullable - private final String category; - @NotNull - private final String ruleId; - +public record LintProblem( + @NotNull + String level, + @NotNull + String message, + @Nullable + TokenRange location, + @Nullable + Throwable cause, + @Nullable + String category, + @NotNull + String ruleId) { public LintProblem(@NotNull String level, @NotNull String message, @Nullable TokenRange location, @NotNull String ruleId) { this(level, message, location, null, null, ruleId); } - - public LintProblem(@NotNull String level, @NotNull String message, - @Nullable TokenRange location, @Nullable Throwable cause, @Nullable String category, @NotNull String ruleId) { - this.level = level; - this.message = message; - this.location = location; - this.cause = cause; - this.category = category; - this.ruleId = ruleId; - } - - - @NotNull - public String message() { - return message; - } - - @Nullable - public TokenRange location() { - return location; - } - - @Nullable - public Throwable cause() { - return cause; - } - - @NotNull - public String level() { - return level; - } - - @Nullable - public String category() { - return category; - } - - public String ruleId() { - return ruleId; - } - - @Override - public boolean equals(Object obj) { - if (obj == this) return true; - if (obj == null || obj.getClass() != this.getClass()) return false; - var that = (LintProblem) obj; - return Objects.equals(this.message, that.message) && - Objects.equals(this.location, that.location) && - Objects.equals(this.cause, that.cause) && - Objects.equals(this.level, that.level) && - Objects.equals(this.category, that.category); - } - - @Override - public int hashCode() { - return Objects.hash(message, location, cause, level, category); - } - - @Override - public String toString() { - return "LintProblem[" + - "message=" + message + ", " + - "location=" + location + ", " + - "cause=" + cause + ", " + - "level=" + level + ", " + - "category=" + category + ']'; - } } diff --git a/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintRule.java b/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintRule.java index 870c7d5eb2..7637747a89 100644 --- a/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintRule.java +++ b/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintRule.java @@ -11,5 +11,5 @@ public interface LintRule { String WARN = "WARN"; String ERROR = "ERROR"; - void accept(Node node, LintProblemReporter problemReporter); + void accept(Node node, LintProblemReporter problemReporter, JmlLintingConfig config); } diff --git a/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintRuleVisitor.java b/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintRuleVisitor.java index eb73e4ddeb..fe297064ce 100644 --- a/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintRuleVisitor.java +++ b/jmlparser-jml-tools/src/main/java/com/github/jmlparser/lint/LintRuleVisitor.java @@ -14,7 +14,7 @@ public abstract class LintRuleVisitor extends VoidVisitorAdapterio.github.jmltoolkit jmlparser-parent pom - 3.25.6 + 3.25.8 jmlparser-parent https://github.com/wadoon/jmlparser @@ -155,6 +155,10 @@ ${project.basedir}/jmlparser-jml-tests/target/site/jacoco/jacoco.xml, ${project.basedir}/javaparser-core-testing-bdd/target/site/jacoco/jacoco.xml, + 1.14.11 + -javaagent:${settings.localRepository}/net/bytebuddy/byte-buddy-agent/${byte-buddy.version}/byte-buddy-agent-${byte-buddy.version}.jar + 2024-01-01T00:00:00Z + @@ -206,7 +210,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.11.0 + 3.12.1 org.apache.maven.plugins @@ -267,18 +271,6 @@ maven-source-plugin 3.3.0 - - org.eluder.coveralls - coveralls-maven-plugin - 4.3.0 - - - javax.xml.bind - jaxb-api - 2.3.1 - - - org.jacoco jacoco-maven-plugin @@ -287,7 +279,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.6.0 + 3.6.3 ${java.version} @@ -301,9 +293,6 @@ org.apache.maven.plugins maven-site-plugin 3.12.1 - - - biz.aQute.bnd @@ -313,12 +302,12 @@ org.apache.maven.plugins maven-surefire-plugin - 3.2.1 + 3.2.3 org.codehaus.mojo exec-maven-plugin - 3.1.0 + 3.1.1 org.apache.maven.plugins @@ -328,12 +317,12 @@ org.codehaus.mojo build-helper-maven-plugin - 3.4.0 + 3.5.0 org.codehaus.mojo templating-maven-plugin - 1.0.0 + 3.0.0 org.apache.maven.plugins @@ -343,7 +332,7 @@ org.codehaus.mojo versions-maven-plugin - 2.16.1 + 2.16.2 false @@ -361,7 +350,7 @@ com.puppycrawl.tools checkstyle - 10.12.4 + 10.12.7 @@ -375,12 +364,12 @@ org.javassist javassist - 3.29.2-GA + 3.30.2-GA com.google.guava guava - 32.1.3-jre + 33.0.0-jre junit @@ -396,33 +385,49 @@ org.hamcrest - hamcrest-library + hamcrest 2.2 test org.junit.jupiter junit-jupiter-engine - 5.10.0 + 5.10.1 test org.junit.jupiter junit-jupiter-params - 5.10.0 + 5.10.1 test org.junit.vintage junit-vintage-engine - 5.10.0 + 5.10.1 test + + + org.hamcrest + hamcrest-core + + org.mockito mockito-inline - 4.8.0 + 4.11.0 test + + + net.bytebuddy + byte-buddy + ${byte-buddy.version} + + + net.bytebuddy + byte-buddy-agent + ${byte-buddy.version}