expressions presentation tweaks, new expression type changes should not delete anonymous class (IDEA-58290)

This commit is contained in:
anna
2010-10-28 11:50:35 +04:00
parent 52a74890d3
commit 7ae3e5f625
6 changed files with 41 additions and 12 deletions
@@ -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");
}
};
}
@@ -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>);
}
}
}
@@ -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");
}
};
}
@@ -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);
}
}
}