Separated test cases
This commit is contained in:

committed by
Juan Martín Sotuyo Dodero

parent
beac88cef6
commit
a07b8c7fd0
@ -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";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user