mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
Allow "Convert 'compareTo()' expression to 'equals()' call" intention in more cases
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class X implements Comparable<X> {
|
||||
boolean m(X x) {
|
||||
return <caret>compareTo(x) == ((int)0.0);
|
||||
}
|
||||
|
||||
public int compareTo(X x) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class X implements Comparable<X> {
|
||||
boolean m(X x) {
|
||||
return equals(x);
|
||||
}
|
||||
|
||||
public int compareTo(X x) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user