This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/johnzon.git


The following commit(s) were added to refs/heads/master by this push:
     new 291c09f  remove useless subtraction of bufferPos
291c09f is described below

commit 291c09f886ccc9baea9d0266fe3f92443a7a8079
Author: Mark Struberg <strub...@apache.org>
AuthorDate: Mon Feb 1 22:22:23 2021 +0100

    remove useless subtraction of bufferPos
    
    it is always zero at this point
---
 .../src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java 
b/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java
index 8f2edb6..9d42c87 100644
--- 
a/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java
+++ 
b/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java
@@ -320,7 +320,7 @@ public class JsonStreamParserImpl extends 
JohnzonJsonParserImpl implements JsonC
             }
 
             bufferPos = 0;
-            bufferLeft = availableCharsInBuffer - bufferPos - 1;
+            bufferLeft = availableCharsInBuffer - 1;
             //end fillbuffer
         } else {
 

Reply via email to