Commit Graph

3743 Commits

Author SHA1 Message Date
6859f8db36 [maven-release-plugin] prepare release pmd_releases/6.44.0 2022-03-27 17:01:54 +02:00
55c089da5f Merge pull request #3855 from adangel:issue-3850
[java] Fix ImmutableField with conditionally assignment in ctors #3855
2022-03-27 16:22:03 +02:00
6c3fcc6374 Merge pull request #3854 from adangel:issue-3851
[java] Fix #3851 - ClassWithOnlyPrivateConstructorsShouldBeFinal #3854
2022-03-27 16:18:02 +02:00
b22990a668 [java] Fix ImmutableField with conditionally assignment in ctors
Fixes #3850
2022-03-17 11:56:27 +01:00
4a805f4284 [java] Fix ClassWithOnlyPrivateConstructorsShouldBeFinal with multiple
classes

Fixes #3851
2022-03-17 11:14:54 +01:00
19cba367f9 [java] Simplify ASTPatternTest
Backported from pmd/7.0.x
2022-03-10 16:45:37 +01:00
937eb90a70 [java] Remove support for Java 16 Preview 2022-03-10 15:41:01 +01:00
b769594fc7 [java] Update UnnecessaryImportRule for @link in @snippet javadoc 2022-03-10 15:25:53 +01:00
de21986ac3 [java] Add Java 18 Preview Tree Dump Test 2022-03-10 14:56:45 +01:00
1e042ce4d0 [java] Fix unit tests for new version 18 2022-03-10 12:22:24 +01:00
b3ab5f0c40 [java] Add Java 18 language version 2022-03-10 12:00:13 +01:00
80e1265fa1 Misspelling rule name only causes warning now 2022-03-05 15:22:25 +01:00
5dc2774c0a Make PMDTaskImpl use PmdAnalysis 2022-03-05 15:02:24 +01:00
b806954d88 Add deprecations 2022-03-05 14:28:25 +01:00
532c81ce7e Merge branch 'master' into pmd6-file-collector 2022-02-27 18:15:30 +01:00
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
a7e2a8eb52 Merge branch 'master' into pr-3785 2022-02-20 16:34:07 +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
c3aa845a6a Fix js & xml tests 2022-02-14 00:15:51 +01:00
cc834b175e Fix java cli tests 2022-02-13 23:31:30 +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