mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
MismatchedStringBuilderQueryUpdate: expected warning fixed in testUselessQueryTernary (was actually expected)
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ public class MismatchedStringBuilderQueryUpdate {
|
||||
}
|
||||
|
||||
static String testUselessQueryTernary(java.util.List<String> list) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
StringBuilder <warning descr="Contents of StringBuilder 'sb' are updated, but never queried">sb</warning> = new StringBuilder();
|
||||
for (String s : list) {
|
||||
if (s != null) {
|
||||
if(sb.length() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user