[jruby-joni] 149/194: backref node cleanup
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:36 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 18520a287f5ec3a555667de02a0f5c1c501a0c2e
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Thu Jan 11 17:20:40 2018 +0100
backref node cleanup
---
src/org/joni/ast/BackRefNode.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/org/joni/ast/BackRefNode.java b/src/org/joni/ast/BackRefNode.java
index 76c89a3..bffba36 100644
--- a/src/org/joni/ast/BackRefNode.java
+++ b/src/org/joni/ast/BackRefNode.java
@@ -25,11 +25,11 @@ import org.joni.exception.ErrorMessages;
import org.joni.exception.ValueException;
public final class BackRefNode extends StateNode {
+ public final int back[];
public int backNum;
- public int back[];
public int nestLevel;
- public BackRefNode(int backNum, int[]backRefs, boolean byName, ScanEnvironment env) {
+ private BackRefNode(int backNum, int[]backRefs, boolean byName, ScanEnvironment env) {
super(BREF);
this.backNum = backNum;
if (byName) setNameRef();
@@ -75,12 +75,12 @@ public final class BackRefNode extends StateNode {
@Override
public String toString(int level) {
- StringBuilder value = new StringBuilder(super.toString(level));
- value.append("\n backNum: " + backNum);
+ StringBuilder sb = new StringBuilder(super.toString(level));
+ sb.append("\n backNum: " + backNum);
String backs = "";
for (int i=0; i<back.length; i++) backs += back[i] + ", ";
- value.append("\n back: " + backs);
- value.append("\n nextLevel: " + nestLevel);
- return value.toString();
+ sb.append("\n back: " + backs);
+ sb.append("\n nextLevel: " + nestLevel);
+ return sb.toString();
}
}
--
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