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
Clément Fournier
fc24eced58
Fix #4903 - UnnecessaryBoxing where explicit conversion is necessary
2024-05-14 12:36:03 +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
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
Clément Fournier
bca5c0ec09
Remove usages of getStableName
...
Fix #4930
Fix bug with symbol table in concise resources
2024-04-30 15:26:16 +02:00
Clément Fournier
6c0e736001
Update reference files
2024-04-30 14:45:11 +02:00
Clément Fournier
dbfabda735
Merge branch 'master' into issue4912-java-grammar-fix
2024-04-30 14:41:44 +02:00
Juan Martín Sotuyo Dodero
6700b47b12
Remove unused code
2024-04-29 16:03:14 -03:00
Clément Fournier
8c708b2193
Check upper bound compatibility during incorporation
2024-04-29 16:00:04 -03:00
Juan Martín Sotuyo Dodero
af3346455f
Merge branch 'pr-4984'
2024-04-29 13:34:24 -03:00
Clément Fournier
676767c34a
Use typeIsExactly for ReplaceVectorWithList
2024-04-29 14:45:08 +02:00
Clément Fournier
e2b666210b
[java] Fix #4852 - TypeTestUtil.isA considers intersection type subtype of everything
2024-04-29 14:40:44 +02:00
Clément Fournier
b70521874a
Fix failing tests
2024-04-28 20:10:22 +02:00
Clément Fournier
9a25d90c76
Put back old implementation in place
2024-04-28 18:23:57 +02:00
Juan Martín Sotuyo Dodero
66606648a2
Merge branch 'master' into xpath-seq-attributes
2024-04-28 17:39:08 +02:00
Juan Martín Sotuyo Dodero
7c3de05fd1
Add test case for #1548
2024-04-28 02:33:19 -03:00
Juan Martín Sotuyo Dodero
42cf1b568d
Don't use Throwable
2024-04-28 00:17:44 -03:00
Juan Martín Sotuyo Dodero
d2e0826ed8
Improve implementation
...
- throw an apropriate ResolutionFailedException so we don't loose the
message
- handle any exception so we don't couple tightly into the LUB
implementation
2024-04-27 21:19:57 -03:00
Juan Martín Sotuyo Dodero
6ab54e1afb
Make the code actually valid
2024-04-27 20:56:27 -03:00
Juan Martín Sotuyo Dodero
0a7a52f228
Fix issue #4980
...
- When an applicability test fails (ie: during LUB) we don't want that
to bubble up and fail the process, simply to discard the candidate
and move forward. If no matching candidate is found, the inference
will fail anyway.
2024-04-27 20:50:13 -03:00
Juan Martín Sotuyo Dodero
b510f77a79
Add failing test for #4980
2024-04-27 20:48:30 -03:00
Juan Martín Sotuyo Dodero
8756bf2dbd
Merge pull request #4976 from adangel/fix-release-script
...
Fix release scripts
2024-04-28 00:34:28 +02:00
Juan Martín Sotuyo Dodero
002e8f12ff
Fix #4278
2024-04-26 16:24:41 -03:00
Juan Martín Sotuyo Dodero
2f88755b48
Add failing test for #4278
2024-04-26 16:24:27 -03:00
Juan Martín Sotuyo Dodero
8b3f54c91f
Fix for #4975
2024-04-26 16:00:16 -03:00
Juan Martín Sotuyo Dodero
905bb6518b
Add failing test for #4975
2024-04-26 16:00:03 -03:00
Andreas Dangel
c67998f64a
[java] Update quickstart.xml
2024-04-26 15:43:24 +02:00
Andreas Dangel
339e1d4f43
[release] Prepare next development version [skip ci]
2024-04-26 09:04:20 +02:00
Andreas Dangel
592e80d4a9
[release] prepare release pmd_releases/7.1.0
2024-04-26 08:35:11 +02:00
Andreas Dangel
d0870f3aa3
[java] New rule ConfusingArgumentToVarargsMethod ( #4971 )
...
Merge pull request #4971 from oowekyala:new-rule-UnnecessaryVarargsArrayCreation
2024-04-25 11:40:35 +02:00
Clément Fournier
beac8ab3ac
Merge branch 'master' into cpd-java-no-parse
2024-04-25 11:07:29 +02:00
Andreas Dangel
202943e0cf
[java] Fix #4948 - ImplicitSwitchFallthrough false positive with nested switch statement ( #4963 )
...
Merge pull request #4963 from oowekyala:issue4948-switch-fallthrough
2024-04-25 09:18:59 +02:00
Clément Fournier
af97136018
[java] Stop parsing Java for CPD
...
Ref #4958
2024-04-23 19:10:41 +02:00
Clément Fournier
a92b61711e
Update pmd-java/src/main/resources/category/java/errorprone.xml
2024-04-21 22:47:24 +02:00
Clément Fournier
2f66305c9c
Small optimization
2024-04-21 14:30:35 +02:00
Clément Fournier
789ec03dba
fix last violation
2024-04-21 14:26:17 +02:00