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 38b4748312db6e1d0fd28fc3511349b2960e11c1 Author: Marcin Mielzynski <[email protected]> Date: Sun Mar 11 18:41:24 2012 +0100 Ditto for interval token. --- src/org/joni/Parser.java | 2 +- src/org/joni/ast/StringNode.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/joni/Parser.java b/src/org/joni/Parser.java index ec8ddaa..98e03d1 100644 --- a/src/org/joni/Parser.java +++ b/src/org/joni/Parser.java @@ -784,7 +784,7 @@ class Parser extends Lexer { if (syntax.contextInvalidRepeatOps()) { newSyntaxException(ERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIED); } else { - node = new StringNode(); // node_new_empty + node = StringNode.EMPTY; // node_new_empty } } else { return parseExpTkByte(group); // goto tk_byte diff --git a/src/org/joni/ast/StringNode.java b/src/org/joni/ast/StringNode.java index 2857c94..45f0889 100644 --- a/src/org/joni/ast/StringNode.java +++ b/src/org/joni/ast/StringNode.java @@ -26,6 +26,7 @@ public final class StringNode extends Node implements StringType { private static final int NODE_STR_MARGIN = 16; private static final int NODE_STR_BUF_SIZE = 24; + public static final StringNode EMPTY = new StringNode(null, Integer.MAX_VALUE, Integer.MAX_VALUE); public byte[]bytes; public int p; -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

