Changeset 12537 in josm for trunk/src/org/openstreetmap/josm/data/osm
- Timestamp:
- 2017-07-30T00:22:46+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/ChangesetCache.java
r11349 r12537 37 37 public final class ChangesetCache implements PreferenceChangedListener { 38 38 /** the unique instance */ 39 private static final ChangesetCache instance= new ChangesetCache();39 private static final ChangesetCache INSTANCE = new ChangesetCache(); 40 40 41 41 /** the cached changesets */ … … 56 56 */ 57 57 public static ChangesetCache getInstance() { 58 return instance;58 return INSTANCE; 59 59 } 60 60 -
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r12479 r12537 638 638 * dataset. (However, the selection does only change in the active layer) 639 639 */ 640 private static final Collection<SelectionChangedListener> selListeners= new CopyOnWriteArrayList<>();640 private static final Collection<SelectionChangedListener> SEL_LISTENERS = new CopyOnWriteArrayList<>(); 641 641 642 642 /** … … 647 647 */ 648 648 public static void addSelectionListener(SelectionChangedListener listener) { 649 ((CopyOnWriteArrayList<SelectionChangedListener>) selListeners).addIfAbsent(listener);649 ((CopyOnWriteArrayList<SelectionChangedListener>) SEL_LISTENERS).addIfAbsent(listener); 650 650 } 651 651 … … 657 657 */ 658 658 public static void removeSelectionListener(SelectionChangedListener listener) { 659 selListeners.remove(listener);659 SEL_LISTENERS.remove(listener); 660 660 } 661 661 … … 671 671 672 672 private static void fireDreprecatedSelectionChange(Collection<? extends OsmPrimitive> currentSelection) { 673 for (SelectionChangedListener l : selListeners) {673 for (SelectionChangedListener l : SEL_LISTENERS) { 674 674 l.selectionChanged(currentSelection); 675 675 } -
trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
r12122 r12537 23 23 */ 24 24 public class QuadBuckets<T extends OsmPrimitive> implements Collection<T> { 25 private static final boolean consistency_testing= false;25 private static final boolean CONSISTENCY_TESTING = false; 26 26 private static final byte NW_INDEX = 1; 27 27 private static final byte NE_INDEX = 3; … … 271 271 272 272 void doAdd(T o) { 273 if ( consistency_testing) {273 if (CONSISTENCY_TESTING) { 274 274 if (o instanceof Node && !matches(o, this)) { 275 275 o.getBBox().getIndex(level); -
trunk/src/org/openstreetmap/josm/data/osm/User.java
r11912 r12537 34 34 * @see #getAnonymous() 35 35 */ 36 private static final User anonymous= createLocalUser(tr("<anonymous>"));36 private static final User ANONYMOUS = createLocalUser(tr("<anonymous>")); 37 37 38 38 private static long getNextLocalUid() { … … 131 131 */ 132 132 public static User getAnonymous() { 133 return anonymous;133 return ANONYMOUS; 134 134 } 135 135 -
trunk/src/org/openstreetmap/josm/data/osm/event/DatasetEventManager.java
r11928 r12537 29 29 public class DatasetEventManager implements ActiveLayerChangeListener, Listener { 30 30 31 private static final DatasetEventManager instance= new DatasetEventManager();31 private static final DatasetEventManager INSTANCE = new DatasetEventManager(); 32 32 33 33 private final class EdtRunnable implements Runnable { … … 139 139 */ 140 140 public static DatasetEventManager getInstance() { 141 return instance;141 return INSTANCE; 142 142 } 143 143 -
trunk/src/org/openstreetmap/josm/data/osm/event/SelectionEventManager.java
r12116 r12537 32 32 public class SelectionEventManager implements DataSelectionListener, ActiveLayerChangeListener { 33 33 34 private static final SelectionEventManager instance= new SelectionEventManager();34 private static final SelectionEventManager INSTANCE = new SelectionEventManager(); 35 35 36 36 /** … … 39 39 */ 40 40 public static SelectionEventManager getInstance() { 41 return instance;41 return INSTANCE; 42 42 } 43 43 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/PaintColors.java
r12376 r12537 93 93 private static volatile Color backgroundColorCache; 94 94 95 private static final MapPaintSylesUpdateListener styleOverrideListener= new MapPaintSylesUpdateListener() {95 private static final MapPaintSylesUpdateListener STYLE_OVERRIDE_LISTENER = new MapPaintSylesUpdateListener() { 96 96 //TODO: Listen to wireframe map mode changes. 97 97 @Override … … 107 107 108 108 static { 109 MapPaintStyles.addMapPaintSylesUpdateListener( styleOverrideListener);109 MapPaintStyles.addMapPaintSylesUpdateListener(STYLE_OVERRIDE_LISTENER); 110 110 } 111 111
Note:
See TracChangeset
for help on using the changeset viewer.