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