mirror of https://github.com/apache/lucene.git
LUCENE-3877: don't print to std streams in Lucene core
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1301472 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f37e0f341
commit
4f8375ded9
|
@ -65,7 +65,6 @@ public class SimpleTextDocValuesConsumer extends DocValuesConsumer {
|
|||
hash = new BytesRefHash();
|
||||
ords = new int[0];
|
||||
this.segmentSuffix = segmentSuffix;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -84,11 +83,7 @@ public class SimpleTextDocValuesConsumer extends DocValuesConsumer {
|
|||
case BYTES_VAR_SORTED:
|
||||
case BYTES_VAR_STRAIGHT:
|
||||
vSize = -1;
|
||||
try {
|
||||
ord = hash.add(value.binaryValue());
|
||||
} catch (NullPointerException e) {
|
||||
System.err.println();
|
||||
}
|
||||
break;
|
||||
case FIXED_INTS_16:
|
||||
vSize = 2;
|
||||
|
|
|
@ -476,9 +476,6 @@ public class MultiDocValues extends DocValues {
|
|||
offset = ordToOffset[ord];
|
||||
size = (int) (ordToOffset[1 + ord] - offset);
|
||||
}
|
||||
if (size < 0) {
|
||||
System.out.println();
|
||||
}
|
||||
assert size >=0;
|
||||
return data.fillSlice(bytesRef, offset, size);
|
||||
}
|
||||
|
|
|
@ -92,18 +92,15 @@ public class PairOutputs<A,B> extends Outputs<PairOutputs.Pair<A,B>> {
|
|||
final boolean noOutput2 = pair.output2.equals(outputs2.getNoOutput());
|
||||
|
||||
if (noOutput1 && pair.output1 != outputs1.getNoOutput()) {
|
||||
System.out.println("invalid0");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (noOutput2 && pair.output2 != outputs2.getNoOutput()) {
|
||||
System.out.println("invalid1");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (noOutput1 && noOutput2) {
|
||||
if (pair != NO_OUTPUT) {
|
||||
System.out.println("invalid2");
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue