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
Clément Fournier
c140acd8f9
Fix #3122 - LocalVariableCouldBeFinal should consider blank local variables
2024-05-11 15:30:23 +02:00
Clément Fournier
02cb5701fa
Fix #1619 - LocalVariableCouldBeFinal FP with loops
2024-05-11 14:55:14 +02:00
Clément Fournier
e5f55c08a5
Add test case for #1160
2024-05-10 20:30:59 +02:00
Juan Martín Sotuyo Dodero
bce7991d2d
Merge pull request #4994 from oowekyala/pr-4982-fixes
...
[java] Fix incompatible class bounds not checked during incorporation #4982 (second PR)
2024-05-09 14:42:17 -03:00
Clément Fournier
3d4f165bbd
Add back removed method for compatibility
2024-05-06 12:41:08 +02:00
Clément Fournier
a72f851514
Invert booleans
2024-05-06 12:34:38 +02:00
Clément Fournier
788b07ba14
Move methods in order to avoid carrying around the pure parameter which is error-prone
2024-05-06 12:23:11 +02:00
Clément Fournier
b2a1ef714f
Fix PMD warning
2024-05-06 12:03:38 +02:00
Juan Martín Sotuyo Dodero
722f25ba86
Merge branch 'master' into xpath-seq-attributes
2024-05-02 13:06:03 -03:00
Juan Martín Sotuyo Dodero
18c59b2891
Merge branch 'master' into issue-4980
2024-05-02 10:23:21 -03:00
Clément Fournier
b1aaf5d69b
Fix conc mod exceptions during incorporation
2024-05-02 10:22:19 -03:00
Andreas Dangel
a2139be00b
[java] Fix impl of ASTVariableId::isResourceDeclaration / VariableId/@ResourceDeclaration ( #4988 )
...
Merge pull request #4988 from oowekyala:java-fix-isResourceDeclaration
2024-05-02 12:44:55 +02:00
Andreas Dangel
435f0dc7b3
[java] Fix #4912 - grammar for TWR allows this expression ( #4934 )
...
Merge pull request #4934 from oowekyala:issue4912-java-grammar-fix
2024-05-02 11:39:38 +02:00
Andreas Dangel
c476f4c06c
Merge branch 'master' into pr-4973
2024-05-02 10:20:28 +02:00
Clément Fournier
3c39aed55e
Fix #4985 UnusedPrivateMethod fp
2024-04-30 17:53:03 +02:00
Clément Fournier
e327a548a4
Fix impl of ASTVariableId::isResourceDeclaration
2024-04-30 16:27:26 +02:00