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 67f8bde38c2e..0b77e1a43a7b 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,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,10 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * @author max - */ package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -30,9 +26,12 @@ import org.jetbrains.annotations.NotNull; import java.util.Collection; +/** + * @author max + */ public class JavaAnnotationIndex extends StringStubIndexExtension { - private static final JavaAnnotationIndex ourInstance = new JavaAnnotationIndex(); + public static JavaAnnotationIndex getInstance() { return ourInstance; } diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnonymousClassBaseRefOccurenceIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnonymousClassBaseRefOccurenceIndex.java index 0439ea5a726f..4a74ed862767 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnonymousClassBaseRefOccurenceIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnonymousClassBaseRefOccurenceIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,10 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * @author max - */ package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -30,14 +26,16 @@ import org.jetbrains.annotations.NotNull; import java.util.Collection; +/** + * @author max + */ public class JavaAnonymousClassBaseRefOccurenceIndex extends StringStubIndexExtension { - private static final JavaAnonymousClassBaseRefOccurenceIndex ourInstance = new JavaAnonymousClassBaseRefOccurenceIndex(); + public static JavaAnonymousClassBaseRefOccurenceIndex getInstance() { return ourInstance; } - @NotNull @Override public StubIndexKey getKey() { diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaFieldNameIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaFieldNameIndex.java index d2d4cc812123..59f679611d79 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaFieldNameIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaFieldNameIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,10 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * @author max - */ package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -30,9 +26,12 @@ import org.jetbrains.annotations.NotNull; import java.util.Collection; +/** + * @author max + */ public class JavaFieldNameIndex extends StringStubIndexExtension { - private static final JavaFieldNameIndex ourInstance = new JavaFieldNameIndex(); + public static JavaFieldNameIndex getInstance() { return ourInstance; } diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaFullClassNameIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaFullClassNameIndex.java index ecabef22aa08..c7810f450c7e 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaFullClassNameIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaFullClassNameIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,10 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * @author max - */ package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -30,9 +26,12 @@ import org.jetbrains.annotations.NotNull; import java.util.Collection; +/** + * @author max + */ public class JavaFullClassNameIndex extends IntStubIndexExtension { - private static final JavaFullClassNameIndex ourInstance = new JavaFullClassNameIndex(); + public static JavaFullClassNameIndex getInstance() { return ourInstance; } diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaMethodNameIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaMethodNameIndex.java index 42e95d38479f..1e0091bb7f64 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaMethodNameIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaMethodNameIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,10 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * @author max - */ package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -30,9 +26,12 @@ import org.jetbrains.annotations.NotNull; import java.util.Collection; +/** + * @author max + */ public class JavaMethodNameIndex extends StringStubIndexExtension { - private static final JavaMethodNameIndex ourInstance = new JavaMethodNameIndex(); + public static JavaMethodNameIndex getInstance() { return ourInstance; } diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaMethodParameterTypesIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaMethodParameterTypesIndex.java index e310232339c0..43bf12adf383 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaMethodParameterTypesIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaMethodParameterTypesIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,10 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * @author max - */ package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -30,9 +26,12 @@ import org.jetbrains.annotations.NotNull; import java.util.Collection; +/** + * @author max + */ public class JavaMethodParameterTypesIndex extends StringStubIndexExtension { - private static final JavaMethodParameterTypesIndex ourInstance = new JavaMethodParameterTypesIndex(); + public static JavaMethodParameterTypesIndex getInstance() { return ourInstance; } diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaModuleNameIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaModuleNameIndex.java index f13a406fc82e..34ee59fd0cca 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaModuleNameIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaModuleNameIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2016 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,10 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * @author max - */ package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaShortClassNameIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaShortClassNameIndex.java index d3a76c2fb37e..f9b9e8f59725 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaShortClassNameIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaShortClassNameIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,10 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * @author max - */ package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -31,8 +27,10 @@ import org.jetbrains.annotations.NotNull; import java.util.Collection; +/** + * @author max + */ public class JavaShortClassNameIndex extends StringStubIndexExtension { - private static final JavaShortClassNameIndex ourInstance = new JavaShortClassNameIndex(); public static JavaShortClassNameIndex getInstance() { diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaStaticMemberNameIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaStaticMemberNameIndex.java index 3b86d232b57a..cd9acb2b4bca 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaStaticMemberNameIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaStaticMemberNameIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2012 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,10 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * @author max - */ package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -30,9 +26,12 @@ import org.jetbrains.annotations.NotNull; import java.util.Collection; +/** + * @author max + */ public class JavaStaticMemberNameIndex extends StringStubIndexExtension { - private static final JavaStaticMemberNameIndex ourInstance = new JavaStaticMemberNameIndex(); + public static JavaStaticMemberNameIndex getInstance() { return ourInstance; } diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaStaticMemberTypeIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaStaticMemberTypeIndex.java index 2bd119dc071f..2107c7c8a223 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaStaticMemberTypeIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaStaticMemberTypeIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2012 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,10 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * @author max - */ package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -30,9 +26,12 @@ import org.jetbrains.annotations.NotNull; import java.util.Collection; +/** + * @author max + */ public class JavaStaticMemberTypeIndex extends StringStubIndexExtension { - private static final JavaStaticMemberTypeIndex ourInstance = new JavaStaticMemberTypeIndex(); + public static JavaStaticMemberTypeIndex getInstance() { return ourInstance; } @@ -44,7 +43,6 @@ public class JavaStaticMemberTypeIndex extends StringStubIndexExtension getStaticMembers(@NotNull final String shortTypeText, final Project project, @NotNull final GlobalSearchScope scope) { - return StubIndex.getElements(JavaStubIndexKeys.JVM_STATIC_MEMBERS_TYPES, shortTypeText, project, - new JavaSourceFilterScope(scope), PsiMember.class); + return StubIndex.getElements(JavaStubIndexKeys.JVM_STATIC_MEMBERS_TYPES, shortTypeText, project, new JavaSourceFilterScope(scope), PsiMember.class); } } \ No newline at end of file diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaSuperClassNameOccurenceIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaSuperClassNameOccurenceIndex.java index 542ed3896f08..42883e05677a 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaSuperClassNameOccurenceIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaSuperClassNameOccurenceIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -13,10 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * @author max - */ package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -30,10 +26,13 @@ import org.jetbrains.annotations.NotNull; import java.util.Collection; +/** + * @author max + */ public class JavaSuperClassNameOccurenceIndex extends StringStubIndexExtension { private static final int VERSION = 1; - private static final JavaSuperClassNameOccurenceIndex ourInstance = new JavaSuperClassNameOccurenceIndex(); + public static JavaSuperClassNameOccurenceIndex getInstance() { return ourInstance; } @@ -53,4 +52,4 @@ public class JavaSuperClassNameOccurenceIndex extends StringStubIndexExtension