From 23dc2d18a285ea19b443ff1b5d1ad151243ef261 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Mon, 18 Apr 2016 16:21:50 -0400 Subject: [PATCH] Fix javadoc for new methods --- .../java/org/elasticsearch/common/io/stream/StreamInput.java | 1 + .../java/org/elasticsearch/common/io/stream/StreamOutput.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/common/io/stream/StreamInput.java b/core/src/main/java/org/elasticsearch/common/io/stream/StreamInput.java index 887a30afb13..5469ced526f 100644 --- a/core/src/main/java/org/elasticsearch/common/io/stream/StreamInput.java +++ b/core/src/main/java/org/elasticsearch/common/io/stream/StreamInput.java @@ -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 readNamedWriteable(@SuppressWarnings("unused") Class categoryClass) throws IOException { throw new UnsupportedOperationException("can't read named writeable from StreamInput"); } diff --git a/core/src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java b/core/src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java index 1a0213ca094..fac66d42265 100644 --- a/core/src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java +++ b/core/src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java @@ -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) {