mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 02:25:56 +07:00
[extract method] IDEA-251837 fix texts GitOrigin-RevId: 37da2e7e8f83a4d85a87c644788a66ce6ea1e05f
20 lines
431 B
Java
20 lines
431 B
Java
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Test {
|
|
int method() {
|
|
Integer x = newMethod();
|
|
if (x != null) return x;
|
|
return 12;
|
|
}
|
|
|
|
private @Nullable Integer newMethod() {
|
|
try {
|
|
if(cond1) return 0;
|
|
else if(cond2) return 1;
|
|
System.out.println("Text");
|
|
} finally {
|
|
doSomething();
|
|
}
|
|
return null;
|
|
}
|
|
} |