7082 Commits

Author SHA1 Message Date
Andreas Dangel
183a322d7c [java] Fix compile errors after merge 2022-07-10 15:33:32 +02:00
Andreas Dangel
ffbe5b7378 Merge branch 'pmd6-java-19' into pmd7-java-19 2022-07-10 15:05:35 +02:00
Andreas Dangel
b197daf84e Apply fixes from review (#4038) 2022-07-10 14:29:03 +02:00
Andreas Dangel
092e3d4fc9 [java] Fix rules TooManyMethods and FinalFieldCouldBeStatic 2022-07-07 16:33:00 +02:00
Andreas Dangel
bd830daea0 Merge branch 'master' into pmd/7.0.x 2022-07-07 16:14:35 +02:00
Andreas Dangel
c83987f942 Merge pull request #3994 from 341816041:handling_issue_3729
[java] TooManyMethods - improve getter/setter detection (#3729) #3994
2022-07-07 15:59:33 +02:00
Andreas Dangel
13b55a8b9b [java] Verify that "when" can indeed still be used as identifier 2022-07-07 15:41:44 +02:00
Andreas Dangel
32a76bd602 [java] Remove language version 17-preview 2022-07-07 15:24:49 +02:00
Andreas Dangel
a5b68ddfcf [java] Add support for RecordPatterns
See JEP 405
2022-07-07 15:06:52 +02:00
Andreas Dangel
eeeccde494 [java] Update implementation for "Pattern Matching for switch"
See JEP 427
This is a preview feature
2022-07-07 15:03:20 +02:00
Andreas Dangel
eb53daa2c2 [java] Add new language versions 19 and 19-preview 2022-07-07 10:44:13 +02:00
Andreas Dangel
8f3c7ee71d [java] Improve TooManyMethods (#3994) 2022-07-07 10:07:35 +02:00
Andreas Dangel
5fa2a6b976 Merge branch 'master' into pr-3994 2022-07-07 09:49:43 +02:00
Andreas Dangel
a168bc239c [java] Improve FinalFieldCouldBeStatic (#3992) 2022-07-07 09:35:15 +02:00
Andreas Dangel
fbb542688e Merge branch 'master' into pr-3992 2022-07-07 09:03:50 +02:00
Andreas Dangel
f8e9adf2c5 [java] Fix WhileLoopWithLiteralBoolean tests 2022-07-01 14:56:33 +02:00
Andreas Dangel
e6e1bfb62a Merge branch 'master' into pmd/7.0.x 2022-07-01 14:30:58 +02:00
Andreas Dangel
19a6b38bbd Merge pull request #3988 from VoidxHoshi:master
[java] Modify WhileLoopWithLiteralBoolean to meet the missing case #3455 #3988
2022-07-01 14:02:25 +02:00
Andreas Dangel
7557abb739 Update pmd-java/src/main/resources/category/java/performance.xml 2022-07-01 12:25:13 +02:00
Andreas Dangel
6fb5b3b960 [java] Improve WhileLoopWithLiteralBoolean (#3988) 2022-07-01 12:20:23 +02:00
Andreas Dangel
0abfa1bd72 Merge branch 'master' into pr-3988 2022-07-01 11:16:27 +02:00
Andreas Dangel
f15cd8febc [java] AddEmptyString - fix false positive with scoping 2022-07-01 11:10:02 +02:00
Andreas Dangel
d333e09f3d [java] Improve AddEmptyString (#3984) 2022-07-01 10:52:27 +02:00
Andreas Dangel
41798069a1 Merge branch 'master' into pr-3984 2022-07-01 10:31:08 +02:00
Clément Fournier
9a5ab047b3 Merge branch '7.0.x' into abort-on-semantic-errors 2022-06-25 18:39:59 +02:00
Andreas Dangel
a5006f6383 [maven-release-plugin] prepare for next development iteration 2022-06-25 09:30:43 +02:00
Andreas Dangel
07eb3d2d80 [maven-release-plugin] prepare release pmd_releases/6.47.0 2022-06-25 09:30:37 +02:00
Andreas Dangel
0f58afcc01 [java] ImmutableField - remove now unnecessary field annotations 2022-06-24 16:19:43 +02:00
Andreas Dangel
65437fc3b7 Merge branch 'master' into pmd/7.0.x 2022-06-24 16:00:03 +02:00
Andreas Dangel
25eb9d885b Merge pull request #4005 from adangel:sonatype-lift-issues
[core] Fix current sonatype lift issues #4005
2022-06-24 15:36:36 +02:00
Andreas Dangel
bde5a0c191 Merge pull request #4003 from jjlharrison:master
[java] UnusedPrivateField: Ignore fields annotated with @Id, @EmbeddedId, @Version, @Mock, @Spy, or @MockBean #4003
2022-06-24 15:22:13 +02:00
Andreas Dangel
c5e4b71646 [java] ImmutableField - remove now unnecessary defaultSuppressionAnnotations 2022-06-23 16:23:45 +02:00
Andreas Dangel
c1b6f7cc27 [java] ImmutableField - remove now unneeded default suppression annotations 2022-06-23 16:01:12 +02:00
Andreas Dangel
7f4ed46a6a [java] ImmutableField - add test case for JPA Entity (#3823) 2022-06-23 15:55:25 +02:00
Andreas Dangel
770e416de1 [java] ImmutableField - add test case for GwtMockito and Spy (Mockito) (#4004) 2022-06-23 15:51:11 +02:00
Andreas Dangel
b68b7b6a87 [java] ImmutableField - add test case for Selenium (#4020) 2022-06-23 15:49:03 +02:00
Andreas Dangel
f16532f0e0 [java] ImmutableField - add test case for @Inject (#4011) 2022-06-23 15:47:23 +02:00
Clément Fournier
5c05c105b7 Fix tests 2022-06-18 19:16:16 +02:00
Clément Fournier
5d8b210e6d Simplify 2022-06-17 06:51:17 +02:00
Clément Fournier
efd0c9ed13 Fix #4008 2022-06-17 06:40:17 +02:00
Andreas Dangel
4b2c3fa1a4 Exclude commons-io (CVE-2021-29425)
Refactor last test usages to use PMD's IOUtil instead.
2022-06-09 16:15:19 +02:00
Andreas Dangel
9681ea800b Merge branch 'master' into pmd/7.0.x 2022-06-09 15:08:04 +02:00
James Harrison
b4916d6a4b UnusedPrivateField: Ignore fields annotated with @Id, @EmbeddedId, @Version, @Mock, @Spy, or @MockBean 2022-06-09 07:52:19 +01:00
James Harrison
e29a589970 [java] ImmutableField: Ignore @Value (Spring) and @Captor (Mockito) 2022-06-07 10:58:38 +01:00
Andreas Dangel
2bdc8a8263 Merge branch 'master' into pmd/7.0.x 2022-06-04 15:59:22 +02:00
Andreas Dangel
e6669f13d5 Merge pull request #3985 from Scrsloota:master
[java] Fix false negative problem about Enum in AvoidFieldNameMatchingMethodName #3936
2022-06-04 15:15:58 +02:00
Andreas Dangel
066b510eef chore: Fix project.parent.relativePath in pom.xml
It must point to a file, pointing to a directory
is not valid.
2022-06-04 11:00:30 +02:00
Scrsloota
051951e852 change to avoid instanceof checks 2022-06-02 23:43:31 +08:00
Scrsloota
a442f41d6f Merge branch 'pmd:master' into master 2022-06-02 18:41:30 +08:00
茅延安
7f5f0406ec Update design.xml 2022-06-01 09:51:23 +08:00