Check fixes #2538
This commit is contained in:
1 parent
8ffb948b40
commit
5ac0c9f9d9
2 files changed
+6
-4
No files matched your search
@@ -119,6 +119,8 @@ The following previously deprecated rules have been finally removed:
|
||||
* [#1005](https://github.com/pmd/pmd/issues/1005): \[java] CloneMethodMustImplementCloneable triggers for interfaces
|
||||
* [#2532](https://github.com/pmd/pmd/issues/2532): \[java] AvoidDecimalLiteralsInBigDecimalConstructor can not detect the case new BigDecimal(Expression)
|
||||
* [#2716](https://github.com/pmd/pmd/issues/2716): \[java] CompareObjectsWithEqualsRule: False positive with Enums
|
||||
* java-multithreading
|
||||
* [#2538](https://github.com/pmd/pmd/issues/2538): \[java] DontCallThreadRun can't detect the case that call run() in `foo.bar.run()`
|
||||
* java-performance
|
||||
* [#1224](https://github.com/pmd/pmd/issues/1224): \[java] InefficientEmptyStringCheck false negative in anonymous class
|
||||
* [#2712](https://github.com/pmd/pmd/issues/2712): \[java] SimplifyStartsWith false-positive with AssertJ
|
||||
|
||||
+4
-4
@@ -30,14 +30,14 @@ public class Foo {
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>#565 - inheritance use case - call to Thread().run()</description>
|
||||
<description>[java]DontCallThreadRun can't detect the case that call run() in foo.bar.run() #2538</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<code><![CDATA[
|
||||
import net.sourceforge.pmd.lang.java.rule.multithreading.DontCallThreadRunTest.TestThread;
|
||||
|
||||
public class Foo {
|
||||
public void bar() {
|
||||
new TestThread().run();
|
||||
private Thread bar;
|
||||
public void bar(Foo foo) {
|
||||
foo.bar.run();
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
|
||||
Reference in new issue
Block a user