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:50 UTC

[3/3] httpcomponents-core git commit: Fix type in local var name.

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);
     }
 
     /**