Changeset 17786 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2021-04-14T21:29:43+02:00 (4 years ago)
Author:
simon04
Message:

see #20741 - Fix typos in code and strings (patch by gaben)

Location:
trunk/src/org/openstreetmap/josm
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java

    r15963 r17786  
    9797         * @param englishLabel English label
    9898         * @return {@code AutoScaleMode} for given English label
    99          * @throws IllegalArgumentException if Engligh label is unknown
     99         * @throws IllegalArgumentException if English label is unknown
    100100         */
    101101        public static AutoScaleMode of(String englishLabel) {
     
    116116    /** Time of last zoom to bounds action */
    117117    protected long lastZoomTime = -1;
    118     /** Last zommed bounds */
     118    /** Last zoomed bounds */
    119119    protected int lastZoomArea = -1;
    120120
  • trunk/src/org/openstreetmap/josm/data/osm/search/SearchCompiler.java

    r17749 r17786  
    309309                throw new SearchParseError(tr(rxErrorMsg, e.getPattern(), e.getIndex(), e.getMessage()), e);
    310310            } catch (IllegalArgumentException | StringIndexOutOfBoundsException e) {
    311                 // StringIndexOutOfBoundsException catched because of https://bugs.openjdk.java.net/browse/JI-9044959
     311                // StringIndexOutOfBoundsException caught because of https://bugs.openjdk.java.net/browse/JI-9044959
    312312                // See #13870: To remove after we switch to a version of Java which resolves this bug
    313313                throw new SearchParseError(tr(rxErrorMsgNoPos, regex, e.getMessage()), e);
  • trunk/src/org/openstreetmap/josm/data/validation/tests/OverlappingWays.java

    r17350 r17786  
    4848    private MultiMap<Pair<Node, Node>, WaySegment> nodePairs;
    4949
    50     private boolean onlyKnwonLinear;
     50    private boolean onlyKnownLinear;
    5151    private boolean includeOther;
    5252    private boolean ignoreLayer;
     
    8484        nodePairs = new MultiMap<>(1000);
    8585        includeOther = isBeforeUpload ? ValidatorPrefHelper.PREF_OTHER_UPLOAD.get() : ValidatorPrefHelper.PREF_OTHER.get();
    86         onlyKnwonLinear = Config.getPref().getBoolean("overlapping-ways.only-known-linear", true);
     86        onlyKnownLinear = Config.getPref().getBoolean("overlapping-ways.only-known-linear", true);
    8787        ignoreLayer = Config.getPref().getBoolean("overlapping-ways.ignore-layer", false);
    8888    }
     
    193193                type = OVERLAPPING_WATERWAY_LINEAR_WAY;
    194194                severity = Severity.WARNING;
    195             } else if (!includeOther || onlyKnwonLinear) {
     195            } else if (!includeOther || onlyKnownLinear) {
    196196                return;
    197197            } else if (countHighway > 0) {
     
    270270            return;
    271271
    272         if (onlyKnwonLinear && (w.concernsArea() || w.getInterestingTags().isEmpty()))
     272        if (onlyKnownLinear && (w.concernsArea() || w.getInterestingTags().isEmpty()))
    273273            return;
    274274
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r17704 r17786  
    12581258                                Utils.updateSystemProperty("java.net.preferIPv6Addresses", "true");
    12591259                                if (!wasv6) {
    1260                                     Logging.info(tr("Detected useable IPv6 network, preferring IPv6 over IPv4 after next restart."));
     1260                                    Logging.info(tr("Detected usable IPv6 network, preferring IPv6 over IPv4 after next restart."));
    12611261                                } else {
    1262                                     Logging.info(tr("Detected useable IPv6 network, preferring IPv6 over IPv4."));
     1262                                    Logging.info(tr("Detected usable IPv6 network, preferring IPv6 over IPv4."));
    12631263                                }
    12641264                            }
     
    12721272                }
    12731273                if (wasv6 && !hasv6) {
    1274                     Logging.info(tr("Detected no useable 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."));
    12751275                    Config.getPref().putBoolean("validated.ipv6", hasv6); // be sure it is stored before the restart!
    12761276                    RestartAction.restartJOSM();
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r17516 r17786  
    254254    /**
    255255     * 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.
    260259     * @return projections this imagery layer supports natively; null if layer is projection agnostic.
    261260     */
     
    644643        int maxYtiles = (int) Math.ceil((double) height / tileSize + 1);
    645644        int maxXtiles = (int) Math.ceil((double) width / tileSize + 1);
    646         int visibileTiles = maxXtiles * maxYtiles;
     645        int visibleTiles = maxXtiles * maxYtiles;
    647646        /**
    648647         * Take into account ZOOM_OFFSET to calculate real number of tiles and multiply by 7, to cover all tiles, that might be
     
    659658         *
    660659         * 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 visibileTiles as this unnecessarily grow the cache size
     660         * download by overloadTiles(). This is not added in computation of visibleTiles as this unnecessarily grow the cache size
    662661         * @see #overloadTiles()
    663662         */
    664663        int ret = (int) Math.ceil(
    665664                Math.pow(2d, ZOOM_OFFSET.get()) * // use offset to decide, how many tiles are visible
    666                 visibileTiles * 7 + // 7 to cover tiles from other zooms as described above
     665                visibleTiles * 7 + // 7 to cover tiles from other zooms as described above
    667666                ((maxYtiles + 2) * (maxXtiles +2))); // to add as many tiles as they will be accessed on current zoom level
    668         Logging.info("AbstractTileSourceLayer: estimated visibile tiles: {0}, estimated cache size: {1}", visibileTiles, ret);
     667        Logging.info("AbstractTileSourceLayer: estimated visible tiles: {0}, estimated cache size: {1}", visibleTiles, ret);
    669668        return ret;
    670669    }
     
    868867     * Zoom out from map.
    869868     *
    870      * @return    true, if zoom increasing was successful, false othervise
     869     * @return    true, if zoom increasing was successful, false otherwise
    871870     */
    872871    public boolean decreaseZoomLevel() {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java

    r16488 r17786  
    77import java.awt.geom.Rectangle2D;
    88import java.util.ArrayList;
    9 import java.util.Collections;
    109import java.util.Comparator;
    1110import java.util.Iterator;
     
    8988                middleOffset + (doRotateText ? 1 : -1) * nb.getWidth() / 2, doRotateText);
    9089
    91         // Order the glyphs along the line to ensure that they are drawn corretly.
    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));
    9392
    9493        // Now translate all glyphs. This will modify the glyphs stored in gvs.
  • trunk/src/org/openstreetmap/josm/io/rtklib/RtkLibPosReader.java

    r17715 r17786  
    125125
    126126    /**
    127      * Returns the number of coordinates that have been successfuly read.
    128      * @return the number of coordinates that have been successfuly read
     127     * Returns the number of coordinates that have been successfully read.
     128     * @return the number of coordinates that have been successfully read
    129129     */
    130130    public int getNumberOfCoordinates() {
Note: See TracChangeset for help on using the changeset viewer.