mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
extract method: suggested names for folded params should be unique (IDEA-120974)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
String get(String[] args) {
|
||||
<selection>String arg = args[0];
|
||||
return arg;</selection>
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
String get(String[] args) {
|
||||
return newMethod(args[0]);
|
||||
}
|
||||
|
||||
private String newMethod(String arg1) {
|
||||
String arg = arg1;
|
||||
return arg;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user