Changeset 10202 in josm for trunk/src


Ignore:
Timestamp:
2016-05-13T04:20:36+02:00 (9 years ago)
Author:
Don-vip
Message:

increase code coverage

File:
1 edited

Legend:

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

    r9997 r10202  
    7373    private static final EmailValidator EMAIL_VALIDATOR_WITH_LOCAL = new EmailValidator(true, false);
    7474
    75 
    76     /**
    77      * Singleton instance of this class, which does
    78      *  consider local addresses valid.
    79      */
    80     private static final EmailValidator EMAIL_VALIDATOR_WITH_LOCAL_WITH_TLD = new EmailValidator(true, true);
    81 
    8275    /**
    8376     * Returns the Singleton instance of this validator.
     
    9992    public static EmailValidator getInstance(boolean allowLocal, boolean allowTld) {
    10093        if (allowLocal) {
    101             if (allowTld) {
    102                 return EMAIL_VALIDATOR_WITH_LOCAL_WITH_TLD;
    103             } else {
    104                 return EMAIL_VALIDATOR_WITH_LOCAL;
    105             }
     94            return EMAIL_VALIDATOR_WITH_LOCAL;
    10695        } else {
    10796            if (allowTld) {
Note: See TracChangeset for help on using the changeset viewer.