use InlikeKeyDescriptor for indices extending SingleEntryFileBasedIndexExtension
authorEugene Zhuravlev <jeka@intellij.com>
Fri, 2 Apr 2010 07:59:54 +0000 (11:59 +0400)
committerEugene Zhuravlev <jeka@intellij.com>
Fri, 2 Apr 2010 07:59:54 +0000 (11:59 +0400)
images/src/org/intellij/images/index/ImageInfoIndex.java
platform/lang-impl/src/com/intellij/util/indexing/SingleEntryFileBasedIndexExtension.java

index c44e5fc22efa96f623161d6adbc77c6c4c695ad5..5413e4adfe54078860b41ce88c6403800d32cdf2 100644 (file)
@@ -83,7 +83,7 @@ public class ImageInfoIndex extends SingleEntryFileBasedIndexExtension<ImageInfo
   }
 
   public int getVersion() {
-    return 2;
+    return 3;
   }
 
   public static class ImageInfo {
index 9c26f432e8194ae5433947828532548d02e49222..eff4c8f7f87c989f9209334f7b1ffb395d9a43b3 100644 (file)
@@ -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() {