modify the SimplifiedTernary test

This commit is contained in:
LaLucid
2022-04-25 03:31:19 +08:00
committed by GitHub
parent 56cc9fc163
commit f1a2a77e64

View File

@ -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>