mirror of https://github.com/apache/lucene.git
replace tabs by spaces, no functional change
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150474 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f6f772958d
commit
2316ebdf3b
|
@ -392,34 +392,34 @@ public final class Field implements java.io.Serializable {
|
||||||
|
|
||||||
/** Prints a Field for human consumption. */
|
/** Prints a Field for human consumption. */
|
||||||
public final String toString() {
|
public final String toString() {
|
||||||
StringBuffer result = new StringBuffer();
|
StringBuffer result = new StringBuffer();
|
||||||
if (isStored)
|
if (isStored)
|
||||||
result.append("stored");
|
result.append("stored");
|
||||||
if (isIndexed) {
|
if (isIndexed) {
|
||||||
if (result.length() > 0)
|
if (result.length() > 0)
|
||||||
result.append(",");
|
result.append(",");
|
||||||
result.append("indexed");
|
result.append("indexed");
|
||||||
}
|
}
|
||||||
if (isTokenized) {
|
if (isTokenized) {
|
||||||
if (result.length() > 0)
|
if (result.length() > 0)
|
||||||
result.append(",");
|
result.append(",");
|
||||||
result.append("tokenized");
|
result.append("tokenized");
|
||||||
}
|
}
|
||||||
if (storeTermVector) {
|
if (storeTermVector) {
|
||||||
if (result.length() > 0)
|
if (result.length() > 0)
|
||||||
result.append(",");
|
result.append(",");
|
||||||
result.append("termVector");
|
result.append("termVector");
|
||||||
}
|
}
|
||||||
result.append('<');
|
result.append('<');
|
||||||
result.append(name);
|
result.append(name);
|
||||||
result.append(':');
|
result.append(':');
|
||||||
if (readerValue != null) {
|
if (readerValue != null) {
|
||||||
result.append(readerValue.toString());
|
result.append(readerValue.toString());
|
||||||
} else {
|
} else {
|
||||||
result.append(stringValue);
|
result.append(stringValue);
|
||||||
}
|
}
|
||||||
result.append('>');
|
result.append('>');
|
||||||
return result.toString();
|
return result.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue