Commit Graph

3725 Commits

Author SHA1 Message Date
69fb502883 [maven-release-plugin] prepare for next development iteration 2022-02-26 10:01:08 +01:00
dd0ee6190b [maven-release-plugin] prepare release pmd_releases/6.43.0 2022-02-26 10:01:03 +01:00
4aa7b56fab Update reference files 2022-02-24 00:02:17 +01:00
a61f1eb404 Fix bug with switch arrows 2022-02-23 22:59:36 +01:00
cc1552b4e1 Merge pull request #3780 from oowekyala:issue3374-rule-example
[java] Fix #3374 UseStringBufferForStringAppends rule example #3780
2022-02-19 09:44:17 +01:00
b6dae35c46 Merge pull request #3774 from oowekyala:issue3697-parse-twr
[java] Fix #3697 - lookahead error in concise resource spec #3774
2022-02-19 09:41:51 +01:00
e005a1d20e Merge pull request #3765 from oowekyala:issue278-confusing-ternary
[java] Fix #278 - ConfusingTernary should treat != null as positive
condition #3765
2022-02-18 20:13:33 +01:00
7733be75ff [core] More deprecations around PMD/Report/RuleContext (#3762) 2022-02-18 11:33:05 +01:00
962793cd54 Fix #3374 - UseStringBufferForStringAppends: Wrong example in documentation 2022-02-12 19:03:31 +01:00
f981445f8f Fix last bug 2022-02-11 21:41:34 +01:00
c5f4f3cd49 Fix #3697 - lookahead error in concise resource spec 2022-02-11 21:27:23 +01:00
c85154adfc Fix #278 - make ConfusingTernary treat != null as a positive condition
update release notes
2022-02-08 19:46:04 +01:00
3f5ec00a6b Fix java test 2022-02-06 16:10:12 +01:00
dc19597020 [maven-release-plugin] prepare for next development iteration 2022-01-29 09:53:38 +01:00
391c32589f [maven-release-plugin] prepare release pmd_releases/6.42.0 2022-01-29 09:53:32 +01:00
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
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
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
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
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
f37a99d651 Fix #3712: InsufficientStringBufferDeclaration false positive with StringBuilder.setLength(0) 2022-01-19 20:37:14 -05:00
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
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
922ef7cbd4 More code style changes for varargs (#3744) 2022-01-17 18:51:18 +01:00
420505a344 #3701 - fix MissingStaticMethodInNonInstantiatableClass for method local classes 2022-01-16 00:40:19 +02:00
f838b183bf Fix #3698 - Error resolving Symbol Table 2022-01-15 15:50:46 +01:00
223c8c4f02 #3724 - fix FinalFieldCouldBeStatic: triggers only if the referenced name is static 2022-01-13 22:14:45 +02:00
e4771c7687 Merge pull request #3720 from
vgalloy:FinalInterfaceMethodParameterIsUnclear

[java] New rule: FinalParameterInAbstractMethod #3720

* pr-3720:
  [doc] Update release notes (#3720)
  Fix file name
  Fix test class name
  Fix FinalParameterInAbstractMethod.externalInfoUrl
  Rename to FinalParameterInAbstractMethod and target all methods
  [java] New rule: FinalInterfaceMethodParameterIsUnclear
2022-01-13 18:18:41 +01:00
8bd9032b8b #3679 - fix FinalFieldCouldBeStatic 2022-01-12 21:55:02 +02:00
ff2dfedf3c [java] ReturnEmptyCollectionRatherThanNull - fix false positive for
lambdas

Fixes #3721
2022-01-10 18:21:20 +01:00
f38e99c65e dogfood - suppress ReturnEmptyCollectionRatherThanNull 2022-01-09 21:29:09 +01:00
0f1e88c07d Merge branch 'master' into pr-3704 2022-01-09 19:39:28 +01:00
7a6893afee Merge pull request #3719 from squaresurf:upgrade-log4j
[java] Upgrade log4j to 2.17.1 #3719

* pr-3719:
  Add @squaresurf as a contributor
  [doc] Update release notes
  Upgrade log4j to 2.17.1
2022-01-09 19:37:17 +01:00
d867654676 Merge branch 'master' into issue-3644-invalidlogmessageformat 2022-01-09 19:30:46 +01:00
93c9871a84 Use Set instead of array 2022-01-09 19:30:12 +01:00
ba44f3116a Fix file name 2022-01-06 17:31:21 +01:00
59422ffb55 Fix test class name 2022-01-06 17:30:57 +01:00
31d39c935e Fix FinalParameterInAbstractMethod.externalInfoUrl 2022-01-06 09:12:11 +01:00
b1c22db14a Rename to FinalParameterInAbstractMethod and target all methods 2022-01-06 09:04:37 +01:00
70eac686e4 [java] New rule: FinalInterfaceMethodParameterIsUnclear
Add the rule to check that public method in interface do not use final qualifier which is unclear
2022-01-05 18:21:50 +01:00
aa6a652dc9 Create ASTRecordDeclaration#isSyntacticallyFinal 2022-01-05 11:15:09 +01:00
f08a3b5cf2 Upgrade log4j to 2.17.1 2022-01-04 19:18:48 -07:00
ee763ee3d7 Check records are not declare with final modifier 2022-01-04 17:24:24 +01:00
b792c14f4d [java] New rule: StaticNestedRecord
Add the rule to check that nested record are not declared with static modifier
2022-01-04 10:41:11 +01:00
3eb6eab02d Fix testcase 2021-12-28 20:44:53 +02:00
8615a8e300 Fix ReturnEmptyCollectionRatherThanNull 2021-12-28 20:10:57 +02:00
1597ef3900 Bump log4j to 2.17.0 2021-12-20 10:07:03 +01:00
9c6591381d [java] UnusedPrivateMethod: Add test case for #3209 2021-12-17 09:52:58 +01:00
a72c9f66f5 Merge branch 'master' into pr-3683 2021-12-16 20:33:02 +01:00
2f95d99b35 [java] Improve symboltable for inner classes 2021-12-16 20:30:44 +01:00