Browse Source

Commented out currently unused code

conversation
Andy Clement 16 years ago
parent
commit
9ad3863886
  1. 11
      org.springframework.expression/src/main/java/org/springframework/expression/spel/internal/SpringExpressionsParserExtender.java

11
org.springframework.expression/src/main/java/org/springframework/expression/spel/internal/SpringExpressionsParserExtender.java

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
package org.springframework.expression.spel.internal;
import org.antlr.runtime.BitSet;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.IntStream;
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.Token;
@ -36,11 +35,11 @@ public class SpringExpressionsParserExtender extends SpringExpressionsParser { @@ -36,11 +35,11 @@ public class SpringExpressionsParserExtender extends SpringExpressionsParser {
@Override
public void recoverFromMismatchedToken(IntStream input, RecognitionException re, int ttype, BitSet follow)
throws RecognitionException {
CommonTokenStream tokStream = (CommonTokenStream) input;
int prevToken = tokStream.LA(-1);
int nextToken = tokStream.LA(1);
String prevTokenText = tokStream.LT(-1).getText();
String expectedToken = getTokenForId(ttype);
// CommonTokenStream tokStream = (CommonTokenStream) input;
// int prevToken = tokStream.LA(-1);
// int nextToken = tokStream.LA(1);
// String prevTokenText = tokStream.LT(-1).getText();
// String expectedToken = getTokenForId(ttype);
// Use token knowledge to log a more appropriate error:
// logger.error(ParserMessage.ERROR_NO_LEADING_ZERO, re.line, re.charPositionInLine);
throw re;

Loading…
Cancel
Save