Files
openide/java/java-tests/testData/refactoring/extractMethodAndDuplicatesInplace/VariableGetterSuggested_after.java
Alexandr Suhinin b41164371c [java extract method] make method static by default
GitOrigin-RevId: 3cac9f65131e216cc2dd43fe58bf0cccbcb69839
2022-04-26 04:59:44 +00:00

11 lines
170 B
Java

class Test {
void test() {
int x = getX();
System.out.println(x);
}
private static int getX() {
int x = 42;
return x;
}
}