mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
13 lines
261 B
Java
13 lines
261 B
Java
// "Invert 'if' condition" "true"
|
|
class A {
|
|
|
|
void method(Object x) {
|
|
if (x instanceof String) {
|
|
System.out.println(((String) x).toUpperCase());
|
|
}
|
|
else {
|
|
System.out.println(x.toString());
|
|
}
|
|
}
|
|
|
|
} |