[jruby-joni] 136/194: cleanup
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:35 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 a70545339bc0bd5fed4b32ec57a12d53b8abc9a7
Author: lopex <lopx at gazeta.pl>
Date: Wed Jan 10 11:50:06 2018 +0100
cleanup
---
src/org/joni/Analyser.java | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/org/joni/Analyser.java b/src/org/joni/Analyser.java
index e9fe576..0d50347 100644
--- a/src/org/joni/Analyser.java
+++ b/src/org/joni/Analyser.java
@@ -1385,12 +1385,11 @@ final class Analyser extends Parser {
return node;
}
- private Node setupLookBehind(Node node) {
- AnchorNode an = (AnchorNode)node;
- int len = getCharLengthTree(an.target);
+ private Node setupLookBehind(AnchorNode node) {
+ int len = getCharLengthTree(node.target);
switch(returnCode) {
case 0:
- an.charLength = len;
+ node.charLength = len;
break;
case GET_CHAR_LEN_VARLEN:
newSyntaxException(ERR_INVALID_LOOK_BEHIND_PATTERN);
@@ -1980,18 +1979,18 @@ final class Analyser extends Parser {
case AnchorType.LOOK_BEHIND:
if (checkTypeTree(an.target, NodeType.ALLOWED_IN_LB, EncloseType.ALLOWED_IN_LB, AnchorType.ALLOWED_IN_LB)) newSyntaxException(ERR_INVALID_LOOK_BEHIND_PATTERN);
- node = setupLookBehind(node);
+ node = setupLookBehind(an);
if (node.getType() != NodeType.ANCHOR) continue restart;
setupTree(((AnchorNode)node).target, state);
- node = setupLookBehind(node);
+ node = setupLookBehind(an);
break;
case AnchorType.LOOK_BEHIND_NOT:
if (checkTypeTree(an.target, NodeType.ALLOWED_IN_LB, EncloseType.ALLOWED_IN_LB_NOT, AnchorType.ALLOWED_IN_LB_NOT)) newSyntaxException(ERR_INVALID_LOOK_BEHIND_PATTERN);
- node = setupLookBehind(node);
+ node = setupLookBehind(an);
if (node.getType() != NodeType.ANCHOR) continue restart;
setupTree(((AnchorNode)node).target, (state | IN_NOT));
- node = setupLookBehind(node);
+ node = setupLookBehind(an);
break;
} // inner switch
--
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