Changeset 6235 in josm for trunk/src/org
- Timestamp:
- 2013-09-19T02:14:38+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r6232 r6235 22 22 import java.util.SortedMap; 23 23 import java.util.TreeMap; 24 import java.util.concurrent.Future;25 24 import java.util.regex.Matcher; 26 25 import java.util.regex.Pattern; -
trunk/src/org/openstreetmap/josm/data/Preferences.java
r6232 r6235 982 982 983 983 public boolean putArray(String key, Collection<Collection<String>> value) { 984 //boolean changed = false;985 986 984 List<List<String>> oldValue = null; 987 985 List<List<String>> valueCopy = null; -
trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
r6232 r6235 124 124 return this; 125 125 else { 126 int i ndex = bbox.getIndex(level);127 if (i ndex == -1)126 int idx = bbox.getIndex(level); 127 if (idx == -1) 128 128 return this; 129 return getChild(i ndex).findBucket(bbox);129 return getChild(idx).findBucket(bbox); 130 130 } 131 131 } … … 160 160 161 161 for (T o : tmpcontent) { 162 int i ndex = o.getBBox().getIndex(level);163 if (i ndex == -1) {162 int idx = o.getBBox().getIndex(level); 163 if (idx == -1) { 164 164 __add_content(o); 165 165 } else { 166 getChild(i ndex).doAdd(o);166 getChild(idx).doAdd(o); 167 167 } 168 168 } -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r6203 r6235 47 47 import org.openstreetmap.josm.Main; 48 48 import org.openstreetmap.josm.data.Bounds; 49 import org.openstreetmap.josm.data.coor.LatLon;50 49 import org.openstreetmap.josm.gui.ExceptionDialogUtil; 51 50 import org.openstreetmap.josm.gui.PleaseWaitRunnable; -
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r6211 r6235 30 30 private int defaultNodesIdx, defaultLinesIdx; 31 31 32 public ElemStyles() 33 { 32 /** 33 * Constructs a new {@code ElemStyles}. 34 */ 35 public ElemStyles() { 34 36 styleSources = new ArrayList<StyleSource>(); 35 37 } … … 116 118 osm.mappaintStyle = style.put(p.a, p.b); 117 119 } catch (StyleCache.RangeViolatedError e) { 118 thrownew AssertionError("Range violated. object: " + osm.getPrimitiveId() + ", current style: "+osm.mappaintStyle120 AssertionError error = new AssertionError("Range violated. object: " + osm.getPrimitiveId() + ", current style: "+osm.mappaintStyle 119 121 + ", scale: " + scale + ", new stylelist: " + p.a + ", new range: " + p.b); 122 error.initCause(e); 123 throw error; 120 124 } 121 125 osm.mappaintCacheIdx = cacheIdx; -
trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java
r6221 r6235 118 118 } 119 119 120 private class QuadStateDecorator implements ButtonModel {120 private final class QuadStateDecorator implements ButtonModel { 121 121 private final ButtonModel other; 122 122 -
trunk/src/org/openstreetmap/josm/tools/Diff.java
r6224 r6235 945 945 final int buffered_lines; 946 946 947 /** Number of common prefix elements. */948 final int prefix_lines = 0;949 950 947 /** Vector, indexed by line number, containing an equivalence code for 951 948 each line. It is this vector that is actually compared with that -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r6172 r6235 116 116 * Caches the image data for rotated versions of the same image. 117 117 */ 118 private static final Map<Image, Map<Long, ImageResource>> rotateCache= new HashMap<Image, Map<Long, ImageResource>>();119 120 private static final ExecutorService imageFetcher= Executors.newSingleThreadExecutor();118 private static final Map<Image, Map<Long, ImageResource>> ROTATE_CACHE = new HashMap<Image, Map<Long, ImageResource>>(); 119 120 private static final ExecutorService IMAGE_FETCHER = Executors.newSingleThreadExecutor(); 121 121 122 122 public interface ImageCallback { … … 339 339 } 340 340 }; 341 imageFetcher.submit(fetch);341 IMAGE_FETCHER.submit(fetch); 342 342 } else { 343 343 ImageIcon result = get(); … … 856 856 ImageResource imageResource = null; 857 857 858 synchronized ( rotateCache) {859 Map<Long, ImageResource> cacheByAngle = rotateCache.get(img);858 synchronized (ROTATE_CACHE) { 859 Map<Long, ImageResource> cacheByAngle = ROTATE_CACHE.get(img); 860 860 if (cacheByAngle == null) { 861 rotateCache.put(img, cacheByAngle = new HashMap<Long, ImageResource>());861 ROTATE_CACHE.put(img, cacheByAngle = new HashMap<Long, ImageResource>()); 862 862 } 863 863
Note:
See TracChangeset
for help on using the changeset viewer.