mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: adjust params to be final in case of local classes (IDEA-97253)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
|
||||
public static void main(String[] args) {
|
||||
final String s = "text";
|
||||
<selection>class A {
|
||||
{
|
||||
System.out.println(s);
|
||||
}
|
||||
}</selection>
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
class Test {
|
||||
|
||||
public static void main(String[] args) {
|
||||
final String s = "text";
|
||||
newMethod(s);
|
||||
}
|
||||
|
||||
private static void newMethod(final String s) {
|
||||
class A {
|
||||
{
|
||||
System.out.println(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -7,7 +7,7 @@ class A {
|
||||
System.out.println("");
|
||||
}
|
||||
|
||||
private boolean newMethod(int abc, boolean b) {
|
||||
private boolean newMethod(final int abc, boolean b) {
|
||||
if (b) {
|
||||
class T {
|
||||
void bar() {
|
||||
|
||||
Reference in New Issue
Block a user