- Timestamp:
- 2016-05-13T04:20:36+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/routines/EmailValidator.java
r9997 r10202 73 73 private static final EmailValidator EMAIL_VALIDATOR_WITH_LOCAL = new EmailValidator(true, false); 74 74 75 76 /**77 * Singleton instance of this class, which does78 * consider local addresses valid.79 */80 private static final EmailValidator EMAIL_VALIDATOR_WITH_LOCAL_WITH_TLD = new EmailValidator(true, true);81 82 75 /** 83 76 * Returns the Singleton instance of this validator. … … 99 92 public static EmailValidator getInstance(boolean allowLocal, boolean allowTld) { 100 93 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; 106 95 } else { 107 96 if (allowTld) {
Note:
See TracChangeset
for help on using the changeset viewer.