Merge pull request #2504 from JoePfeiffer/fix-FlightDataType-equals
Fix FlightDataType test for equality
This commit is contained in:
commit
3f013d9d83
@ -504,7 +504,7 @@ public class FlightDataType implements Comparable<FlightDataType> {
|
|||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (!(o instanceof FlightDataType))
|
if (!(o instanceof FlightDataType))
|
||||||
return false;
|
return false;
|
||||||
return this.compareTo((FlightDataType) o) == 0;
|
return this.name.compareToIgnoreCase(((FlightDataType)o).name) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user