mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
12 lines
263 B
Java
12 lines
263 B
Java
// "Invert 'if' condition" "true"
|
|
class A {
|
|
|
|
void method(Object x) {
|
|
if (!<caret>(x instanceof String)) {
|
|
System.out.println(x.toString());
|
|
} else {
|
|
System.out.println(((String) x).toUpperCase());
|
|
}
|
|
}
|
|
|
|
} |