mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
optimisation: intersection with itself
This commit is contained in:
@@ -366,7 +366,7 @@ public abstract class GlobalSearchScope extends SearchScope implements ProjectAw
|
||||
@NotNull
|
||||
@Override
|
||||
public GlobalSearchScope intersectWith(@NotNull GlobalSearchScope scope) {
|
||||
if (myScope1.equals(scope) || myScope2.equals(scope)) {
|
||||
if (myScope1.equals(scope) || myScope2.equals(scope) || equals(scope)) {
|
||||
return this;
|
||||
}
|
||||
return new IntersectionScope(this, scope, null);
|
||||
|
||||
Reference in New Issue
Block a user