Merge "Fix equality method implementation in BandConfig class."

This commit is contained in:
Tomasz Wasilczyk
2017-04-28 20:09:03 +00:00
committed by Gerrit Code Review

View File

@@ -755,8 +755,9 @@ public class RadioManager {
if (!(obj instanceof BandConfig))
return false;
BandConfig other = (BandConfig) obj;
if (mDescriptor != other.getDescriptor())
return false;
BandDescriptor otherDesc = other.getDescriptor();
if ((mDescriptor == null) != (otherDesc == null)) return false;
if (mDescriptor != null && !mDescriptor.equals(otherDesc)) return false;
return true;
}
}