Changeset 12542 in josm for trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
- Timestamp:
- 2017-07-30T17:07:42+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r12536 r12542 47 47 } 48 48 49 private static final AtomicLong ID_COUNTER= new AtomicLong(0);49 private static final AtomicLong idCounter = new AtomicLong(0); 50 50 51 51 /** … … 54 54 */ 55 55 static long generateUniqueId() { 56 return ID_COUNTER.decrementAndGet();56 return idCounter.decrementAndGet(); 57 57 } 58 58 … … 63 63 */ 64 64 public static long currentUniqueId() { 65 return ID_COUNTER.get();65 return idCounter.get(); 66 66 } 67 67 … … 76 76 throw new IllegalArgumentException("Cannot modify the id counter backwards"); 77 77 } 78 ID_COUNTER.set(newId);78 idCounter.set(newId); 79 79 } 80 80
Note:
See TracChangeset
for help on using the changeset viewer.