- Timestamp:
- 2021-04-14T21:29:43+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r15963 r17786 97 97 * @param englishLabel English label 98 98 * @return {@code AutoScaleMode} for given English label 99 * @throws IllegalArgumentException if Engli gh label is unknown99 * @throws IllegalArgumentException if English label is unknown 100 100 */ 101 101 public static AutoScaleMode of(String englishLabel) { … … 116 116 /** Time of last zoom to bounds action */ 117 117 protected long lastZoomTime = -1; 118 /** Last zo mmed bounds */118 /** Last zoomed bounds */ 119 119 protected int lastZoomArea = -1; 120 120 -
trunk/src/org/openstreetmap/josm/data/osm/search/SearchCompiler.java
r17749 r17786 309 309 throw new SearchParseError(tr(rxErrorMsg, e.getPattern(), e.getIndex(), e.getMessage()), e); 310 310 } catch (IllegalArgumentException | StringIndexOutOfBoundsException e) { 311 // StringIndexOutOfBoundsException ca tchedbecause of https://bugs.openjdk.java.net/browse/JI-9044959311 // StringIndexOutOfBoundsException caught because of https://bugs.openjdk.java.net/browse/JI-9044959 312 312 // See #13870: To remove after we switch to a version of Java which resolves this bug 313 313 throw new SearchParseError(tr(rxErrorMsgNoPos, regex, e.getMessage()), e); -
trunk/src/org/openstreetmap/josm/data/validation/tests/OverlappingWays.java
r17350 r17786 48 48 private MultiMap<Pair<Node, Node>, WaySegment> nodePairs; 49 49 50 private boolean onlyKn wonLinear;50 private boolean onlyKnownLinear; 51 51 private boolean includeOther; 52 52 private boolean ignoreLayer; … … 84 84 nodePairs = new MultiMap<>(1000); 85 85 includeOther = isBeforeUpload ? ValidatorPrefHelper.PREF_OTHER_UPLOAD.get() : ValidatorPrefHelper.PREF_OTHER.get(); 86 onlyKn wonLinear = Config.getPref().getBoolean("overlapping-ways.only-known-linear", true);86 onlyKnownLinear = Config.getPref().getBoolean("overlapping-ways.only-known-linear", true); 87 87 ignoreLayer = Config.getPref().getBoolean("overlapping-ways.ignore-layer", false); 88 88 } … … 193 193 type = OVERLAPPING_WATERWAY_LINEAR_WAY; 194 194 severity = Severity.WARNING; 195 } else if (!includeOther || onlyKn wonLinear) {195 } else if (!includeOther || onlyKnownLinear) { 196 196 return; 197 197 } else if (countHighway > 0) { … … 270 270 return; 271 271 272 if (onlyKn wonLinear && (w.concernsArea() || w.getInterestingTags().isEmpty()))272 if (onlyKnownLinear && (w.concernsArea() || w.getInterestingTags().isEmpty())) 273 273 return; 274 274 -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r17704 r17786 1258 1258 Utils.updateSystemProperty("java.net.preferIPv6Addresses", "true"); 1259 1259 if (!wasv6) { 1260 Logging.info(tr("Detected us eable IPv6 network, preferring IPv6 over IPv4 after next restart."));1260 Logging.info(tr("Detected usable IPv6 network, preferring IPv6 over IPv4 after next restart.")); 1261 1261 } else { 1262 Logging.info(tr("Detected us eable IPv6 network, preferring IPv6 over IPv4."));1262 Logging.info(tr("Detected usable IPv6 network, preferring IPv6 over IPv4.")); 1263 1263 } 1264 1264 } … … 1272 1272 } 1273 1273 if (wasv6 && !hasv6) { 1274 Logging.info(tr("Detected no us eable IPv6 network, preferring IPv4 over IPv6 after next restart."));1274 Logging.info(tr("Detected no usable IPv6 network, preferring IPv4 over IPv6 after next restart.")); 1275 1275 Config.getPref().putBoolean("validated.ipv6", hasv6); // be sure it is stored before the restart! 1276 1276 RestartAction.restartJOSM(); -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r17516 r17786 254 254 /** 255 255 * Get projections this imagery layer supports natively. 256 * 257 * For example projection of tiles that are downloaded from a server. Layer 258 * may support even more projections (by reprojecting the tiles), but with a 259 * certain loss in image quality and performance. 256 * <p/> 257 * For example projection of tiles that are downloaded from a server. Layer may support even more 258 * projections (by reprojecting the tiles), but with a certain loss in image quality and performance. 260 259 * @return projections this imagery layer supports natively; null if layer is projection agnostic. 261 260 */ … … 644 643 int maxYtiles = (int) Math.ceil((double) height / tileSize + 1); 645 644 int maxXtiles = (int) Math.ceil((double) width / tileSize + 1); 646 int visib ileTiles = maxXtiles * maxYtiles;645 int visibleTiles = maxXtiles * maxYtiles; 647 646 /** 648 647 * Take into account ZOOM_OFFSET to calculate real number of tiles and multiply by 7, to cover all tiles, that might be … … 659 658 * 660 659 * Add +2 to maxYtiles / maxXtiles to add space in cache for extra tiles in current zoom level that are 661 * download by overloadTiles(). This is not added in computation of visib ileTiles as this unnecessarily grow the cache size660 * download by overloadTiles(). This is not added in computation of visibleTiles as this unnecessarily grow the cache size 662 661 * @see #overloadTiles() 663 662 */ 664 663 int ret = (int) Math.ceil( 665 664 Math.pow(2d, ZOOM_OFFSET.get()) * // use offset to decide, how many tiles are visible 666 visib ileTiles * 7 + // 7 to cover tiles from other zooms as described above665 visibleTiles * 7 + // 7 to cover tiles from other zooms as described above 667 666 ((maxYtiles + 2) * (maxXtiles +2))); // to add as many tiles as they will be accessed on current zoom level 668 Logging.info("AbstractTileSourceLayer: estimated visib ile tiles: {0}, estimated cache size: {1}", visibileTiles, ret);667 Logging.info("AbstractTileSourceLayer: estimated visible tiles: {0}, estimated cache size: {1}", visibleTiles, ret); 669 668 return ret; 670 669 } … … 868 867 * Zoom out from map. 869 868 * 870 * @return true, if zoom increasing was successful, false other vise869 * @return true, if zoom increasing was successful, false otherwise 871 870 */ 872 871 public boolean decreaseZoomLevel() { -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java
r16488 r17786 7 7 import java.awt.geom.Rectangle2D; 8 8 import java.util.ArrayList; 9 import java.util.Collections;10 9 import java.util.Comparator; 11 10 import java.util.Iterator; … … 89 88 middleOffset + (doRotateText ? 1 : -1) * nb.getWidth() / 2, doRotateText); 90 89 91 // Order the glyphs along the line to ensure that they are drawn corre tly.92 Collections.sort(offsetGlyphs,Comparator.comparing(OffsetGlyph::getOffset));90 // Order the glyphs along the line to ensure that they are drawn correctly. 91 offsetGlyphs.sort(Comparator.comparing(OffsetGlyph::getOffset)); 93 92 94 93 // Now translate all glyphs. This will modify the glyphs stored in gvs. -
trunk/src/org/openstreetmap/josm/io/rtklib/RtkLibPosReader.java
r17715 r17786 125 125 126 126 /** 127 * Returns the number of coordinates that have been successful y read.128 * @return the number of coordinates that have been successful y read127 * Returns the number of coordinates that have been successfully read. 128 * @return the number of coordinates that have been successfully read 129 129 */ 130 130 public int getNumberOfCoordinates() {
Note:
See TracChangeset
for help on using the changeset viewer.