You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2018/11/23 03:36:34 UTC
httpcomponents-core git commit: Javadoc and comments.
Repository: httpcomponents-core
Updated Branches:
refs/heads/master e365962ac -> 05cf0e899
Javadoc and comments.
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/05cf0e89
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/05cf0e89
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/05cf0e89
Branch: refs/heads/master
Commit: 05cf0e8994007a9b0827db8840f650f31ef240c2
Parents: e365962
Author: Gary Gregory <ga...@gmail.com>
Authored: Thu Nov 22 20:36:31 2018 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Thu Nov 22 20:36:31 2018 -0700
----------------------------------------------------------------------
.../hc/core5/http/impl/io/EmptyInputStream.java | 33 ++++++++++++++++++++
1 file changed, 33 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/05cf0e89/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/EmptyInputStream.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/EmptyInputStream.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/EmptyInputStream.java
index 3bcd6f5..8508245 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/EmptyInputStream.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/EmptyInputStream.java
@@ -37,45 +37,78 @@ public final class EmptyInputStream extends InputStream {
public static final EmptyInputStream INSTANCE = new EmptyInputStream();
private EmptyInputStream() {
+ // noop.
}
+ /**
+ * Returns {@code 0}.
+ */
@Override
public int available() {
return 0;
}
+ /**
+ * Noop.
+ */
@Override
public void close() {
+ // noop.
}
+ /**
+ * Noop.
+ */
+ @SuppressWarnings("sync-override")
@Override
public void mark(final int readLimit) {
+ // noop.
}
+ /**
+ * Returns {@code true}.
+ */
@Override
public boolean markSupported() {
return true;
}
+ /**
+ * Returns {@code -1}.
+ */
@Override
public int read() {
return -1;
}
+ /**
+ * Returns {@code -1}.
+ */
@Override
public int read(final byte[] buf) {
return -1;
}
+ /**
+ * Returns {@code -1}.
+ */
@Override
public int read(final byte[] buf, final int off, final int len) {
return -1;
}
+ /**
+ * Noop.
+ */
+ @SuppressWarnings("sync-override")
@Override
public void reset() {
+ // noop
}
+ /**
+ * Returns {@code 0}.
+ */
@Override
public long skip(final long n) {
return 0L;