diff --git a/java/java-impl/src/com/intellij/psi/impl/java/stubs/JavaAnnotationElementType.java b/java/java-impl/src/com/intellij/psi/impl/java/stubs/JavaAnnotationElementType.java index 27a36a147cec..f763b8053a89 100644 --- a/java/java-impl/src/com/intellij/psi/impl/java/stubs/JavaAnnotationElementType.java +++ b/java/java-impl/src/com/intellij/psi/impl/java/stubs/JavaAnnotationElementType.java @@ -22,7 +22,7 @@ import com.intellij.psi.PsiAnnotation; import com.intellij.psi.PsiNameHelper; import com.intellij.psi.impl.compiled.ClsAnnotationImpl; import com.intellij.psi.impl.java.stubs.impl.PsiAnnotationStubImpl; -import com.intellij.psi.impl.java.stubs.index.JavaAnnotationIndex; +import com.intellij.psi.impl.java.stubs.index.JavaStubIndexKeys; import com.intellij.psi.impl.source.tree.LightTreeUtil; import com.intellij.psi.impl.source.tree.java.AnnotationElement; import com.intellij.psi.impl.source.tree.java.PsiAnnotationImpl; @@ -77,7 +77,7 @@ public class JavaAnnotationElementType extends JavaStubElementType { - public static final StubIndexKey KEY = StubIndexKey.createIndexKey("java.annotations"); private static final JavaAnnotationIndex ourInstance = new JavaAnnotationIndex(); public static JavaAnnotationIndex getInstance() { @@ -37,7 +36,7 @@ public class JavaAnnotationIndex extends StringStubIndexExtension } public StubIndexKey getKey() { - return KEY; + return JavaStubIndexKeys.ANNOTATIONS; } public Collection get(final String s, final Project project, final GlobalSearchScope scope) { diff --git a/java/java-impl/src/com/intellij/psi/impl/java/stubs/index/JavaStubIndexKeys.java b/java/java-impl/src/com/intellij/psi/impl/java/stubs/index/JavaStubIndexKeys.java new file mode 100644 index 000000000000..cf8f4020586e --- /dev/null +++ b/java/java-impl/src/com/intellij/psi/impl/java/stubs/index/JavaStubIndexKeys.java @@ -0,0 +1,29 @@ +/* + * Copyright 2000-2011 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.intellij.psi.impl.java.stubs.index; + +import com.intellij.psi.PsiAnnotation; +import com.intellij.psi.stubs.StubIndexKey; + +/** + * @author yole + */ +public class JavaStubIndexKeys { + public static final StubIndexKey ANNOTATIONS = StubIndexKey.createIndexKey("java.annotations"); + + private JavaStubIndexKeys() { + } +}