forked from phoedos/pmd
modify the SimplifiedTernary test
This commit is contained in:
@ -53,12 +53,12 @@ public class Foo {
|
|||||||
</test-code>
|
</test-code>
|
||||||
|
|
||||||
<test-code>
|
<test-code>
|
||||||
<description>condition ? true : false</description>
|
<description>#3603 condition ? true : false</description>
|
||||||
<expected-problems>0</expected-problems>
|
<expected-problems>1</expected-problems>
|
||||||
<code><![CDATA[
|
<code><![CDATA[
|
||||||
public class Foo {
|
public class Foo {
|
||||||
public boolean test() {
|
public boolean test() {
|
||||||
return condition ? true : false; // Existing rule
|
return condition ? true : false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]]></code>
|
]]></code>
|
||||||
|
Reference in New Issue
Block a user