-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
does the second else if(this.highbits==that.hightbits) redundant?
public int compareTo(IPv6Address that)
{
if (this.highBits == that.highBits)
if (this.lowBits == that.lowBits)
return 0;
else
return IPv6AddressHelpers.isLessThanUnsigned(this.lowBits, that.lowBits) ? -1 : 1;
else if (this.highBits == that.highBits)
return 0;
else
return IPv6AddressHelpers.isLessThanUnsigned(this.highBits, that.highBits) ? -1 : 1;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels