8413 Commits

Author SHA1 Message Date
Andreas Dangel
d952a10790
[release] Prepare next development version [skip ci] 2024-06-28 11:27:41 +02:00
Andreas Dangel
c5dbc29bea
[release] prepare release pmd_releases/7.3.0 2024-06-28 11:00:04 +02:00
Andreas Dangel
06ba547811
[java] Make impl of ASTLiteral#getLiteralText() public (#5078)
Merge pull request #5078 from adangel:issue-4885-method-should-be-accessible
2024-06-27 14:49:13 +02:00
Andreas Dangel
fbc5ddb103
[java] Add new rule UseEnumCollections (#5038)
Merge pull request #5038 from oowekyala:issue577-new-rule-use-enum-collections
2024-06-27 14:07:31 +02:00
Andreas Dangel
bc0b2c9763
Merge branch 'master' into pr-5038 2024-06-27 11:41:13 +02:00
Andreas Dangel
bf8e11d9b4
[doc] Update release notes (#577, #5038) 2024-06-27 11:40:18 +02:00
Andreas Dangel
f37d432b9e
Revert "support TreeSet/Map"
This reverts commit 209fc134621862b7043dd05ac72265cd21a838d2.
2024-06-27 11:29:00 +02:00
Andreas Dangel
c2a7c46ccd
Merge branch 'master' into pr-5051 2024-06-27 11:00:56 +02:00
Andreas Dangel
69d2d7de28
[java] Rebuild SomeRecordsTestData.java 2024-06-27 10:55:55 +02:00
Andreas Dangel
31b4e3745a
[doc] Update release notes (#5050, #5051) 2024-06-27 10:49:20 +02:00
Andreas Dangel
f5ab687c6a
[java] Use Objects.equals consistently in SymbolEquality 2024-06-27 10:40:49 +02:00
Andreas Dangel
18c30415d0
[java] Make impl of ASTLiteral#getLiteralText() public
Fixes #4885
2024-06-20 15:26:21 +02:00
Clément Fournier
2ccb39aaba
Add tests for record reflection, change API
Record components can be annotated separately
from their corresponding field/method, so I add
a new type for that
2024-06-05 16:58:39 +02:00
Clément Fournier
48512a43f6
Fix #5047 - type inference with enum 2024-06-05 12:41:05 +02:00
Clément Fournier
9bd6540055
Lint 2024-06-05 12:21:33 +02:00
Clément Fournier
16346bbd63
Support properly generic records
TODO test
2024-06-05 12:17:12 +02:00
Clément Fournier
209fc13462
support TreeSet/Map 2024-06-05 11:17:57 +02:00
Clément Fournier
5170a81f79
Merge branch 'master' into issue577-new-rule-use-enum-collections 2024-06-05 11:12:55 +02:00
Clément Fournier
50562185d1
Implement record patterns and fix switch pattern scoping 2024-06-03 16:24:41 +02:00
Andreas Dangel
28c6c8e121
[release] Prepare next development version [skip ci] 2024-05-31 13:21:14 +02:00
Andreas Dangel
38bc997d4e
[release] prepare release pmd_releases/7.2.0 2024-05-31 12:57:36 +02:00
Andreas Dangel
2a0cba7b91
[java] Improve LocalVariableCouldBeFinal (#5003)
Merge pull request #5003 from oowekyala:issue1619-localVariableCouldBeFinal-FP
2024-05-31 10:39:37 +02:00
Andreas Dangel
3890b561a1
[java] Remove FPs in UnnecessaryBoxing (#5019)
Merge pull request #5019 from oowekyala:issue4903-unnecessaryboxing
2024-05-31 10:06:36 +02:00
Andreas Dangel
a05faf9837
Merge branch 'master' into kotest-fixes 2024-05-31 09:48:46 +02:00
Clément Fournier
4ea0c07162 Fix pmd warning 2024-05-23 21:17:17 +02:00
Clément Fournier
edb733f835 Add test for UnnecessaryCast 2024-05-23 21:10:58 +02:00
Clément Fournier
1bde246b8b Fix some FNs 2024-05-23 21:07:27 +02:00
Clément Fournier
f1fc7aacbe Merge branch 'master' into issue4903-unnecessaryboxing 2024-05-23 20:15:47 +02:00
Clément Fournier
05e7724185 [java] Add new rule UseEnumCollections 2024-05-23 19:32:16 +02:00
Juan Martín Sotuyo Dodero
b284ca6ec8 Merge branch 'pr-5035' 2024-05-23 09:47:04 -03:00
Andreas Dangel
f36e25dd04
Merge branch 'master' into pr-5004 2024-05-23 11:19:09 +02:00
Andreas Dangel
a54dc1ea89
[java] Add Java8TreeDumpTest for UnnamedVariable
Refs #5004
2024-05-23 10:24:31 +02:00
Clément Fournier
5b24bbea87
Fix #5029 - infinite recursion in TypeOps::projectUpwards 2024-05-22 17:00:25 +02:00
Clément Fournier
bbec7fd3a2
Add test for #4990
Ref #4946
2024-05-21 16:43:18 +02:00
Clément Fournier
6be50ec235
Merge branch 'master' into issue4990-package-qualifier-attribute 2024-05-21 16:10:34 +02:00
Clément Fournier
85c4f0f9ce
Merge branch 'master' into kotest-fixes 2024-05-21 15:58:20 +02:00
Clément Fournier
a754bea5cf
Merge branch 'master' into pr/5020 2024-05-21 15:47:28 +02:00
Clément Fournier
8b50584af4
Add some tests 2024-05-21 15:46:56 +02:00
Andreas Dangel
2d33d05d76
[java] Refactor kotest ParserTestSpec tests
- introduce parserTestContainer
- use either parserTest or parserTestContainer with should/doTest
- parserTestGroup is now private
  - this is to limit DSL options - with too many options maintainability suffers
  - parserTestContainer should be used instead
  - there were only 2 test classes, that used parserTestGroup
2024-05-20 13:25:06 +02:00
Clément Fournier
f1ac913a8b
Update test references, add tests 2024-05-17 13:29:36 +02:00
Clément Fournier
04214b43ca
Improve treatment of lambdas 2024-05-17 12:47:45 +02:00
Andreas Dangel
087893a64d
[java] Remove unused vars 2024-05-17 10:51:05 +02:00
Andreas Dangel
f009de5831
[java] Ensure there is a child test case for ParserTestSpec tests 2024-05-17 10:51:05 +02:00
Andreas Dangel
24c1093bf1
[java] Fix test BranchingExprsTestCases
- Renamed to BranchingExprsTests so that it is picked up by surefire
- Fix cast context
2024-05-17 10:51:04 +02:00
Gold856
e11376f1ef Fix AvoidUsingOctalValue false-positive 2024-05-17 00:32:13 -04:00
Juan Martín Sotuyo Dodero
ae76c8f293
Merge pull request #5021 from oowekyala/issue4885-method-not-accessible
[java] Remove redundant interface declarations in pmd-java
2024-05-16 13:18:19 -03:00
Clément Fournier
419ff13fe7
Add new tests 2024-05-16 18:04:01 +02:00
Clément Fournier
b640194f76
Fix FN with ternary 2024-05-16 16:38:13 +02:00
Clément Fournier
bd24b185ea
Fix another FN with numeric contexts 2024-05-16 15:44:46 +02:00
Clément Fournier
798b2c31a1
Fix FN 2024-05-16 15:29:17 +02:00