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
Clément Fournier
4213083554
Remove redundant interface declarations in pmd-java
...
Related to #4885
2024-05-16 14:20:04 +02:00
Clément Fournier
ed18c9d746
Fix PMD warning
2024-05-16 13:52:29 +02:00
Clément Fournier
eb17c9aab7
Fix many problems with UnnecessaryBoxing
2024-05-15 21:49:35 +02:00
Clément Fournier
4cfe90cfdc
Cleanup symtable factory
2024-05-15 09:36:39 +02:00
Clément Fournier
7341e3c880
Add version check
2024-05-15 09:19:33 +02:00
Clément Fournier
3ec3903425
Fix javadoc error
2024-05-14 22:50:22 +02:00
Clément Fournier
625fb36b14
Fix #4924 - UnnecessaryBoxing FP in lambda
...
Change a bit the behavior for some test cases.
Previously the rule reported necessary boxing
that could be simplified another way, but that
is an edge case and not worth complexifying
the rule
2024-05-14 22:45:22 +02:00
Juan Martín Sotuyo Dodero
feddca0f4a
Remove empty paragraph
2024-05-14 12:04:28 -03:00
Clément Fournier
c42330d0d9
Add more doc
2024-05-14 16:37:48 +02:00
Juan Martín Sotuyo Dodero
88b8adbca7
Merge branch 'master' into issue2368
2024-05-14 09:28:38 -03:00
Juan Martín Sotuyo Dodero
3f6184300c
Merge branch 'pr-5013'
2024-05-14 09:25:33 -03:00
Clément Fournier
fc24eced58
Fix #4903 - UnnecessaryBoxing where explicit conversion is necessary
2024-05-14 12:36:03 +02:00
Clément Fournier
228a1f5017
[java] Fix #2368 - UnsynchronizedStaticFormatter FP in static initializer
2024-05-13 17:25:31 +02:00
Clément Fournier
f1701df7f2
Revert previous two commits - pushed by mistake
2024-05-13 17:22:05 +02:00
Clément Fournier
a80897fc71
[java] Fix #2326 - UnsynchronizedStaticFormatter FP in static initializer
2024-05-13 17:18:11 +02:00
Clément Fournier
38194a49f7
Fix #4042 - FN with StringBufferInstantiationWithChar
2024-05-13 16:54:08 +02:00
Clément Fournier
b6c0a10095
[java] Fix #5006 - bad intersection in capture of recursive types
2024-05-12 15:32:03 +02:00
Clément Fournier
7f0d148a1b
Fix FPs
2024-05-11 23:06:30 +02:00
Clément Fournier
ff6f528647
Add tests
2024-05-11 16:14:34 +02:00
Clément Fournier
98d455af45
Update references
2024-05-11 16:13:13 +02:00
Clément Fournier
cc17469f4e
Fix #4990 - Add attribute @PackageQualifier
to ASTClassType
2024-05-11 16:10:37 +02:00
Clément Fournier
40c7ffe03e
Update reference files
2024-05-11 16:01:38 +02:00
Clément Fournier
690ff9d6e4
Add tests
2024-05-11 15:56:49 +02:00
Clément Fournier
dab89d4806
Don"t add unnamed variables to symtable
2024-05-11 15:47:08 +02:00
Clément Fournier
f1b2cda3dc
Make variable naming conventions skip unnamed variables
...
Fix #4954
2024-05-11 15:36:35 +02:00