Changeset 18208 in josm for trunk/src/org/openstreetmap/josm/data/validation/routines/RegexValidator.java
- Timestamp:
- 2021-09-11T17:50:57+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/routines/RegexValidator.java
r16445 r18208 23 23 import java.util.stream.Collectors; 24 24 import java.util.stream.IntStream; 25 26 import org.openstreetmap.josm.tools.Utils; 25 27 26 28 /** … … 126 128 int flags = caseSensitive ? 0 : Pattern.CASE_INSENSITIVE; 127 129 for (int i = 0; i < regexs.length; i++) { 128 if ( regexs[i] == null || regexs[i].isEmpty()) {130 if (Utils.isEmpty(regexs[i])) { 129 131 throw new IllegalArgumentException("Regular expression[" + i + "] is missing"); 130 132 }
Note:
See TracChangeset
for help on using the changeset viewer.