[jruby-joni] 256/279: Cleanup
Hideki Yamane
henrich at moszumanska.debian.org
Mon Nov 16 11:27:47 UTC 2015
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 a305200a32a419ef1a2f3be62ff8c61974bb3ba9
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Fri Apr 10 01:22:02 2015 +0200
Cleanup
---
src/org/joni/Parser.java | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/org/joni/Parser.java b/src/org/joni/Parser.java
index 3891416..992c2f7 100644
--- a/src/org/joni/Parser.java
+++ b/src/org/joni/Parser.java
@@ -27,7 +27,6 @@ import static org.joni.Option.isIgnoreCase;
import org.jcodings.Ptr;
import org.jcodings.constants.CharacterType;
import org.jcodings.constants.PosixBracket;
-import org.jcodings.specific.ASCIIEncoding;
import org.jcodings.unicode.UnicodeEncoding;
import org.joni.ast.AnchorNode;
import org.joni.ast.AnyCharNode;
@@ -757,7 +756,6 @@ class Parser extends Lexer {
/* (?>...) */
EncloseNode en = new EncloseNode(EncloseType.STOP_BACKTRACK);
en.setTarget(ConsAltNode.newAltNode(left, ConsAltNode.newAltNode(right, null)));
-
node = en;
break;
@@ -774,10 +772,9 @@ class Parser extends Lexer {
QuantifierNode qn = new QuantifierNode(0, QuantifierNode.REPEAT_INFINITE, false);
qn.setTarget(cc2);
/* \P{M}\p{M}* */
- ConsAltNode list2 = ConsAltNode.newListNode(qn, null);
- ConsAltNode list1 = ConsAltNode.newListNode(cc1, list2);
+ ConsAltNode list = ConsAltNode.newListNode(cc1, ConsAltNode.newListNode(qn, null));
EncloseNode en2 = new EncloseNode(EncloseType.STOP_BACKTRACK);
- en2.setTarget(list1);
+ en2.setTarget(list);
node = en2;
}
}
--
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