mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
extract method: inline output variable if it is returned right after creation ( IDEA-54490 )
This commit is contained in:
+1
-2
@@ -12,8 +12,7 @@ class C {
|
||||
}
|
||||
|
||||
private List newMethod(Object[] array) {
|
||||
List l1 = new ArrayList(Arrays.asList(array));
|
||||
return l1;
|
||||
return new ArrayList(Arrays.asList(array));
|
||||
}
|
||||
|
||||
String[] getObjects() {
|
||||
|
||||
Reference in New Issue
Block a user