mirror of https://github.com/apache/lucene.git
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:
parent
b29680e233
commit
700f210d16
|
@ -72,7 +72,7 @@ public class DoubleFieldSource extends FieldCacheSource {
|
|||
}
|
||||
|
||||
public String toString(int doc) {
|
||||
return description() + '=' + floatVal(doc);
|
||||
return description() + '=' + doubleVal(doc);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue