LUCENE-1662: consolidate FieldCache and ExtendedFieldCache default instances

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@779277 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-05-27 19:10:24 +00:00
parent 8f9e8ab285
commit 76e01c1d06
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public interface ExtendedFieldCache extends FieldCache {
public double parseDouble(String string);
}
public static ExtendedFieldCache EXT_DEFAULT = new ExtendedFieldCacheImpl();
public static ExtendedFieldCache EXT_DEFAULT = (ExtendedFieldCache)FieldCache.DEFAULT;
/**
* Checks the internal cache for an appropriate entry, and if none is

View File

@ -127,7 +127,7 @@ public interface FieldCache {
}
/** Expert: The cache used internally by sorting and range query classes. */
public static FieldCache DEFAULT = new FieldCacheImpl();
public static FieldCache DEFAULT = new ExtendedFieldCacheImpl();
/** Checks the internal cache for an appropriate entry, and if none is
* found, reads the terms in <code>field</code> as a single byte and returns an array