Changeset 8285 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2015-04-28T00:49:49+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/AutosaveTask.java
r7951 r8285 72 72 73 73 private static class AutosaveLayerInfo { 74 OsmDataLayer layer;75 String layerName;76 String layerFileName;77 final Deque<File> backupFiles = new LinkedList<>();74 private OsmDataLayer layer; 75 private String layerName; 76 private String layerFileName; 77 private final Deque<File> backupFiles = new LinkedList<>(); 78 78 } 79 79 -
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r7937 r8285 415 415 public static class XMLCommandProcessor { 416 416 417 Preferences mainPrefs;418 Map<String,Element> tasksMap = new HashMap<>();417 private Preferences mainPrefs; 418 private Map<String,Element> tasksMap = new HashMap<>(); 419 419 420 420 private boolean lastV; // last If condition result 421 421 422 423 ScriptEngine engine ; 422 private ScriptEngine engine; 424 423 425 424 public void openAndReadXML(File file) { -
trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java
r7937 r8285 57 57 58 58 private static class CacheEntry { 59 final double pixelPerDegree;60 final double east;61 final double north;62 final ProjectionBounds bounds;63 final String filename;64 65 long lastUsed;66 long lastModified;59 private final double pixelPerDegree; 60 private final double east; 61 private final double north; 62 private final ProjectionBounds bounds; 63 private final String filename; 64 65 private long lastUsed; 66 private long lastModified; 67 67 68 68 CacheEntry(double pixelPerDegree, double east, double north, int tileSize, String filename) { … … 83 83 84 84 private static class ProjectionEntries { 85 final String projection;86 final String cacheDirectory;87 final List<CacheEntry> entries = new ArrayList<>();85 private final String projection; 86 private final String cacheDirectory; 87 private final List<CacheEntry> entries = new ArrayList<>(); 88 88 89 89 ProjectionEntries(String projection, String cacheDirectory) { -
trunk/src/org/openstreetmap/josm/data/osm/FilterMatcher.java
r7005 r8285 73 73 74 74 private static class FilterInfo { 75 final Match match;76 final boolean isDelete;77 final boolean isInverted;75 private final Match match; 76 private final boolean isDelete; 77 private final boolean isInverted; 78 78 79 79 FilterInfo(Filter filter) throws ParseError { -
trunk/src/org/openstreetmap/josm/data/osm/OsmUtils.java
r8257 r8285 18 18 } 19 19 20 static final List<String> TRUE_VALUES = new ArrayList<>(Arrays20 private static final List<String> TRUE_VALUES = new ArrayList<>(Arrays 21 21 .asList(new String[] { "true", "yes", "1", "on" })); 22 static final List<String> FALSE_VALUES = new ArrayList<>(Arrays22 private static final List<String> FALSE_VALUES = new ArrayList<>(Arrays 23 23 .asList(new String[] { "false", "no", "0", "off" })); 24 static final List<String> REVERSE_VALUES = new ArrayList<>(Arrays24 private static final List<String> REVERSE_VALUES = new ArrayList<>(Arrays 25 25 .asList(new String[] { "reverse", "-1" })); 26 26 -
trunk/src/org/openstreetmap/josm/data/osm/PrimitiveDeepCopy.java
r7961 r8285 56 56 57 57 new AbstractVisitor() { 58 boolean firstIteration;58 private boolean firstIteration; 59 59 60 60 @Override -
trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
r7025 r8285 496 496 497 497 class QuadBucketIterator implements Iterator<T> { 498 QBLevel<T> current_node;499 int content_index;500 int iterated_over;498 private QBLevel<T> current_node; 499 private int content_index; 500 private int iterated_over; 501 501 502 502 final QBLevel<T> next_content_node(QBLevel<T> q) { -
trunk/src/org/openstreetmap/josm/data/osm/Storage.java
r7436 r8285 374 374 375 375 private final class FMap<K> implements Map<K,T> { 376 Hash<K,? super T> fHash;376 private Hash<K,? super T> fHash; 377 377 378 378 private FMap(Hash<K,? super T> h) { … … 457 457 458 458 private final class SafeReadonlyIter implements Iterator<T> { 459 final T[] data;460 int slot = 0;459 private final T[] data; 460 private int slot = 0; 461 461 462 462 SafeReadonlyIter(T[] data) { … … 491 491 private final class Iter implements Iterator<T> { 492 492 private final int mods; 493 int slot = 0;494 int removeSlot = -1;493 private int slot = 0; 494 private int removeSlot = -1; 495 495 496 496 Iter() { -
trunk/src/org/openstreetmap/josm/data/osm/event/DatasetEventManager.java
r7005 r8285 45 45 46 46 private static class ListenerInfo { 47 final DataSetListener listener;48 final boolean consolidate;47 private final DataSetListener listener; 48 private final boolean consolidate; 49 49 50 50 public ListenerInfo(DataSetListener listener, boolean consolidate) { -
trunk/src/org/openstreetmap/josm/data/osm/event/SelectionEventManager.java
r7005 r8285 27 27 28 28 private static class ListenerInfo { 29 final SelectionChangedListener listener;29 private final SelectionChangedListener listener; 30 30 31 31 public ListenerInfo(SelectionChangedListener listener) { -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r8199 r8285 190 190 191 191 private static class StyleRecord implements Comparable<StyleRecord> { 192 final ElemStyle style;193 final OsmPrimitive osm;194 final int flags;192 private final ElemStyle style; 193 private final OsmPrimitive osm; 194 private final int flags; 195 195 196 196 public StyleRecord(ElemStyle style, OsmPrimitive osm, int flags) { -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShift.java
r6890 r8285 45 45 private double lonAccuracy; 46 46 private double latAccuracy; 47 boolean latAccuracyAvailable;48 boolean lonAccuracyAvailable;47 private boolean latAccuracyAvailable; 48 private boolean lonAccuracyAvailable; 49 49 private String subGridName; 50 50 -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java
r7082 r8285 58 58 private float[] lonAccuracy; 59 59 60 boolean bigEndian;61 60 private NTV2SubGrid[] subGrid; 62 61 -
trunk/src/org/openstreetmap/josm/data/validation/PaintVisitor.java
r7937 r8285 33 33 /** Is the error selected ? */ 34 34 private boolean selected; 35 35 36 36 private final Set<PaintedPoint> paintedPoints = new HashSet<>(); 37 37 private final Set<PaintedSegment> paintedSegments = new HashSet<>(); … … 55 55 this.color = color; 56 56 } 57 57 58 58 @Override 59 59 public int hashCode() { … … 64 64 return result; 65 65 } 66 66 67 67 @Override 68 68 public boolean equals(Object obj) { … … 83 83 84 84 protected static class PaintedSegment extends PaintedPoint { 85 final LatLon p2;86 85 private final LatLon p2; 86 87 87 public PaintedSegment(LatLon p1, LatLon p2, Color color) { 88 88 super(p1, color); … … 133 133 protected void drawNode(Node n, Color color) { 134 134 PaintedPoint pp = new PaintedPoint(n.getCoor(), color); 135 135 136 136 if (!paintedPoints.contains(pp)) { 137 137 Point p = mv.getPoint(n); 138 138 g.setColor(color); 139 139 140 140 if (selected) { 141 141 g.fillOval(p.x - 5, p.y - 5, 10, 10); … … 156 156 protected void drawSegment(Point p1, Point p2, Color color) { 157 157 g.setColor(color); 158 158 159 159 double t = Math.atan2(p2.x - p1.x, p2.y - p1.y); 160 160 double cosT = 5 * Math.cos(t); … … 272 272 } 273 273 } 274 274 275 275 /** 276 276 * Clears the internal painted objects collections. -
trunk/src/org/openstreetmap/josm/data/validation/tests/ConditionalKeys.java
r7937 r8285 26 26 public class ConditionalKeys extends Test.TagTest { 27 27 28 final OpeningHourTest openingHourTest = new OpeningHourTest();29 static final Set<String> RESTRICTION_TYPES = new HashSet<>(Arrays.asList("oneway", "toll", "noexit", "maxspeed", "minspeed", "maxstay",28 private final OpeningHourTest openingHourTest = new OpeningHourTest(); 29 private static final Set<String> RESTRICTION_TYPES = new HashSet<>(Arrays.asList("oneway", "toll", "noexit", "maxspeed", "minspeed", "maxstay", 30 30 "maxweight", "maxaxleload", "maxheight", "maxwidth", "maxlength", "overtaking", "maxgcweight", "maxgcweightrating", "fee")); 31 static final Set<String> RESTRICTION_VALUES = new HashSet<>(Arrays.asList("yes", "official", "designated", "destination",31 private static final Set<String> RESTRICTION_VALUES = new HashSet<>(Arrays.asList("yes", "official", "designated", "destination", 32 32 "delivery", "permissive", "private", "agricultural", "forestry", "no")); 33 static final Set<String> TRANSPORT_MODES = new HashSet<>(Arrays.asList("access", "foot", "ski", "inline_skates", "ice_skates",33 private static final Set<String> TRANSPORT_MODES = new HashSet<>(Arrays.asList("access", "foot", "ski", "inline_skates", "ice_skates", 34 34 "horse", "vehicle", "bicycle", "carriage", "trailer", "caravan", "motor_vehicle", "motorcycle", "moped", "mofa", 35 35 "motorcar", "motorhome", "psv", "bus", "taxi", "tourist_bus", "goods", "hgv", "agricultural", "atv", "snowmobile" -
trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java
r7937 r8285 57 57 protected static final List<String> ISO_COUNTRIES = Arrays.asList(Locale.getISOCountries()); 58 58 59 boolean leftByPedestrians = false;60 boolean leftByCyclists = false;61 boolean leftByCars = false;62 int pedestrianWays = 0;63 int cyclistWays = 0;64 int carsWays = 0;59 private boolean leftByPedestrians = false; 60 private boolean leftByCyclists = false; 61 private boolean leftByCars = false; 62 private int pedestrianWays = 0; 63 private int cyclistWays = 0; 64 private int carsWays = 0; 65 65 66 66 /** -
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r8266 r8285 242 242 } 243 243 244 static final String POSSIBLE_THROWS = possibleThrows();244 private static final String POSSIBLE_THROWS = possibleThrows(); 245 245 246 246 static final String possibleThrows() { -
trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java
r8242 r8285 78 78 static enum CheckMode { 79 79 TIME_RANGE(0), POINTS_IN_TIME(1), BOTH(2); 80 final int code;80 private final int code; 81 81 82 82 CheckMode(int code) { … … 108 108 */ 109 109 public class OpeningHoursTestError { 110 final Severity severity; 111 final String message, prettifiedValue; 110 private final Severity severity; 111 private final String message; 112 private final String prettifiedValue; 112 113 113 114 /** -
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r8126 r8285 130 130 protected static final Entities entities = new Entities(); 131 131 132 static final List<String> DEFAULT_SOURCES = Arrays.asList(DATA_FILE, IGNORE_FILE, SPELL_FILE);132 private static final List<String> DEFAULT_SOURCES = Arrays.asList(DATA_FILE, IGNORE_FILE, SPELL_FILE); 133 133 134 134 /** -
trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java
r7308 r8285 293 293 private final double len; 294 294 private Set<Node> nearbyNodeCache; 295 double nearbyNodeCacheDist = -1.0;296 final Node n1;297 final Node n2;295 private double nearbyNodeCacheDist = -1.0; 296 private final Node n1; 297 private final Node n2; 298 298 299 299 public MyWaySegment(Way w, Node n1, Node n2) { -
trunk/src/org/openstreetmap/josm/data/validation/util/AggregatePrimitivesVisitor.java
r7005 r8285 21 21 public class AggregatePrimitivesVisitor extends AbstractVisitor { 22 22 /** Aggregated data */ 23 final Collection<OsmPrimitive> aggregatedData = new HashSet<>();23 private final Collection<OsmPrimitive> aggregatedData = new HashSet<>(); 24 24 25 25 /**
Note:
See TracChangeset
for help on using the changeset viewer.