[jruby-joni] 04/08: whoops, make those static
Hideki Yamane
henrich at moszumanska.debian.org
Tue Mar 13 11:23:38 GMT 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 d44f386f44f0b915027243e89a94a6c4bfada197
Author: lopex <lopx at gazeta.pl>
Date: Thu Mar 1 13:16:19 2018 +0100
whoops, make those static
---
src/org/joni/ast/QuantifierNode.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/org/joni/ast/QuantifierNode.java b/src/org/joni/ast/QuantifierNode.java
index 5c35e7e..eb0d20e 100644
--- a/src/org/joni/ast/QuantifierNode.java
+++ b/src/org/joni/ast/QuantifierNode.java
@@ -130,7 +130,7 @@ public final class QuantifierNode extends StateNode {
combExpCheckNum = other.combExpCheckNum;
}
- enum ReduceType {
+ static enum ReduceType {
ASIS, /* as is */
DEL, /* delete parent */
A, /* to '*' */
@@ -140,7 +140,7 @@ public final class QuantifierNode extends StateNode {
PQ_Q, /* to '+?)?' */
}
- final ReduceType[][]REDUCE_TABLE = {
+ static final ReduceType[][]REDUCE_TABLE = {
{DEL, A, A, QQ, AQ, ASIS}, /* '?' */
{DEL, DEL, DEL, P_QQ, P_QQ, DEL}, /* '*' */
{A, A, DEL, ASIS, P_QQ, DEL}, /* '+' */
@@ -211,8 +211,8 @@ public final class QuantifierNode extends StateNode {
other.target = null; // remove target from reduced quantifier
}
- final String PopularQStr[] = new String[] {"?", "*", "+", "??", "*?", "+?"};
- final String ReduceQStr[]= new String[] {"", "", "*", "*?", "??", "+ and ??", "+? and ?"};
+ static final String PopularQStr[] = new String[] {"?", "*", "+", "??", "*?", "+?"};
+ static final String ReduceQStr[] = new String[] {"", "", "*", "*?", "??", "+ and ??", "+? and ?"};
public int setQuantifier(Node tgt, boolean group, ScanEnvironment env, byte[]bytes, int p, int end) {
if (lower == 1 && upper == 1) {
--
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