fix copy-n-paste typos from Double and Long field sources

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@799894 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-08-01 16:05:43 +00:00
parent b29680e233
commit 700f210d16
2 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ public class DoubleFieldSource extends FieldCacheSource {
}
public String toString(int doc) {
return description() + '=' + floatVal(doc);
return description() + '=' + doubleVal(doc);
}
@Override

View File

@ -69,11 +69,11 @@ public class LongFieldSource extends FieldCacheSource {
}
public String strVal(int doc) {
return Double.toString(arr[doc]);
return Long.toString(arr[doc]);
}
public String toString(int doc) {
return description() + '=' + floatVal(doc);
return description() + '=' + longVal(doc);
}