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:48 UTC
[1/3] httpcomponents-core git commit: Javadoc. [Forced Update!]
Repository: httpcomponents-core
Updated Branches:
refs/heads/master de8f8f5d6 -> d54599238 (forced update)
Javadoc.
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/6f56b713
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/6f56b713
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/6f56b713
Branch: refs/heads/master
Commit: 6f56b713c0ab6b79c40cc26abaad134e969c7295
Parents: ce75b93
Author: Gary Gregory <ga...@gmail.com>
Authored: Sat Nov 10 11:06:26 2018 -0700
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Sat Nov 10 20:43:07 2018 +0100
----------------------------------------------------------------------
.../java/org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/6f56b713/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java
index 1d75d43..915591f 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java
@@ -136,6 +136,8 @@ public class ExpandableBuffer {
/**
* Ensures the buffer can accommodate the required capacity.
+ *
+ * @param requiredCapacity the required capacity.
*/
protected void ensureCapacity(final int requiredCapacity) {
if (requiredCapacity > this.buffer.capacity()) {
[2/3] httpcomponents-core git commit: Remove unused exceptions from
method signatures.
Posted by ol...@apache.org.
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;
}
[3/3] httpcomponents-core git commit: Fix type in local var name.
Posted by ol...@apache.org.
Fix type in local var name.
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/d5459923
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/d5459923
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/d5459923
Branch: refs/heads/master
Commit: d54599238023ce0f77cb6ae2d4926960fd3fd1ad
Parents: e4dbf17
Author: Gary Gregory <ga...@gmail.com>
Authored: Sat Nov 10 11:23:05 2018 -0700
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Sat Nov 10 20:44:01 2018 +0100
----------------------------------------------------------------------
.../org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/d5459923/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java
index 915591f..85e681d 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/ExpandableBuffer.java
@@ -99,10 +99,10 @@ public class ExpandableBuffer {
}
private void expandCapacity(final int capacity) {
- final ByteBuffer oldbuffer = this.buffer;
+ final ByteBuffer oldBuffer = this.buffer;
this.buffer = ByteBuffer.allocate(capacity);
- oldbuffer.flip();
- this.buffer.put(oldbuffer);
+ oldBuffer.flip();
+ this.buffer.put(oldBuffer);
}
/**