Changeset 11889 in josm for trunk/src/org/openstreetmap/josm/data/validation/routines/UrlValidator.java
- Timestamp:
- 2017-04-12T22:22:52+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/routines/UrlValidator.java
r11747 r11889 24 24 import java.util.HashSet; 25 25 import java.util.Locale; 26 import java.util.Optional; 26 27 import java.util.Set; 27 28 import java.util.regex.Matcher; … … 428 429 } 429 430 430 String extra = authorityMatcher.group(PARSE_AUTHORITY_EXTRA); 431 if (extra != null && !extra.trim().isEmpty()) { 432 return false; 433 } 434 435 return true; 431 return Optional.ofNullable(authorityMatcher.group(PARSE_AUTHORITY_EXTRA)).orElse("").trim().isEmpty(); 436 432 } 437 433
Note:
See TracChangeset
for help on using the changeset viewer.