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/08/21 15:01:20 UTC
[09/32] httpcomponents-core git commit: Remove unnecessary parens.
Remove unnecessary parens.
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/206cbe9a
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/206cbe9a
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/206cbe9a
Branch: refs/heads/api_javadocs
Commit: 206cbe9a0004dcb537b2597e8d0f3121781f64f6
Parents: 638d038
Author: Gary Gregory <ga...@gmail.com>
Authored: Tue Aug 7 13:21:57 2018 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Tue Aug 7 13:21:57 2018 -0600
----------------------------------------------------------------------
.../java/org/apache/hc/core5/http/io/EofSensorInputStream.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/206cbe9a/httpcore5/src/main/java/org/apache/hc/core5/http/io/EofSensorInputStream.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/io/EofSensorInputStream.java b/httpcore5/src/main/java/org/apache/hc/core5/http/io/EofSensorInputStream.java
index a00da02..53025c8 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/io/EofSensorInputStream.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/io/EofSensorInputStream.java
@@ -106,7 +106,7 @@ public class EofSensorInputStream extends InputStream {
if (selfClosed) {
throw new IOException("Attempted read on closed stream.");
}
- return (wrappedStream != null);
+ return wrappedStream != null;
}
@Override
@@ -272,6 +272,9 @@ public class EofSensorInputStream extends InputStream {
* re-use of the underlying connection, if any. Calling this method
* indicates that there should be no attempt to read until the end of
* the stream.
+ *
+ * @throws IOException
+ * in case of an IO problem on closing the underlying stream
*/
public void abort() throws IOException {
// tolerate multiple calls