commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r450008 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ParseException.java
Date Tue, 26 Sep 2006 12:02:02 GMT
Author: dion
Date: Tue Sep 26 05:02:02 2006
New Revision: 450008

URL: http://svn.apache.org/viewvc?view=rev&rev=450008
Log:
For JEXL-22. javacc 4.0 generated file

Modified:
    jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ParseException.java

Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ParseException.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ParseException.java?view=diff&rev=450008&r1=450007&r2=450008
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ParseException.java
(original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ParseException.java
Tue Sep 26 05:02:02 2006
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 2.1 */
+/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 3.0 */
 package org.apache.commons.jexl.parser;
 
 /**
@@ -106,19 +106,19 @@
         if (!specialConstructor) {
             return super.getMessage();
         }
-        String expected = "";
+        StringBuffer expected = new StringBuffer();
         int maxSize = 0;
         for (int i = 0; i < expectedTokenSequences.length; i++) {
             if (maxSize < expectedTokenSequences[i].length) {
                 maxSize = expectedTokenSequences[i].length;
             }
             for (int j = 0; j < expectedTokenSequences[i].length; j++) {
-                expected += tokenImage[expectedTokenSequences[i][j]] + " ";
+                expected.append(tokenImage[expectedTokenSequences[i][j]]).append(" ");
             }
             if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) {
-                expected += "...";
+                expected.append("...");
             }
-            expected += eol + "    ";
+            expected.append(eol).append("    ");
         }
         String retval = "Encountered \"";
         Token tok = currentToken.next;
@@ -139,7 +139,7 @@
         } else {
             retval += "Was expecting one of:" + eol + "    ";
         }
-        retval += expected;
+        retval += expected.toString();
         return retval;
     }
 



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


Mime
View raw message