mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
cleanup
GitOrigin-RevId: f506a673037f67634235969729ea6ad099a99c55
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5edb243cc3
commit
3e2e941004
@@ -75,11 +75,11 @@ public abstract class PsiShortNamesCache {
|
||||
@NotNull
|
||||
public abstract String[] getAllClassNames();
|
||||
|
||||
public boolean processAllClassNames(@NotNull Processor<String> processor) {
|
||||
public boolean processAllClassNames(@NotNull Processor<? super String> processor) {
|
||||
return ContainerUtil.process(getAllClassNames(), processor);
|
||||
}
|
||||
|
||||
public boolean processAllClassNames(@NotNull Processor<String> processor, @NotNull GlobalSearchScope scope, @Nullable IdFilter filter) {
|
||||
public boolean processAllClassNames(@NotNull Processor<? super String> processor, @NotNull GlobalSearchScope scope, @Nullable IdFilter filter) {
|
||||
return ContainerUtil.process(getAllClassNames(), processor);
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public abstract class PsiShortNamesCache {
|
||||
*/
|
||||
@Deprecated
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2020.2")
|
||||
public void getAllClassNames(@NotNull HashSet<String> dest) {
|
||||
public void getAllClassNames(@NotNull HashSet<? super String> dest) {
|
||||
processAllClassNames(new CommonProcessors.CollectProcessor<>(dest));
|
||||
}
|
||||
|
||||
@@ -123,11 +123,11 @@ public abstract class PsiShortNamesCache {
|
||||
return processMethodsWithName(name, scope, method -> processor.process(method));
|
||||
}
|
||||
|
||||
public boolean processAllMethodNames(@NotNull Processor<String> processor, @NotNull GlobalSearchScope scope, @Nullable IdFilter filter) {
|
||||
public boolean processAllMethodNames(@NotNull Processor<? super String> processor, @NotNull GlobalSearchScope scope, @Nullable IdFilter filter) {
|
||||
return ContainerUtil.process(getAllMethodNames(), processor);
|
||||
}
|
||||
|
||||
public boolean processAllFieldNames(@NotNull Processor<String> processor, @NotNull GlobalSearchScope scope, @Nullable IdFilter filter) {
|
||||
public boolean processAllFieldNames(@NotNull Processor<? super String> processor, @NotNull GlobalSearchScope scope, @Nullable IdFilter filter) {
|
||||
return ContainerUtil.process(getAllFieldNames(), processor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user