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 5fa2d7a51c97c4e248467c231867b9bfd57d01e5
Author: lopex <l...@gazeta.pl>
Date:   Wed Jan 10 10:21:10 2018 +0100

    more descriptive names
---
 src/org/joni/Analyser.java       | 4 ++--
 src/org/joni/Parser.java         | 6 +++---
 src/org/joni/ast/StringNode.java | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/org/joni/Analyser.java b/src/org/joni/Analyser.java
index 6b18e61..e9fe576 100644
--- a/src/org/joni/Analyser.java
+++ b/src/org/joni/Analyser.java
@@ -1621,7 +1621,7 @@ final class Analyser extends Parser {
 
                 }
 
-                stringNode.cat(bytes, p, p + len);
+                stringNode.catBytes(bytes, p, p + len);
             } else {
                 altNum *= (items.length + 1);
                 if (altNum > THRESHOLD_CASE_FOLD_ALT_FOR_EXPANSION) break;
@@ -1900,7 +1900,7 @@ final class Analyser extends Parser {
                         str.swap(qn);
                         int n = qn.lower;
                         for (int i = 0; i < n; i++) {
-                            str.cat(sn.bytes, sn.p, sn.end);
+                            str.catBytes(sn.bytes, sn.p, sn.end);
                         }
                         break; /* break case NT_QTFR: */
                     }
diff --git a/src/org/joni/Parser.java b/src/org/joni/Parser.java
index 75ea153..6163b09 100644
--- a/src/org/joni/Parser.java
+++ b/src/org/joni/Parser.java
@@ -1274,7 +1274,7 @@ class Parser extends Lexer {
                 if (token.backP == node.end) {
                     node.end = p; // non escaped character, remain shared, 
just increase shared range
                 } else {
-                    node.cat(bytes, token.backP, p); // non continuous string 
stream, need to COW
+                    node.catBytes(bytes, token.backP, p); // non continuous 
string stream, need to COW
                 }
             } else if (token.type == TokenType.CODE_POINT) {
                 node.catCode(token.getCode(), enc);
@@ -1290,7 +1290,7 @@ class Parser extends Lexer {
         // tk_raw_byte:
         StringNode node = new StringNode();
         node.setRaw();
-        node.cat((byte)token.getC());
+        node.catByte((byte)token.getC());
 
         int len = 1;
         while (true) {
@@ -1309,7 +1309,7 @@ class Parser extends Lexer {
                 // USE_PAD_TO_SHORT_BYTE_CHAR ...
                 newValueException(ERR_TOO_SHORT_MULTI_BYTE_STRING);
             }
-            node.cat((byte)token.getC());
+            node.catByte((byte)token.getC());
             len++;
         } // while
     }
diff --git a/src/org/joni/ast/StringNode.java b/src/org/joni/ast/StringNode.java
index 660bd9a..70cbd35 100644
--- a/src/org/joni/ast/StringNode.java
+++ b/src/org/joni/ast/StringNode.java
@@ -114,14 +114,14 @@ public final class StringNode extends Node implements 
StringType {
         setShared();
     }
 
-    public void cat(byte[]cat, int catP, int catEnd) {
+    public void catBytes(byte[]cat, int catP, int catEnd) {
         int len = catEnd - catP;
         modifyEnsure(len);
         System.arraycopy(cat, catP, bytes, end, len);
         end += len;
     }
 
-    public void cat(byte c) {
+    public void catByte(byte c) {
         modifyEnsure(1);
         bytes[end++] = c;
     }

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

_______________________________________________
pkg-java-commits mailing list
pkg-java-comm...@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to