rm two a.equals(a) bugs

This commit is contained in:
Terence Parr 2012-11-14 16:59:15 -08:00
parent fdf3a86969
commit e1c8957192
2 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ public class ATNConfigSet implements Set<ATNConfig> {
if ( hashCode(a) != hashCode(b) ) return false; if ( hashCode(a) != hashCode(b) ) return false;
return a.state.stateNumber==b.state.stateNumber return a.state.stateNumber==b.state.stateNumber
&& a.alt==b.alt && a.alt==b.alt
&& b.semanticContext.equals(b.semanticContext); && a.semanticContext.equals(b.semanticContext);
} }
} }

View File

@ -49,7 +49,7 @@ public enum PredictionMode {
if ( a==null || b==null ) return false; if ( a==null || b==null ) return false;
if ( hashCode(a) != hashCode(b) ) return false; if ( hashCode(a) != hashCode(b) ) return false;
return a.state.stateNumber==b.state.stateNumber return a.state.stateNumber==b.state.stateNumber
&& b.context.equals(b.context); && a.context.equals(b.context);
} }
} }