mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
preserve comments: change new operator type
This commit is contained in:
+7
-5
@@ -1,9 +1,11 @@
|
||||
// "Change 'new Runnable() {...}' to 'new StringBuffer()'" "true"
|
||||
|
||||
class X {
|
||||
public StringBuffer buf = new StringBuffer() {
|
||||
public void run(){
|
||||
System.out.println("smth");
|
||||
}
|
||||
};
|
||||
//comment0
|
||||
//comment1
|
||||
public StringBuffer buf = new StringBuffer() {//comment2
|
||||
public void run(){
|
||||
System.out.println("smth");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
+4
-1
@@ -1,7 +1,10 @@
|
||||
// "Change 'new Runnable() {...}' to 'new StringBuffer()'" "true"
|
||||
|
||||
class X {
|
||||
public StringBuffer buf = <caret>new Runnable(){
|
||||
public StringBuffer buf = <caret>new Runnable//comment0
|
||||
()
|
||||
//comment1
|
||||
{//comment2
|
||||
public void run(){
|
||||
System.out.println("smth");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user