forked from jasder/antlr
rm two a.equals(a) bugs
This commit is contained in:
parent
fdf3a86969
commit
e1c8957192
|
@ -258,7 +258,7 @@ public class ATNConfigSet implements Set<ATNConfig> {
|
|||
if ( hashCode(a) != hashCode(b) ) return false;
|
||||
return a.state.stateNumber==b.state.stateNumber
|
||||
&& a.alt==b.alt
|
||||
&& b.semanticContext.equals(b.semanticContext);
|
||||
&& a.semanticContext.equals(b.semanticContext);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ public enum PredictionMode {
|
|||
if ( a==null || b==null ) return false;
|
||||
if ( hashCode(a) != hashCode(b) ) return false;
|
||||
return a.state.stateNumber==b.state.stateNumber
|
||||
&& b.context.equals(b.context);
|
||||
&& a.context.equals(b.context);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue