You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2018/11/10 19:51:49 UTC
[2/3] httpcomponents-core git commit: Remove unused exceptions from
method signatures.
Remove unused exceptions from method signatures.
There is no issue with subclasses since this class is final.
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/e4dbf17b
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/e4dbf17b
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/e4dbf17b
Branch: refs/heads/master
Commit: e4dbf17bdf08e6996fc16644c6a87782fe582f03
Parents: 6f56b71
Author: Gary Gregory <ga...@gmail.com>
Authored: Sat Nov 10 11:17:01 2018 -0700
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Sat Nov 10 20:44:01 2018 +0100
----------------------------------------------------------------------
.../hc/core5/http/nio/support/classic/SharedInputBuffer.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/e4dbf17b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/support/classic/SharedInputBuffer.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/support/classic/SharedInputBuffer.java b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/support/classic/SharedInputBuffer.java
index d4497fd..d177444 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/support/classic/SharedInputBuffer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/support/classic/SharedInputBuffer.java
@@ -51,7 +51,7 @@ public final class SharedInputBuffer extends AbstractSharedBuffer implements Con
super(new ReentrantLock(), bufferSize);
}
- public int fill(final ByteBuffer src) throws IOException {
+ public int fill(final ByteBuffer src) {
lock.lock();
try {
setInputMode();
@@ -144,7 +144,7 @@ public final class SharedInputBuffer extends AbstractSharedBuffer implements Con
}
}
- public void markEndStream() throws IOException {
+ public void markEndStream() {
if (endStream) {
return;
}