From 4c60ff4437a116f903de2f2eaf75aa8f74b738fd Mon Sep 17 00:00:00 2001 From: Max Medvedev Date: Fri, 22 Aug 2025 15:01:13 +0200 Subject: [PATCH] cleanup JavaAnnotationIndex GitOrigin-RevId: 3c83d50d85a84170edda2fd2bed4da081c0dda88 --- .../psi/impl/java/stubs/index/JavaAnnotationIndex.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnnotationIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnnotationIndex.java index d0fe44967646..ffd9897f2fec 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnnotationIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnnotationIndex.java @@ -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.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -33,7 +33,11 @@ public final class JavaAnnotationIndex extends StringStubIndexExtension getAnnotations(final @NotNull String s, final @NotNull Project project, final @NotNull GlobalSearchScope scope) { - return StubIndex.getElements(getKey(), s, project, new JavaSourceFilterScope(scope), PsiAnnotation.class); + public Collection getAnnotations( + @NotNull String shortName, + @NotNull Project project, + @NotNull GlobalSearchScope scope + ) { + return StubIndex.getElements(getKey(), shortName, project, new JavaSourceFilterScope(scope), PsiAnnotation.class); } } \ No newline at end of file