Files
openide/java/java-tests/testData/refactoring/extractMethod/Cast4ParamGeneration_after.java

15 lines
192 B
Java

public class Test {
void foo(Object o) {
if (o instanceof A) {
newMethod((A) o);
}
}
private void newMethod(A o) {
o.bar();
}
}
class A {
void bar(){}
}