lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r779277 - in /lucene/java/trunk/src/java/org/apache/lucene/search: ExtendedFieldCache.java FieldCache.java
Date Wed, 27 May 2009 19:10:25 GMT
Author: yonik
Date: Wed May 27 19:10:24 2009
New Revision: 779277

URL: http://svn.apache.org/viewvc?rev=779277&view=rev
Log:
LUCENE-1662: consolidate FieldCache and ExtendedFieldCache default instances

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/ExtendedFieldCache.java
    lucene/java/trunk/src/java/org/apache/lucene/search/FieldCache.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/ExtendedFieldCache.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/ExtendedFieldCache.java?rev=779277&r1=779276&r2=779277&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/ExtendedFieldCache.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/ExtendedFieldCache.java Wed May 27
19:10:24 2009
@@ -41,7 +41,7 @@
     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

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/FieldCache.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/FieldCache.java?rev=779277&r1=779276&r2=779277&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/FieldCache.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/FieldCache.java Wed May 27 19:10:24
2009
@@ -127,7 +127,7 @@
   }
 
   /** 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



Mime
View raw message