mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
[extract method] IDEA-278872: fix missed return variable
GitOrigin-RevId: 55ffed6010a531c34dfa18e22ad5b82ced9599ba
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f40371f009
commit
c3afc8b902
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
void test() {
|
||||
<selection>final String str = "atata";
|
||||
do {
|
||||
System.out.println();
|
||||
} while (Math.random() > 0.5);</selection>
|
||||
|
||||
System.out.println(str);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class Test {
|
||||
void test() {
|
||||
final String str = getString();
|
||||
|
||||
System.out.println(str);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private String getString() {
|
||||
final String str = "atata";
|
||||
do {
|
||||
System.out.println();
|
||||
} while (Math.random() > 0.5);
|
||||
return str;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user