Ignore:
Timestamp:
2015-05-11T10:52:33+02:00 (9 years ago)
Author:
Don-vip
Message:

code style - Useless parentheses around expressions should be removed to prevent any misunderstanding

Location:
trunk/src/org/openstreetmap/josm/data/coor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java

    r8308 r8345  
    132132     */
    133133    public boolean equalsEpsilon(EastNorth other, double e) {
    134         return (Math.abs(x - other.x) < e && Math.abs(y - other.y) < e);
     134        return Math.abs(x - other.x) < e && Math.abs(y - other.y) < e;
    135135    }
    136136}
  • trunk/src/org/openstreetmap/josm/data/coor/QuadTiling.java

    r7509 r8345  
    99
    1010    public static final int NR_LEVELS = 24;
    11     public static final double WORLD_PARTS = (1 << NR_LEVELS);
     11    public static final double WORLD_PARTS = 1 << NR_LEVELS;
    1212
    1313    public static final int TILES_PER_LEVEL_SHIFT = 2; // Has to be 2. Other parts of QuadBuckets code rely on it
     
    5353        for (i = NR_LEVELS-1; i >= 0; i--)
    5454        {
    55             long xbit = ((x >> i) & 1);
    56             long ybit = ((y >> i) & 1);
     55            long xbit = (x >> i) & 1;
     56            long ybit = (y >> i) & 1;
    5757            tile <<= 2;
    5858            // Note that x is the MSB
Note: See TracChangeset for help on using the changeset viewer.