jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r516849 - /jakarta/regexp/trunk/src/java/org/apache/regexp/REDebugCompiler.java
Date Sun, 11 Mar 2007 04:27:06 GMT
Author: vgritsenko
Date: Sat Mar 10 20:27:05 2007
New Revision: 516849

URL: http://svn.apache.org/viewvc?view=rev&rev=516849
Log:
stop nagging from IDE

Modified:
    jakarta/regexp/trunk/src/java/org/apache/regexp/REDebugCompiler.java

Modified: jakarta/regexp/trunk/src/java/org/apache/regexp/REDebugCompiler.java
URL: http://svn.apache.org/viewvc/jakarta/regexp/trunk/src/java/org/apache/regexp/REDebugCompiler.java?view=diff&rev=516849&r1=516848&r2=516849
==============================================================================
--- jakarta/regexp/trunk/src/java/org/apache/regexp/REDebugCompiler.java (original)
+++ jakarta/regexp/trunk/src/java/org/apache/regexp/REDebugCompiler.java Sat Mar 10 20:27:05
2007
@@ -49,6 +49,7 @@
         hashOpcode.put(new Integer(RE.OP_MAYBE),            "OP_MAYBE");
         hashOpcode.put(new Integer(RE.OP_NOTHING),          "OP_NOTHING");
         hashOpcode.put(new Integer(RE.OP_GOTO),             "OP_GOTO");
+        hashOpcode.put(new Integer(RE.OP_CONTINUE),         "OP_CONTINUE");
         hashOpcode.put(new Integer(RE.OP_ESCAPE),           "OP_ESCAPE");
         hashOpcode.put(new Integer(RE.OP_OPEN),             "OP_OPEN");
         hashOpcode.put(new Integer(RE.OP_CLOSE),            "OP_CLOSE");
@@ -103,8 +104,8 @@
     String nodeToString(int node)
     {
         // Get opcode and opdata for node
-        char opcode =       instruction[node + RE.offsetOpcode];
-        int opdata  = (int) instruction[node + RE.offsetOpdata];
+        char opcode =       instruction[node /* + RE.offsetOpcode */];
+        int opdata  = (int) instruction[node    + RE.offsetOpdata   ];
 
         // Return opcode as a string and opdata value
         return opcodeToString(opcode) + ", opdata = " + opdata;
@@ -181,9 +182,9 @@
         for (int i = 0; i < lenInstruction; )
         {
             // Get opcode, opdata and next fields of current program node
-            char opcode =         instruction[i + RE.offsetOpcode];
-            char opdata =         instruction[i + RE.offsetOpdata];
-            int  next   = (short) instruction[i + RE.offsetNext];
+            char opcode =         instruction[i /* + RE.offsetOpcode */];
+            char opdata =         instruction[i    + RE.offsetOpdata   ];
+            int  next   = (short) instruction[i    + RE.offsetNext     ];
 
             // Display the current program node
             p.print(i + ". " + nodeToString(i) + ", next = ");
@@ -208,8 +209,8 @@
                 p.print(", [");
 
                 // Show each range in the char class
-                int rangeCount = opdata;
-                for (int r = 0; r < rangeCount; r++)
+                // int rangeCount = opdata;
+                for (int r = 0; r < opdata; r++)
                 {
                     // Get first and last chars in range
                     char charFirst = instruction[i++];



---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org


Mime
View raw message