Changeset 6890 in josm for trunk/src/org/openstreetmap/josm/data/osm
- Timestamp:
- 2014-02-27T02:50:12+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/BBox.java
r6204 r6890 107 107 } 108 108 109 public void add(LatLon c) {109 public final void add(LatLon c) { 110 110 add(c.lon(), c.lat()); 111 111 } … … 114 114 * Extends this bbox to include the point (x, y) 115 115 */ 116 public void add(double x, double y) {116 public final void add(double x, double y) { 117 117 xmin = Math.min(xmin, x); 118 118 xmax = Math.max(xmax, x); … … 122 122 } 123 123 124 public void add(BBox box) {124 public final void add(BBox box) { 125 125 xmin = Math.min(xmin, box.xmin); 126 126 xmax = Math.max(xmax, box.xmax); -
trunk/src/org/openstreetmap/josm/data/osm/NodeData.java
r6009 r6890 32 32 33 33 @Override 34 public void setCoor(LatLon coor) {34 public final void setCoor(LatLon coor) { 35 35 if (coor == null) { 36 36 this.lat = Double.NaN; -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r6889 r6890 570 570 571 571 @Override 572 protected void setIncomplete(boolean incomplete) {572 protected final void setIncomplete(boolean incomplete) { 573 573 boolean locked = writeLock(); 574 574 try { -
trunk/src/org/openstreetmap/josm/data/osm/PrimitiveDeepCopy.java
r6084 r6890 76 76 } 77 77 78 public void visitAll() {78 public final void visitAll() { 79 79 for (OsmPrimitive osm : primitives) { 80 80 firstIteration = true; -
trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
r6296 r6890 356 356 * corner of the box 357 357 */ 358 LatLon coor() {358 final LatLon coor() { 359 359 return QuadTiling.tile2LatLon(this.quad); 360 360 } … … 404 404 405 405 @Override 406 public void clear() {406 public final void clear() { 407 407 root = new QBLevel<T>(this); 408 408 search_cache = null; … … 500 500 int iterated_over; 501 501 502 QBLevel<T> next_content_node(QBLevel<T> q) {502 final QBLevel<T> next_content_node(QBLevel<T> q) { 503 503 if (q == null) 504 504 return null; -
trunk/src/org/openstreetmap/josm/data/osm/TagCollection.java
r6823 r6890 193 193 * @param tag the tag to add 194 194 */ 195 public void add(Tag tag){195 public final void add(Tag tag){ 196 196 if (tag == null) return; 197 197 if (tags.contains(tag)) return; … … 205 205 * @param tags the collection of tags 206 206 */ 207 public void add(Collection<Tag> tags) {207 public final void add(Collection<Tag> tags) { 208 208 if (tags == null) return; 209 209 for (Tag tag: tags){ … … 218 218 * @param tags the other tag collection 219 219 */ 220 public void add(TagCollection tags) {220 public final void add(TagCollection tags) { 221 221 if (tags == null) return; 222 222 this.tags.addAll(tags.tags); -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryNode.java
r6830 r6890 73 73 * @return the coordinates. May be null. 74 74 */ 75 public LatLon getCoords() {75 public final LatLon getCoords() { 76 76 return coords; 77 77 } … … 81 81 * @param coords the coordinates. Can be null. 82 82 */ 83 public void setCoords(LatLon coords) {83 public final void setCoords(LatLon coords) { 84 84 this.coords = coords; 85 85 } -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java
r6830 r6890 38 38 private Map<String, String> tags; 39 39 40 protected void ensurePositiveLong(long value, String name) {40 protected final void ensurePositiveLong(long value, String name) { 41 41 if (value <= 0) { 42 42 throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' > 0 expected. Got ''{1}''.", name, value)); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java
r6883 r6890 359 359 } 360 360 361 private void load(Relation r) {361 private final void load(Relation r) { 362 362 MultipolygonRoleMatcher matcher = getMultipolygonRoleMatcher(); 363 363 … … 537 537 } 538 538 539 private void addInnerToOuters() {539 private final void addInnerToOuters() { 540 540 541 541 if (innerPolygons.isEmpty()) {
Note:
See TracChangeset
for help on using the changeset viewer.