6d09555af6
fix: remove delimiter attribute from pmd-java/src/main/resources/category/java/errorprone.xml
...
When using `category/java/errorprone.xml` ruleset with PMD 7.0.0-rc4 I'm getting these warnings:
```
Warning at category/java/errorprone.xml:1039:78
1037| <properties>
1038| <property name="version" value="2.0"/>
1039| <property name="typesThatCompareByReference" type="List[String]" delimiter="," description="List of canonical type names for which reference comparison is allowed.">
^^^^^^^^^ Delimiter attribute is not supported anymore, values are always comma-separated.
1040| <value>java.lang.Enum,java.lang.Class</value>
1041| </property>
Warning at category/java/errorprone.xml:2353:62
2351| <priority>3</priority>
2352| <properties>
2353| <property name="annotations" type="List[String]" delimiter="," value="org.springframework.beans.factory.annotation.Autowired,javax.inject.Inject,com.google.inject.Inject" description="If a constructor is annotated with one of these annotations, then the class is ignored."/>
^^^^^^^^^ Delimiter attribute is not supported anymore, values are always comma-separated.
2354| <property name="xpath">
2355| <value>
```
2023-12-04 12:05:45 +01:00
c6d55ca059
Merge pull request #4706 from Debamoy:issue/1831-detached-test-case-reports-package-private-methods
...
[java] DetachedTestCase should not report on abstract methods #4706
2023-12-01 15:07:41 +01:00
990090d6d1
[doc] Update release notes ( #4706 , #1831 )
2023-12-01 15:05:22 +01:00
10c184b44b
Fix checkstyle
2023-12-01 15:02:24 +01:00
3875ae2726
Merge pull request #4754 from bergander:AllowCommentedBlocks
...
[java] EmptyControlStatementRule: Add allowCommentedBlocks property #4754
2023-12-01 14:29:03 +01:00
1e8d5874ed
[doc] Update release notes ( #4754 )
2023-12-01 14:27:15 +01:00
b7b26f01f5
Fix #4753
2023-11-28 17:48:59 +01:00
de2a7e15ee
Add allowCommentedBlocks property to EmptyControlStatementRule
2023-11-27 16:00:40 +01:00
3fc9d8fc77
issue-1831 added test cases
2023-11-25 11:02:22 +05:30
16967d3c60
Merge pull request #4719 from ciufudean:master
...
[java] UnnecessaryCaseChange: example doc toUpperCase() should compare to a capitalized string #4719
2023-11-10 09:23:08 +01:00
1140aa2d00
Merge pull request #4724 from Monits:pattern-properties
...
[java] Make allowExceptionNameRegex a Regex #4724
2023-11-10 09:13:36 +01:00
93f5a68218
Make allowExceptionNameRegex a Regex
2023-10-19 22:00:34 -03:00
4c590a71bd
Merge branch 'master' into issue-4645-CommentDefaultAccessModifier
2023-10-19 21:42:36 -03:00
453685d6c4
toUpperCase() should compare to a capitalized string
2023-10-19 11:09:45 +03:00
0c53b69e82
Merge pull request #4586 from adangel:ruleset-xml
...
Use explicit encoding in ruleset xml files #4586
2023-10-19 09:41:57 +02:00
4aedeec734
#1831 resolved the issue
2023-10-07 17:11:16 +05:30
2bbb193d4e
Merge pull request #4561 from adangel:issue-2847-new-rule-explicit-types
...
[java] New Rule: Use Explicit Types #4561
2023-10-06 19:51:40 +02:00
01a8a36f49
Merge branch 'master' into pr-4591
2023-10-06 19:15:58 +02:00
e9ed7dc25c
[java] Fix quickstart ruleset for new rule UseExplicitTypes
2023-10-06 19:06:42 +02:00
4ca9b26abb
Merge branch 'master' into issue-2847-new-rule-explicit-types
2023-10-06 19:01:53 +02:00
c071143880
[java] CommentDefaultAccessModifier: Fix ParameterizedTest annotation
...
Fixes #4645
2023-10-06 18:58:15 +02:00
345bb24a25
[release] prepare for next development iteration
2023-09-30 17:15:59 +02:00
720b9a328b
[release] prepare release pmd_releases/7.0.0-rc4
2023-09-30 17:15:54 +02:00
d445b1d55c
[java] Update LanguageVersionTest
2023-09-28 10:44:47 +02:00
15ea5f0c00
Merge branch 'master' into issue-4583-jdk-21
2023-09-28 10:04:42 +02:00
ba35bdc6bc
[doc] AutoClosable -> AutoCloseable
2023-09-06 16:50:16 +00:00
55eefcac03
Merge branch 'master' into issue-4294-migration-guide
2023-08-31 14:47:13 +02:00
5d873fd241
Merge branch 'master' into issue-2847-new-rule-explicit-types
2023-08-28 20:26:17 +02:00
e33be0ba48
[java] UseExplicitTypes - move to category codestyle
2023-08-28 20:26:05 +02:00
34cd92c55e
[java] UseExplicitTypes - improve rule documentation
2023-08-28 19:42:22 +02:00
32afa53f8e
All language modules: getInstance()
...
Use a consistent implementation of getInstance().
Now all modules resolve against the LanguageRegistry.
2023-08-24 16:01:27 +02:00
80856732cc
Fix checkstyle
2023-08-24 14:19:36 +02:00
8511c7b0e1
[core] Move PmdCapableLanguage to n.sf.pmd.lang
2023-08-24 11:42:50 +02:00
681c52836c
[core] Create CpdLanguageProperties
2023-08-24 11:14:08 +02:00
932ac33d15
Merge branch 'master' into pr-4397
2023-08-24 09:48:28 +02:00
894d9fba84
Merge branch 'master' into pr-4397
2023-08-17 09:31:53 +02:00
3ea4031d0e
[core] PropertyDescriptor - remove deprecated methods
...
Update tests and usages for valueFrom/asDelimitedString
2023-08-12 11:23:20 +02:00
b73611f013
Merge branch 'master' into pr-4380
2023-08-10 17:37:36 +02:00
000f2e86fd
[java] Fix more parsing errors after supporting String Templates
2023-08-10 15:36:30 +02:00
41643dd020
[java] Avoid using Thread.fillInStackTrace() for token context
...
This requires to use the option TOKEN_MANAGER_USES_PARSER
2023-08-10 15:36:30 +02:00
d061883ca6
[java] Fix CPD tests, use latest java version
...
Now the files need to be syntactically valid java sources.
2023-08-10 15:36:30 +02:00
630626ca82
[java] Fix Tokenizer for CPD after supporting String Templates
2023-08-10 15:36:29 +02:00
38a5e827e9
Fix code duplication
2023-08-10 15:36:29 +02:00
f4c86b25ae
[java] Support Unnamed Classes and Instance Main Methods for Java 21 Preview
...
JEP 445
2023-08-10 15:36:29 +02:00
216dd09405
[java] Support Unnamed Patterns and Variables for Java 21 Preview
...
JEP 443
2023-08-10 15:36:28 +02:00
715d58fef3
[java] Support String Templates for Java 21 Preview
...
JEP 430
2023-08-10 15:36:28 +02:00
b5d00b7e42
Fix checkstyle
2023-08-10 15:36:27 +02:00
2488107b23
[java] Update impl for record patterns for java 21
...
- renamed ASTComponentPatternList to ASTPatternList
2023-08-10 15:36:27 +02:00
3bdb921548
[java] Update impl for pattern matching for switch for java 21
...
- renamed ASTSwitchGuard to ASTGuard
2023-08-10 15:36:27 +02:00
05d55d0d7a
[java] Update tests for java 21
...
Only Pattern Matching for switch
2023-08-10 15:36:27 +02:00