Files
openide/java/java-tests/testData/refactoring/extractMethod/UnusedInitializedVar_after.java
Dmitry Jemerov b7e66aee44 test++
2009-09-10 20:21:16 +04:00

21 lines
377 B
Java

class Foo {
private void bar() {
String text = null;
try {
text = newMethod();
}
catch(Exception e) {
System.out.println(text);
}
}
private String newMethod() {
String text;
text = getString();
return text;
}
private void getString() {
return "hello";
}
}