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

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

Location:
trunk/src/org/openstreetmap/josm/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.