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/10 18:23:07 UTC
httpcomponents-core git commit: Fix type in local var name.
Repository: httpcomponents-core
Updated Branches:
refs/heads/master e49db9b81 -> fe670f9a7
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/fe670f9a
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/fe670f9a
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/fe670f9a
Branch: refs/heads/master
Commit: fe670f9a7fa0203ea44b6fd45799837f51cb6946
Parents: e49db9b
Author: Gary Gregory <ga...@gmail.com>
Authored: Sat Nov 10 11:23:05 2018 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Sat Nov 10 11:23:05 2018 -0700
----------------------------------------------------------------------
.../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/fe670f9a/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 261a11d..be94fa5 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);
}
/**