Fix javadoc for new methods

This commit is contained in:
Nik Everett 2016-04-18 16:21:50 -04:00
parent ff9b28d806
commit 23dc2d18a2
2 changed files with 2 additions and 1 deletions

View File

@ -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");
}

View File

@ -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) {