Fix javadoc for new methods
This commit is contained in:
parent
ff9b28d806
commit
23dc2d18a2
|
@ -721,6 +721,7 @@ public abstract class StreamInput extends InputStream {
|
|||
* Default implementation throws {@link UnsupportedOperationException} as StreamInput doesn't hold a registry.
|
||||
* Use {@link FilterInputStream} instead which wraps a stream and supports a {@link NamedWriteableRegistry} too.
|
||||
*/
|
||||
@Nullable
|
||||
public <C extends NamedWriteable<?>> C readNamedWriteable(@SuppressWarnings("unused") Class<C> categoryClass) throws IOException {
|
||||
throw new UnsupportedOperationException("can't read named writeable from StreamInput");
|
||||
}
|
||||
|
|
|
@ -689,7 +689,7 @@ public abstract class StreamOutput extends OutputStream {
|
|||
}
|
||||
|
||||
/**
|
||||
* Write an optional {@link QueryBuilder} to the stream.
|
||||
* Write an optional {@link NamedWriteable} to the stream.
|
||||
*/
|
||||
public void writeOptionalNamedWriteable(@Nullable NamedWriteable<?> namedWriteable) throws IOException {
|
||||
if (namedWriteable == null) {
|
||||
|
|
Loading…
Reference in New Issue