diff options
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/ParseException.java')
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/ParseException.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/ParseException.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/ParseException.java index 5cc68c62..4a8d5769 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/ParseException.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/ParseException.java @@ -1,4 +1,6 @@ -/** +package org.apache.velocity.runtime.parser; + +/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -17,7 +19,6 @@ * under the License. */ /* Generated By:JavaCC: Do not edit this line. ParseException.java Version 3.0 */ -package org.apache.velocity.runtime.parser; /** * This exception is thrown when parse errors are encountered. @@ -132,6 +133,7 @@ public class ParseException extends Exception { * gets displayed. * @return message */ + @Override public String getMessage() { if (!specialConstructor) { return super.getMessage(); @@ -144,9 +146,9 @@ public class ParseException extends Exception { { maxSize = expectedTokenSequence.length; } - for (int j = 0; j < expectedTokenSequence.length; j++) + for (int i : expectedTokenSequence) { - expected += tokenImage[expectedTokenSequence[j]] + " "; + expected += tokenImage[i] + " "; } if (expectedTokenSequence[expectedTokenSequence.length - 1] != 0) { |