mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-84307 Useless intention (change Comparator to Comparator)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Change type of TT to java.util.Comparator<java.lang.String>" "true"
|
||||
import java.util.*;
|
||||
class CCCC {
|
||||
private final static Comparator<String> <caret>TT = new Comparator<String>() {
|
||||
@Override
|
||||
public int compare(String o1, String o2) {
|
||||
return 0; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
};
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Change type of TT to java.util.Comparator<java.lang.String>" "true"
|
||||
import java.util.*;
|
||||
class CCCC {
|
||||
private final static Comparator <caret>TT = new Comparator<String>() {
|
||||
@Override
|
||||
public int compare(String o1, String o2) {
|
||||
return 0; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
};
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Change type of TTT to java.util.Comparator" "false"
|
||||
import java.util.*;
|
||||
class CCCC implements Comparator {
|
||||
private final static Comparator <caret>TTT = new CCCC();
|
||||
@Override
|
||||
public int compare(Object o1, Object o2) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user