diff --git a/CHANGES.txt b/CHANGES.txt index 2f88800e361..b2428348513 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -61,6 +61,10 @@ Changes in runtime behavior See FSDirectory for getter/setter methods: disableLuceneLocks (Daniel Naber) + + 8. Minor change in FieldCacheImpl to make it use its own IntParser and + FloatParser inner classes. + (Yonik Seeley via Otis Gospodnetic) New features diff --git a/src/java/org/apache/lucene/search/FieldCacheImpl.java b/src/java/org/apache/lucene/search/FieldCacheImpl.java index af8e6613562..9e804f1450c 100644 --- a/src/java/org/apache/lucene/search/FieldCacheImpl.java +++ b/src/java/org/apache/lucene/search/FieldCacheImpl.java @@ -164,7 +164,7 @@ implements FieldCache { do { Term term = termEnum.term(); if (term.field() != field) break; - int termval = Integer.parseInt (term.text()); + int termval = parser.parseInt(term.text()); termDocs.seek (termEnum); while (termDocs.next()) { retArray[termDocs.doc()] = termval; @@ -204,7 +204,7 @@ implements FieldCache { do { Term term = termEnum.term(); if (term.field() != field) break; - float termval = Float.parseFloat (term.text()); + float termval = parser.parseFloat(term.text()); termDocs.seek (termEnum); while (termDocs.next()) { retArray[termDocs.doc()] = termval;