Ignore:
Timestamp:
2017-07-30T17:07:42+02:00 (7 years ago)
Author:
Don-vip
Message:

partial revert of r12537

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

    r12536 r12542  
    4747    }
    4848
    49     private static final AtomicLong ID_COUNTER = new AtomicLong(0);
     49    private static final AtomicLong idCounter = new AtomicLong(0);
    5050
    5151    /**
     
    5454     */
    5555    static long generateUniqueId() {
    56         return ID_COUNTER.decrementAndGet();
     56        return idCounter.decrementAndGet();
    5757    }
    5858
     
    6363     */
    6464    public static long currentUniqueId() {
    65         return ID_COUNTER.get();
     65        return idCounter.get();
    6666    }
    6767
     
    7676            throw new IllegalArgumentException("Cannot modify the id counter backwards");
    7777        }
    78         ID_COUNTER.set(newId);
     78        idCounter.set(newId);
    7979    }
    8080
Note: See TracChangeset for help on using the changeset viewer.