mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Test, that should fail but it doesn't...
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems />
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import java.util.*;
|
||||
|
||||
public class NoWarnings {
|
||||
public void f() {
|
||||
int i = 1;
|
||||
|
||||
boolean b = true;
|
||||
while (i < 200) {
|
||||
if (b && i == 1) { // Warning here: i == 1 is always true, but it is not so.
|
||||
b = false;
|
||||
} else {
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user