This commit is contained in:
Peter Boyer 2015-12-18 19:30:49 -05:00
parent 68ca3b77c8
commit 56589c8029
2 changed files with 4 additions and 4 deletions

View File

@ -368,7 +368,7 @@ public class ATNDeserializer {
int ndecisions = toInt(data[p++]);
for (int i=1; i<=ndecisions; i++) {
int s = toInt(data[p++]);
DecisionState decState = atn.states.get(s);
DecisionState decState = (DecisionState)atn.states.get(s);
atn.decisionToState.add(decState);
decState.decision = i-1;
}
@ -736,4 +736,4 @@ public class ATNDeserializer {
throw new IllegalArgumentException(message);
}
}
}
}

View File

@ -570,7 +570,7 @@ public class ParserATNSimulator extends ATNSimulator {
* {@code t}, or {@code null} if the target state for this edge is not
* already cached
*/
protected DFAState getExistingTargetState( previousD, int t) {
protected DFAState getExistingTargetState(DFAState previousD, int t) {
DFAState[] edges = previousD.edges;
if (edges == null || t + 1 < 0 || t + 1 >= edges.length) {
return null;
@ -2039,4 +2039,4 @@ public class ParserATNSimulator extends ATNSimulator {
public Parser getParser() {
return parser;
}
}
}