mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup AnnotatedElementsSearch
GitOrigin-RevId: 13f548423cfc1f41ed6da66a1047fa1774111b2c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
26c9b00f5a
commit
d0d4ec7fdd
+4
-2
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.psi.search.searches;
|
||||
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
@@ -58,7 +58,9 @@ public final class AnnotatedElementsSearch extends ExtensibleQueryFactory<PsiMod
|
||||
}
|
||||
|
||||
@SafeVarargs
|
||||
public static @NotNull <T extends PsiModifierListOwner> Query<T> searchElements(@NotNull PsiClass annotationClass, @NotNull SearchScope scope, @NotNull Class<? extends T> @NotNull ... types) {
|
||||
public static @NotNull <T extends PsiModifierListOwner> Query<T> searchElements(@NotNull PsiClass annotationClass,
|
||||
@NotNull SearchScope scope,
|
||||
@NotNull Class<? extends T> @NotNull ... types) {
|
||||
//noinspection unchecked
|
||||
return (Query<T>)searchElements(new Parameters(annotationClass, scope, types));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user