Separated test cases

This commit is contained in:
Clément Fournier
2017-03-23 13:20:06 +01:00
committed by Juan Martín Sotuyo Dodero
parent beac88cef6
commit a07b8c7fd0

View File

@ -160,6 +160,17 @@ public class UseStringBuffer {
public void foo2() {
String country = request.getParameter("country");
country = (country == null) ? "USA" : country;
}
}
]]></code>
</test-code>
<test-code>
<description>#222 False positive when inverting ternary expression arguments</description>
<expected-problems>0</expected-problems>
<code><![CDATA[
public class Foo {
public void bar() {
String country = request.getParameter("country");
country = (country != null) ? country : "USA";
}
}