mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use InlikeKeyDescriptor for indices extending SingleEntryFileBasedIndexExtension
This commit is contained in:
@@ -83,7 +83,7 @@ public class ImageInfoIndex extends SingleEntryFileBasedIndexExtension<ImageInfo
|
||||
}
|
||||
|
||||
public int getVersion() {
|
||||
return 2;
|
||||
return 3;
|
||||
}
|
||||
|
||||
public static class ImageInfo {
|
||||
|
||||
+2
-2
@@ -16,7 +16,7 @@
|
||||
|
||||
package com.intellij.util.indexing;
|
||||
|
||||
import com.intellij.util.io.ExternalIntegerKeyDescriptor;
|
||||
import com.intellij.util.io.EnumeratorIntegerDescriptor;
|
||||
import com.intellij.util.io.KeyDescriptor;
|
||||
|
||||
/**
|
||||
@@ -27,7 +27,7 @@ import com.intellij.util.io.KeyDescriptor;
|
||||
*/
|
||||
public abstract class SingleEntryFileBasedIndexExtension<V> extends FileBasedIndexExtension<Integer, V>{
|
||||
public final KeyDescriptor<Integer> getKeyDescriptor() {
|
||||
return new ExternalIntegerKeyDescriptor();
|
||||
return EnumeratorIntegerDescriptor.INSTANCE;
|
||||
}
|
||||
|
||||
public boolean dependsOnFileContent() {
|
||||
|
||||
Reference in New Issue
Block a user