Changeset dc6c568


Ignore:
Timestamp:
Nov 21, 2011 3:29:11 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1119612
Parents:
bef8fe0
Message:

equals optimization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/RouterAddress.java

    rbef8fe0 rdc6c568  
    127127        if ((object == null) || !(object instanceof RouterAddress)) return false;
    128128        RouterAddress addr = (RouterAddress) object;
    129         return _cost == addr.getCost() && DataHelper.eq(_expiration, addr.getExpiration())
    130                && DataHelper.eq(_options, addr.getOptions())
    131                && DataHelper.eq(_transportStyle, addr.getTransportStyle());
     129        return
     130               _cost == addr._cost &&
     131               DataHelper.eq(_transportStyle, addr._transportStyle) &&
     132               DataHelper.eq(_options, addr._options) &&
     133               DataHelper.eq(_expiration, addr._expiration);
    132134    }
    133135   
Note: See TracChangeset for help on using the changeset viewer.