[jruby-joni] 115/194: cleanup and remove redundant reset call

Hideki Yamane henrich at moszumanska.debian.org
Thu Feb 1 12:04:32 UTC 2018


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository jruby-joni.

commit d7c13ba0c56d8d4fb8ccc1c7c2fe008eba3aa74e
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date:   Sun Jan 7 20:41:48 2018 +0100

    cleanup and remove redundant reset call
---
 src/org/joni/ScannerSupport.java | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/org/joni/ScannerSupport.java b/src/org/joni/ScannerSupport.java
index 8598fc6..fde0d1d 100644
--- a/src/org/joni/ScannerSupport.java
+++ b/src/org/joni/ScannerSupport.java
@@ -28,7 +28,6 @@ import org.joni.exception.ValueException;
 
 abstract class ScannerSupport extends IntHolder implements ErrorMessages {
     protected final Encoding enc;       // fast access to encoding
-
     protected final byte[]bytes;        // pattern
     protected int p;                    // current scanner position
     protected int stop;                 // pattern end (mutable)
@@ -41,24 +40,20 @@ abstract class ScannerSupport extends IntHolder implements ErrorMessages {
 
     protected ScannerSupport(Encoding enc, byte[]bytes, int p, int end) {
         this.enc = enc;
-
         this.bytes = bytes;
         this.begin = p;
         this.end = end;
-
-        reset();
     }
 
-    protected int getBegin() {
+    protected final int getBegin() {
         return begin;
     }
 
-    protected int getEnd() {
+    protected final int getEnd() {
         return end;
     }
 
-    private final int INT_SIGN_BIT = 1 << 31;
-
+    private static final int INT_SIGN_BIT = 1 << 31;
     protected final int scanUnsignedNumber() {
         int last = c;
         int num = 0; // long ???

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git



More information about the pkg-java-commits mailing list