mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
expressions presentation tweaks, new expression type changes should not delete anonymous class (IDEA-58290)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Change 'new Runnable() {...}' to 'new StringBuffer()'" "true"
|
||||
|
||||
class X {
|
||||
public StringBuffer buf = new StringBuffer(){
|
||||
public void run(){
|
||||
System.out.println("smth");
|
||||
}
|
||||
};
|
||||
}
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// "Change 'new ArrayList<Integer>(2)' to 'new ArrayList<String>()'" "true"
|
||||
// "Change 'new ArrayList<Integer>(...)' to 'new ArrayList<String>()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class RRR {
|
||||
void f() {
|
||||
List<String> l = new ArrayList<String>(2<caret>);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Change 'new Runnable() {...}' to 'new StringBuffer()'" "true"
|
||||
|
||||
class X {
|
||||
public StringBuffer buf = <caret>new Runnable(){
|
||||
public void run(){
|
||||
System.out.println("smth");
|
||||
}
|
||||
};
|
||||
}
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// "Change 'new ArrayList<Integer>(2)' to 'new ArrayList<String>()'" "true"
|
||||
// "Change 'new ArrayList<Integer>(...)' to 'new ArrayList<String>()'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class RRR {
|
||||
void f() {
|
||||
List<String> l = new <caret>ArrayList<Integer>(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user