mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
invert boolean: stop on class level (IDEA-66889)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
public class Convert2AtomicTest {
|
||||
public boolean fooInverted() {
|
||||
Processor processor = new Processor() {
|
||||
@Override
|
||||
public boolean process(Object o) {
|
||||
return false; // Changes false to true here, WRONG!!!
|
||||
}
|
||||
};
|
||||
|
||||
return true; // Changes false to true here, right
|
||||
}
|
||||
}
|
||||
|
||||
interface Processor {
|
||||
boolean process(Object object);
|
||||
}
|
||||
Reference in New Issue
Block a user