Changeset 6fccfc9 for apps


Ignore:
Timestamp:
Oct 8, 2018 1:34:15 PM (21 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
184b617
Parents:
524c375
Message:

Use Double.compare() in comparators (findbugs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/helpers/SybilRenderer.java

    r524c375 r6fccfc9  
    116116         }
    117117         public int compareTo(Points r) {
    118              if (points > r.points)
    119                  return 1;
    120              if (points < r.points)
    121                  return -1;
    122              return 0;
     118             return Double.compare(points, r.points);
    123119        }
    124120    }
Note: See TracChangeset for help on using the changeset viewer.