Cleanup (formatting)

This commit is contained in:
Roman Shevchenko
2017-06-05 15:16:53 +03:00
parent 5d9e95ad5d
commit 72f8f0d9c1
11 changed files with 52 additions and 69 deletions
@@ -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<PsiAnnotation> {
private static final JavaAnnotationIndex ourInstance = new JavaAnnotationIndex();
public static JavaAnnotationIndex getInstance() {
return ourInstance;
}
@@ -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<PsiAnonymousClass> {
private static final JavaAnonymousClassBaseRefOccurenceIndex ourInstance = new JavaAnonymousClassBaseRefOccurenceIndex();
public static JavaAnonymousClassBaseRefOccurenceIndex getInstance() {
return ourInstance;
}
@NotNull
@Override
public StubIndexKey<String, PsiAnonymousClass> getKey() {
@@ -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<PsiField> {
private static final JavaFieldNameIndex ourInstance = new JavaFieldNameIndex();
public static JavaFieldNameIndex getInstance() {
return ourInstance;
}
@@ -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<PsiClass> {
private static final JavaFullClassNameIndex ourInstance = new JavaFullClassNameIndex();
public static JavaFullClassNameIndex getInstance() {
return ourInstance;
}
@@ -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<PsiMethod> {
private static final JavaMethodNameIndex ourInstance = new JavaMethodNameIndex();
public static JavaMethodNameIndex getInstance() {
return ourInstance;
}
@@ -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<PsiMethod> {
private static final JavaMethodParameterTypesIndex ourInstance = new JavaMethodParameterTypesIndex();
public static JavaMethodParameterTypesIndex getInstance() {
return ourInstance;
}
@@ -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;
@@ -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<PsiClass> {
private static final JavaShortClassNameIndex ourInstance = new JavaShortClassNameIndex();
public static JavaShortClassNameIndex getInstance() {
@@ -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<PsiMember> {
private static final JavaStaticMemberNameIndex ourInstance = new JavaStaticMemberNameIndex();
public static JavaStaticMemberNameIndex getInstance() {
return ourInstance;
}
@@ -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<PsiMember> {
private static final JavaStaticMemberTypeIndex ourInstance = new JavaStaticMemberTypeIndex();
public static JavaStaticMemberTypeIndex getInstance() {
return ourInstance;
}
@@ -44,7 +43,6 @@ public class JavaStaticMemberTypeIndex extends StringStubIndexExtension<PsiMembe
}
public Collection<PsiMember> 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);
}
}
@@ -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<PsiReferenceList> {
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<P
public int getVersion() {
return super.getVersion() + VERSION;
}
}
}