fix compile errors
This commit is contained in:
parent
ce42ae4cf3
commit
aa464778b1
|
@ -67,7 +67,7 @@ public class SimulateDocumentSimpleResult implements SimulateDocumentResult<Simu
|
|||
Exception exception = in.readThrowable();
|
||||
return new SimulateDocumentSimpleResult(exception);
|
||||
}
|
||||
return new SimulateDocumentSimpleResult(WriteableIngestDocument.readWriteableIngestDocumentFrom(in));
|
||||
return new SimulateDocumentSimpleResult(new WriteableIngestDocument(in));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -108,7 +108,7 @@ public class WriteableIngestDocumentTests extends ESTestCase {
|
|||
BytesStreamOutput out = new BytesStreamOutput();
|
||||
writeableIngestDocument.writeTo(out);
|
||||
StreamInput streamInput = StreamInput.wrap(out.bytes());
|
||||
WriteableIngestDocument otherWriteableIngestDocument = WriteableIngestDocument.readWriteableIngestDocumentFrom(streamInput);
|
||||
WriteableIngestDocument otherWriteableIngestDocument = new WriteableIngestDocument(streamInput);
|
||||
assertThat(otherWriteableIngestDocument, equalTo(writeableIngestDocument));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue