mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -458,7 +458,7 @@ public abstract class GlobalSearchScope extends SearchScope implements ProjectAw
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static GlobalSearchScope getScopeRestrictedByFileTypes (@NotNull GlobalSearchScope scope, final FileType... fileTypes) {
|
||||
public static GlobalSearchScope getScopeRestrictedByFileTypes(@NotNull GlobalSearchScope scope, @NotNull FileType... fileTypes) {
|
||||
if (scope == EMPTY_SCOPE) {
|
||||
return EMPTY_SCOPE;
|
||||
}
|
||||
@@ -529,6 +529,11 @@ public abstract class GlobalSearchScope extends SearchScope implements ProjectAw
|
||||
result = 31 * result + Arrays.hashCode(myFileTypes);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "(" + myBaseScope + " restricted by file types: "+Arrays.asList(myFileTypes)+")";
|
||||
}
|
||||
}
|
||||
|
||||
private static class EmptyScope extends GlobalSearchScope {
|
||||
|
||||
Reference in New Issue
Block a user