Commit Graph

3210 Commits

Author SHA1 Message Date
cfb21d226a Merge branch 'pr-2866' into master
[java] (doc) Fix example for CouplingBetweenObjects #2866
2020-10-23 09:02:42 +02:00
ccb7fd25aa Programming correction in docs
Docs of CouplingBetweenObjects has a Programming issue. I also made "something" a method.
2020-10-22 19:46:46 -03:00
151400d95b Update ExcessiveImports example code for clarity
Since the default minimum is 30, I believe it would make more sense if the comment said "28" instead of "18".
2020-10-22 19:38:40 -03:00
873564e69f Merge branch 'pr-2811' into master
[java] CloseResource - Fix #2764: False-negative when re-assigning variable #2811
2020-10-22 09:40:06 +02:00
77b183704f fix #2764: false-negative when re-assigning variable 2020-10-14 17:41:28 +02:00
e3804da978 Update and rename DoNotTerminateVM.java to DoNotTerminateVMTest.java 2020-10-13 23:04:43 +02:00
1130ee45a7 Merge branch 'pr-2813' into master
[core] Use JUnit's TemporaryFolder rule #2813
2020-10-10 14:01:03 +02:00
e76b0b6946 Merge branch 'pr-2803' into master
[java] Improve DoNotCallSystemExit (Fixes #2157) #2803
2020-10-10 13:07:05 +02:00
1150e61ddd [java] Rename DoNotCallSystemExit -> DoNotTerminateVM 2020-10-10 13:05:58 +02:00
22db2fdebc Use JUnit's TemporaryFolder rule
Don't reinvent the wheel. TemporaryFolder already takes care of cleaning
up the created files.
2020-10-03 22:59:16 +02:00
095f96a966 Added tests to verify the fix for #2157 2020-10-02 00:09:31 -07:00
6b23b13497 Move test config from file to test class
Keep it simple. The config file stored only a single line for years.
2020-09-30 22:48:43 +02:00
aa245c6e1b [maven-release-plugin] prepare for next development iteration 2020-09-26 10:25:16 +02:00
722f3ca997 [maven-release-plugin] prepare release pmd_releases/6.28.0 2020-09-26 10:25:05 +02:00
e8b95f1a21 Fixes #2157
System.exit() and its equivalents should be allowed in static main() methods, added check for Runtime.getRuntime().halt()
2020-09-25 09:42:51 -07:00
d3ca0319b3 Merge branch 'master' into issue-2755 2020-09-25 14:24:08 +02:00
f046268058 [java] CloseResource: add simple test case for var 2020-09-21 19:47:42 +02:00
87890b852a [java] CloseResource: Fix test code 2020-09-21 19:39:24 +02:00
8c97300af8 Fix doc
Parameters were in the wrong order.
2020-09-18 04:04:35 +02:00
2093011913 Fix array & annot subtyping 2020-09-18 03:58:05 +02:00
81a72cb43e [java] CloseResource: Fix NPE in case of "var" 2020-09-17 18:49:21 +02:00
3c1b0afcf6 Fix #2783 2020-09-16 15:40:45 +02:00
606d25de82 Merge branch 'pr-2761' into master
[java] Fix #2759, UnusedAssignment false positive #2761
2020-09-12 11:37:09 +02:00
9ed79f46fd Merge branch 'pr-2770' into master
[java] Fix #2767, PMD cannot parse a local var with final in instance initializer #2770
2020-09-11 17:52:25 +02:00
6af4f1ecea Merge branch 'pr-2771' into master
[java] Fix #2756, NPE in TypeTestUtil #2771
2020-09-11 17:40:43 +02:00
2d0d098d2c [java] Add test case for #2738 2020-09-11 16:59:16 +02:00
fedea535b5 issue-2738: Adding null check to avoid npe when switch case is default 2020-09-10 19:19:43 -07:00
46933e666d Fix #2756, NPE in TypeTestUtil 2020-09-10 12:49:45 +02:00
fc759db5ca Fix #2767
Problem was the stack is empty if the local var declaration
is the first node of the compilation unit to be pushed.
2020-09-10 12:24:03 +02:00
b0f924495b Fix bug
Problem was, isInTryBlock didn't ask for parent
states, even though abruptCompletionByThrow does.
2020-09-03 12:13:37 +02:00
3a33092d22 Add test case 2020-09-02 16:45:19 +02:00
b3e0c54a80 Fixed a typo 2020-09-01 09:03:28 +01:00
85754378f7 Added test for multiple VariableDecoratorIds 2020-09-01 09:02:48 +01:00
776c0c154f Addressed review comments 2020-09-01 08:55:52 +01:00
ba5c2f4288 Merge pull request #1 from pmd/master
Update with changes
2020-09-01 08:52:34 +01:00
c59af0aee6 [maven-release-plugin] prepare for next development iteration 2020-08-31 18:30:18 +02:00
856950f0d2 [maven-release-plugin] prepare release pmd_releases/6.27.0 2020-08-31 18:30:09 +02:00
363c3a30ff Trigger for non lombok Builder.Default 2020-08-27 08:45:53 +01:00
e5d0b7243f revert in package net.sourceforge.pmd.lang.java.typeresolution 2020-08-27 12:09:19 +08:00
1a443f92f3 Update pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/documentation/CommentContentRule.java
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2020-08-27 12:02:21 +08:00
44a08faf7f Update pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/design/CouplingBetweenObjectsRule.java
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2020-08-27 12:01:20 +08:00
244a39db0f fix typos. 2020-08-27 11:47:11 +08:00
cd98a36b66 [java] Fix 2708: False positive FinalFieldCouldBeStatic 2020-08-26 16:52:13 +01:00
129de133cf Merge branch 'master' into use_addAll 2020-08-25 14:50:23 +02:00
36c3d87272 Add md formatting 2020-08-25 14:38:59 +02:00
d7df3d342b Merge branch 'master' into suspicious-equals 2020-08-25 14:37:56 +02:00
0a18460234 Update pmd-java/src/main/resources/category/java/errorprone.xml 2020-08-25 14:37:29 +02:00
ab7b7a4ad7 Use markdown format 2020-08-25 14:29:01 +02:00
4d888eeaab Merge branch 'master' into mateusz-stefanski-master 2020-08-25 14:27:19 +02:00
dc4e93ffe7 Merge branch 'javadoc' into master
Refs #2728
2020-08-24 20:20:39 +02:00