mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove usages of PsiDependentIndex
GitOrigin-RevId: 22be85b5dfd4fbe5ca008ab42c68a9db25cae95f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
07134a34ef
commit
9a4399f44b
@@ -61,7 +61,7 @@ private fun resolveFieldFromIndexValue(method: PsiMethodImpl, isGetter: Boolean)
|
||||
|
||||
data class PropertyIndexValue(val propertyRefText: String, val getter: Boolean)
|
||||
|
||||
class JavaSimplePropertyIndex : FileBasedIndexExtension<Int, PropertyIndexValue>(), PsiDependentIndex {
|
||||
class JavaSimplePropertyIndex : FileBasedIndexExtension<Int, PropertyIndexValue>() {
|
||||
private val allowedExpressions by lazy {
|
||||
TokenSet.create(ElementType.REFERENCE_EXPRESSION, ElementType.THIS_EXPRESSION, ElementType.SUPER_EXPRESSION)
|
||||
}
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class JavaBinaryPlusExpressionIndex extends FileBasedIndexExtension<Boolean, JavaBinaryPlusExpressionIndex.PlusOffsets> implements PsiDependentIndex {
|
||||
public class JavaBinaryPlusExpressionIndex extends FileBasedIndexExtension<Boolean, JavaBinaryPlusExpressionIndex.PlusOffsets> {
|
||||
public static final ID<Boolean, PlusOffsets> INDEX_ID = ID.create("java.binary.plus.expression");
|
||||
|
||||
@NotNull
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import static com.intellij.psi.impl.source.tree.JavaElementType.*;
|
||||
|
||||
public class JavaFunctionalExpressionIndex extends FileBasedIndexExtension<FunctionalExpressionKey, Map<Integer, FunExprOccurrence>> implements PsiDependentIndex {
|
||||
public class JavaFunctionalExpressionIndex extends FileBasedIndexExtension<FunctionalExpressionKey, Map<Integer, FunExprOccurrence>> {
|
||||
public static final ID<FunctionalExpressionKey, Map<Integer, FunExprOccurrence>> INDEX_ID = ID.create("java.fun.expression");
|
||||
private static final KeyDescriptor<FunctionalExpressionKey> KEY_DESCRIPTOR = new KeyDescriptor<FunctionalExpressionKey>() {
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ import java.util.*;
|
||||
|
||||
import static com.intellij.psi.impl.source.tree.JavaElementType.*;
|
||||
|
||||
public class JavaNullMethodArgumentIndex extends ScalarIndexExtension<JavaNullMethodArgumentIndex.MethodCallData> implements PsiDependentIndex {
|
||||
public class JavaNullMethodArgumentIndex extends ScalarIndexExtension<JavaNullMethodArgumentIndex.MethodCallData> {
|
||||
private static final Logger LOG = Logger.getInstance(JavaNullMethodArgumentIndex.class);
|
||||
|
||||
public static final ID<MethodCallData, Void> INDEX_ID = ID.create("java.null.method.argument");
|
||||
|
||||
@@ -48,7 +48,7 @@ import java.util.Map;
|
||||
/**
|
||||
* @author Maxim.Mossienko on 12/11/13.
|
||||
*/
|
||||
public class DuplicatesIndex extends FileBasedIndexExtension<Integer, TIntArrayList> implements PsiDependentIndex {
|
||||
public class DuplicatesIndex extends FileBasedIndexExtension<Integer, TIntArrayList> {
|
||||
static boolean ourEnabled = SystemProperties.getBooleanProperty("idea.enable.duplicates.online.calculation",
|
||||
true);
|
||||
static final boolean ourEnabledLightProfiles = true;
|
||||
|
||||
@@ -45,8 +45,7 @@ import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
public class StubUpdatingIndex extends SingleEntryFileBasedIndexExtension<SerializedStubTree>
|
||||
implements PsiDependentIndex,
|
||||
CustomImplementationFileBasedIndexExtension<Integer, SerializedStubTree> {
|
||||
implements CustomImplementationFileBasedIndexExtension<Integer, SerializedStubTree> {
|
||||
static final Logger LOG = Logger.getInstance("#com.intellij.psi.stubs.StubUpdatingIndex");
|
||||
private static final int VERSION = 39 + (PersistentHashMapValueStorage.COMPRESSION_ENABLED ? 1 : 0);
|
||||
|
||||
|
||||
@@ -34,9 +34,7 @@ import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class IdeaPluginRegistrationIndex
|
||||
extends FileBasedIndexExtension<String, List<RegistrationEntry>>
|
||||
implements PsiDependentIndex {
|
||||
public class IdeaPluginRegistrationIndex extends FileBasedIndexExtension<String, List<RegistrationEntry>> {
|
||||
|
||||
private static final int INDEX_VERSION = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user