Andreas Dangel
aa8c02cf5c
Merge pull request #3668 from adangel:pmd7-ClassWithOnlyPrivateConstructorsShouldBeFinal-abstract
...
[java] ClassWithOnlyPrivateConstructorsShouldBeFinal - fix FP with inner private classes #3668
* pr-3668:
Compare subtypes without generics
[java] ClassWithOnlyPrivateConstructorsShouldBeFinal - add test case with generics
[java] ClassWithOnlyPrivateConstructorsShouldBeFinal - simplify
[java] ClassWithOnlyPrivateConstructorsShouldBeFinal - consider nested
[java] ClassWithOnlyPrivateConstructorsShouldBeFinal - allow non-abstract abstract classes
[java] ClassWithOnlyPrivateConstructorsShouldBeFinal - exclude abstract classes
2022-01-28 09:47:39 +01:00
Clément Fournier
c026fa0905
Merge branch 'update-UnnecessaryImport' into 7.0.x
2022-01-26 20:05:15 +01:00
Clément Fournier
41a7f20301
Merge branch '7.0.x' into pr/3731
2022-01-26 20:00:47 +01:00
Clément Fournier
919a1e7562
Merge branch 'pr/3739' into 7.0.x
2022-01-26 19:49:54 +01:00
Clément Fournier
124bf950df
Merge branch '7.0.x' into pr/3663
2022-01-26 19:46:00 +01:00
Clément Fournier
cb3422a7fa
Fix UnnecessaryImport with import static of types
2022-01-23 22:34:31 +01:00
Clément Fournier
5d30c39ce7
checkstyle
2022-01-23 19:31:08 +01:00
Clément Fournier
185bba853c
Handle static imports of types
2022-01-23 18:43:55 +01:00
Andreas Dangel
85a4053352
[java] Fix rules and tests after merge
2022-01-20 16:12:57 +01:00
Andreas Dangel
6c5cf17d18
Merge branch 'master' into pmd/7.0.x
2022-01-20 15:45:14 +01:00
Andreas Dangel
c0c2c76e49
Merge pull request #3722 from adangel:issue-3721-returnemptycollection
...
[java] Fix #3721 ReturnEmptyCollectionRatherThanNull false positive with
lambdas #3722
* pr-3722:
Revert "dogfood - suppress ReturnEmptyCollectionRatherThanNull"
[java] ReturnEmptyCollectionRatherThanNull - fix false positive for
lambdas
2022-01-20 15:27:06 +01:00
Andreas Dangel
6558167ec1
Merge pull request #3674 from adangel:issue-3639-usestringbufferlength
...
[java] UseStringBufferLength: false negative with empty string variable
#3674
* pr-3674:
[java] UseStringBufferLength: false negative with empty string
variable
2022-01-20 15:25:16 +01:00
Andreas Dangel
3b8f87a38c
Merge pull request #3745 from gredler:pmd-3712
...
[java] Fix #3712 : InsufficientStringBufferDeclaration setLength false
positive #3745
* pr-3745:
[doc] Update release notes (#3712 , #3745 )
Fix #3712 : InsufficientStringBufferDeclaration false positive with
StringBuilder.setLength(0)
2022-01-20 15:23:31 +01:00
Andreas Dangel
a4bef55362
Merge pull request #3727 from dykov:hotfix/3679
...
[java] #3724 - fix FinalFieldCouldBeStatic: triggers only if the
referenced name is static #3727
* pr-3727:
[doc] Update release notes (#3727 )
#3724 - fix FinalFieldCouldBeStatic: triggers only if the referenced
name is static
2022-01-20 15:19:01 +01:00
Andreas Dangel
afc8a11020
Merge branch 'master' into pmd/7.0.x
2022-01-20 12:36:44 +01:00
Andreas Dangel
eadc469c39
Merge pull request #3667 from adangel:issue-3644-invalidlogmessageformat
...
[java] InvalidLogMessageFormat - fix false positive with logstash #3667
* pr-3667:
Use Set instead of array
[java] InvalidLogMessageFormat - fix false positive with logstash
2022-01-20 10:58:32 +01:00
Daniel Gredler
f37a99d651
Fix #3712 : InsufficientStringBufferDeclaration false positive with StringBuilder.setLength(0)
2022-01-19 20:37:14 -05:00
Andreas Dangel
19529542db
Merge pull request #3740 from oowekyala:issue3698-symtable
...
[java] Fix #3698 - Error resolving Symbol Table #3740
* pr-3740:
[doc] Update release notes (#3698 )
Fix #3698 - Error resolving Symbol Table
2022-01-17 19:08:13 +01:00
Andreas Dangel
d49014c861
Merge pull request #3742 from dykov:hotfix/3701
...
[java] Fix #3701 - fix MissingStaticMethodInNonInstantiatableClass for
method local classes #3742
* pr-3742:
[doc] Update release notes (#3701 , #3742 )
#3701 - fix MissingStaticMethodInNonInstantiatableClass for method
local classes
2022-01-17 19:05:59 +01:00
Andreas Dangel
922ef7cbd4
More code style changes for varargs ( #3744 )
2022-01-17 18:51:18 +01:00
Clément Fournier
4790a38e20
Add test case
2022-01-16 15:51:51 +01:00
Clément Fournier
7432048d75
Cleanups
2022-01-16 15:47:38 +01:00
Clément Fournier
62aa48f3e2
codestyle
2022-01-16 01:20:47 +01:00
Oleksii Dykov
420505a344
#3701 - fix MissingStaticMethodInNonInstantiatableClass for method local classes
2022-01-16 00:40:19 +02:00
Clément Fournier
f8ce9cd9b9
Fix tree dump tests
2022-01-15 22:53:49 +01:00
Clément Fournier
878845d9fc
Fix last tests
2022-01-15 19:12:05 +01:00
Clément Fournier
be852434a1
Correctly hndle java.lang
2022-01-15 19:05:08 +01:00
Clément Fournier
e475788a10
Fix bugs
2022-01-15 18:32:37 +01:00
Clément Fournier
e4cea86a06
Support method wip
2022-01-15 18:02:44 +01:00
Clément Fournier
6b5c017f23
Support static import of variables
2022-01-15 17:44:55 +01:00
Clément Fournier
3c410f1abe
Merge branch '7.0.x' into update-UnnecessaryImport
2022-01-15 17:27:32 +01:00
Clément Fournier
658b5bd595
Merge branch 'pr/3730' into 7.0.x
2022-01-15 17:12:14 +01:00
Clément Fournier
5be7994e5c
Merge branch '7.0.x' into pr/3735
2022-01-15 17:11:22 +01:00
Clément Fournier
cef71db8b6
Merge branch '7.0.x' into pr/3738
2022-01-15 17:10:51 +01:00
Clément Fournier
94522503d8
Merge branch '7.0.x' into pr/3737
2022-01-15 17:10:38 +01:00
Clément Fournier
91b1497184
Merge branch '7.0.x' into pr/3736
2022-01-15 17:10:27 +01:00
Clément Fournier
c131823471
Merge branch '7.0.x' into pr/3733
2022-01-15 17:10:13 +01:00
Clément Fournier
4058da180c
Merge branch '7.0.x' into pr/3730
2022-01-15 17:09:57 +01:00
Clément Fournier
04e3b28329
Simplify SignatureDeclareThrowsExceptionRule
2022-01-15 16:32:26 +01:00
Clément Fournier
f838b183bf
Fix #3698 - Error resolving Symbol Table
2022-01-15 15:50:46 +01:00
Andreas Dangel
9c3c93b53f
[java] Update rule DoNotTerminateVM
2022-01-14 18:48:00 +01:00
Andreas Dangel
2a94279874
[java] Update rule FinalParameterInAbstractMethod
2022-01-14 18:36:31 +01:00
Andreas Dangel
562a7d25c4
[java] Update rule AvoidDeeplyNestedIfStmts
2022-01-14 18:26:12 +01:00
Andreas Dangel
8f0f0ce755
[java] Update rule AvoidThrowingNewInstanceOfSameException
2022-01-14 18:19:48 +01:00
Andreas Dangel
fca93a29c9
[java] Update rule AvoidThrowingRawExceptionTypes
2022-01-14 17:00:13 +01:00
Andreas Dangel
4e9659b392
[java] Update rule LoosePackageCoupling
2022-01-14 16:32:45 +01:00
Andreas Dangel
95c629fb61
Compare subtypes without generics
2022-01-14 15:56:49 +01:00
Andreas Dangel
a17765894e
[java] ClassWithOnlyPrivateConstructorsShouldBeFinal - add test case
...
with generics
2022-01-14 15:56:10 +01:00
Andreas Dangel
4a540f5f6d
Merge branch 'pmd/7.0.x' into pmd7-ClassWithOnlyPrivateConstructorsShouldBeFinal-abstract
2022-01-14 12:21:10 +01:00
Andreas Dangel
efdaeb58de
[java] ClassWithOnlyPrivateConstructorsShouldBeFinal - simplify
2022-01-14 12:20:40 +01:00