mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simplify code (IDEA-CR-11904)
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ public class PsiMultiReference implements PsiPolyVariantReference {
|
||||
public int compare(final PsiReference ref1, final PsiReference ref2) {
|
||||
boolean soft1 = ref1.isSoft();
|
||||
boolean soft2 = ref2.isSoft();
|
||||
if (soft1 ^ soft2) return soft1 ? 1 : -1;
|
||||
if (soft1 != soft2) return soft1 ? 1 : -1;
|
||||
|
||||
boolean resolves1 = resolves(ref1);
|
||||
boolean resolves2 = resolves(ref2);
|
||||
|
||||
Reference in New Issue
Block a user