Ignore:
Timestamp:
2021-09-11T17:50:57+02:00 (3 years ago)
Author:
Don-vip
Message:

global use of Utils.isEmpty/isBlank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/routines/RegexValidator.java

    r16445 r18208  
    2323import java.util.stream.Collectors;
    2424import java.util.stream.IntStream;
     25
     26import org.openstreetmap.josm.tools.Utils;
    2527
    2628/**
     
    126128        int flags = caseSensitive ? 0 : Pattern.CASE_INSENSITIVE;
    127129        for (int i = 0; i < regexs.length; i++) {
    128             if (regexs[i] == null || regexs[i].isEmpty()) {
     130            if (Utils.isEmpty(regexs[i])) {
    129131                throw new IllegalArgumentException("Regular expression[" + i + "] is missing");
    130132            }
Note: See TracChangeset for help on using the changeset viewer.