Skip to content

redundant code #25

@xwdeng

Description

@xwdeng

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions