3341 Commits

Author SHA1 Message Date
Clément Fournier
d815c5d173 Update grammar changelog 2021-03-05 11:48:05 +01:00
Clément Fournier
24587163c9 Merge branch 'master' into pr/3159 2021-03-05 11:46:59 +01:00
Andreas Dangel
4bfd72e658 [java] Infinite loop when parsing invalid code nested in lambdas
- fixes #3117
- backports part of StatementExpression production from pmd7
2021-03-05 09:58:29 +01:00
Clément Fournier
a0e8107249 Fix #3145 - parse exception with local records 2021-03-04 07:48:39 +01:00
Clément Fournier
a2d1976db9 Merge branch 'master' into pr/2980 2021-03-01 15:42:08 +01:00
Andreas Dangel
e0de01ebe9 [maven-release-plugin] prepare for next development iteration 2021-02-27 09:44:05 +01:00
Andreas Dangel
0848e230d0 [maven-release-plugin] prepare release pmd_releases/6.32.0 2021-02-27 09:43:58 +01:00
Andreas Dangel
84ea5e04b4 Revert the changes - compare Nodes with == again 2021-02-26 20:59:35 +01:00
Andreas Dangel
7384a69d31 Merge branch 'master' into dogfood-6.30.0 2021-02-26 19:26:36 +01:00
Andreas Dangel
b576626e40 Merge pull request #3143 from adangel:issue-3089-property-spaces
[core] Trim property values #3143
2021-02-26 19:08:45 +01:00
Andreas Dangel
93a08052af Merge pull request #3139 from adangel:issue-3132-unused-static-import
[java] UnusedImports with static imports on subclasses (fixes #3132)
#3139
2021-02-26 19:07:00 +01:00
Andreas Dangel
1b5b7b8c87 Merge pull request #3138 from
adangel:issue-3133-invalid-log-message-format

[java] InvalidLogMessageFormat fix FP with StringFormattedMessage and
ParameterizedMessage #3138
2021-02-26 19:05:19 +01:00
Andreas Dangel
519fa61e9b Merge pull request #3137 from adangel:deprecations-for-3116
[java] Deprecation in AvoidUsingHardCodedIPRule #3137
2021-02-26 19:03:12 +01:00
Andreas Dangel
c5cc51db98 Merge pull request #3136 from
adangel:issue-2716-compare-objects-with-equals

[java] CompareObjectsWithEqualsRule: False positive with Enums #3136
2021-02-26 19:02:23 +01:00
Andreas Dangel
3bf497cca8 Merge pull request #3135 from adangel:issue-3101-parse-error
[java] NullPointerException when running PMD under JRE 11 (fixes #3101) #3135
2021-02-26 18:59:33 +01:00
Andreas Dangel
350d00cf6d Fix build 2021-02-26 16:17:37 +01:00
Andreas Dangel
27f007cb1f [core] Trim rule property values
- Most single-valued properties are trimmed
- Some types keep whitespaces, e.g. Character and Regex

Fixes #3089
2021-02-26 15:45:07 +01:00
Andreas Dangel
1f73ebc607 [java] Update test for #2977 2021-02-26 14:49:43 +01:00
Andreas Dangel
7d54b863d1 [java] Update rule doc of InvalidLogMessageFormat 2021-02-25 19:47:31 +01:00
Andreas Dangel
72b07cfa69 [java] CloseResource - make test sample compilable (#2977) 2021-02-25 18:50:04 +01:00
Andreas Dangel
5cad3c270d Fix NPE for interfaces 2021-02-25 18:24:32 +01:00
Andreas Dangel
ad1a210940 Fix compile error 2021-02-25 17:19:05 +01:00
Andreas Dangel
861a646d83 [java] UnusedImports with static imports on subclasses (fixes #3132) 2021-02-25 14:56:46 +01:00
Andreas Dangel
760e868931 [java] InvalidLogMessageFormat fix FP
with StringFormattedMessage and ParameterizedMessage
Fixes #3133
2021-02-25 14:22:30 +01:00
Andreas Dangel
29c56727a6 [java] Deprecation in AvoidUsingHardCodedIPRule
- protected and public members
- refs #3116
2021-02-25 11:57:20 +01:00
Andreas Dangel
7146e588d2 [java] CompareObjectsWithEqualsRule: False positive with Enums
- verifies #2716
2021-02-25 10:26:26 +01:00
Andreas Dangel
ba3dbd3d80 [java] NullPointerException when running PMD under JRE 11 (fixes #3101) 2021-02-25 09:36:24 +01:00
Andreas Dangel
a482aa3ae4 Merge branch 'master' into java-16-support 2021-02-19 09:20:09 +01:00
Andreas Dangel
7187e1d451 Apply suggestions from code review
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2021-02-19 09:18:31 +01:00
Andreas Dangel
2ec77ad02f [java] Remove support for Java 14 preview 2021-02-15 19:58:55 +01:00
Andreas Dangel
3b151e31c4 [java] JEP 397: Sealed Classes (Second Preview) for Java16 Preview 2021-02-15 19:33:36 +01:00
Andreas Dangel
8bc26f95aa [java] JEP 395: Records for Java16
- Renamed ASTRecordConstructorDeclaration to
  ASTCompactConstructorDeclaration to align naming to JLS
- ASTRecordDeclaration, ASTRecordComponentList, ASTRecordComponent,
  ASTRecordBody, ASTCompactConstructorDeclaration are not
  longer @Experimental
2021-02-14 19:42:59 +01:00
Clément Fournier
19eea5ae31 Use a compiled class instead, refs #2881 2021-02-13 22:26:08 +01:00
Clément Fournier
3195757425 Add test cases for #2881 2021-02-13 22:05:31 +01:00
Andreas Dangel
03731f8c16 [java] Remove more @Experimental for ASTTypePattern 2021-02-12 18:05:53 +01:00
Andreas Dangel
64b501e0f4 [java] Rename ASTTypeTestPattern -> ASTTypePattern, remove @Experimental
With JEP 394 / Java16, this production has been renamed.
Pattern Matching for Instanceof is now a standard feature,
therefore the AST node is not experimental anymore.
2021-02-12 12:54:06 +01:00
Andreas Dangel
8c755fabe2 [java] JEP 394: Pattern Matching for instanceof for Java16
The TypePattern now allows the final keyword
and Annotations. Pattern variables are now only
effectively final.
2021-02-12 12:44:08 +01:00
Andreas Dangel
87cdd60e39 [java] Add versions 16 and 16-preview, update asm 2021-02-12 09:27:10 +01:00
Andreas Dangel
2ea0328678 [maven-release-plugin] prepare for next development iteration 2021-01-30 18:04:17 +01:00
Andreas Dangel
7d6e6239c5 [maven-release-plugin] prepare release pmd_releases/6.31.0 2021-01-30 18:04:08 +01:00
Clément Fournier
aa8524ca4a Add tests for #2207 2021-01-25 14:08:06 +01:00
Andreas Dangel
f8c091b742 Merge pull request #3072 from oowekyala:deprecate-rules-631
[java] Deprecate some performance rules #3072
2021-01-22 12:00:22 +01:00
Andreas Dangel
1a030801f3 Merge pull request #3070 from oowekyala:issue3006-singularfield-npe
[java] Fix NPE in SingularFieldRule with concise resource syntax
2021-01-22 11:51:35 +01:00
Andreas Dangel
c69f7e96e6 Merge pull request #3066 from oowekyala:java-unused-names
[java] Make unused rules ignore some names #3066
2021-01-22 11:36:29 +01:00
Andreas Dangel
360283fdb6 Merge pull request #3065 from oowekyala:issue2876-ignored-annotation-bug
[java] Fix ignoredAnnotation property in UnusedPrivateField #3065
2021-01-21 18:24:20 +01:00
Andreas Dangel
0b2a727aae Merge pull request #3064 from
oowekyala:issue2454-typehelper-trim-whitespace

[java] Fix problem with whitespace in properties #3064
2021-01-21 18:20:05 +01:00
Andreas Dangel
41151d30e7 Merge pull request #3063 from oowekyala:issue3062-stream-close-resource
[java] Fix CloseResource FP with reassigned stream #3063
2021-01-21 18:05:22 +01:00
Andreas Dangel
8e42f6c9ba Merge pull request #3061 from oowekyala:typeres-fix-method-calls
[java] Fix method calls in type resolution #3061
2021-01-21 18:01:23 +01:00
Andreas Dangel
40bec489ed [java] Fix NPE if generic array type couldn't be resolved
Also add correct imports for GuardLogStatement tests
2021-01-21 16:42:31 +01:00
Andreas Dangel
175d535e9f Merge branch 'master' into pr-2968 2021-01-21 11:47:14 +01:00