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

20 lines
348 B
Java

import java.util.*;
class C {
{
Object[] array;
List l1 = newMethod(array);
List l2 = newMethod(getObjects());
System.out.println("l1 = " + l1 + ", l2 = " + l2);
}
private List newMethod(Object[] array) {
return new ArrayList(Arrays.asList(array));
}
String[] getObjects() {
}
}