Changeset 19050 in josm for trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java
- Timestamp:
- 2024-04-22T20:59:26+02:00 (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java
r19039 r19050 1853 1853 .toArray(String[]::new); 1854 1854 Arrays.sort(copy); 1855 switch (table) {1855 switch (table) { 1856 1856 case COUNTRY_CODE_MINUS: 1857 1857 countryCodeTLDsMinus = copy; … … 1885 1885 public static String[] getTLDEntries(ArrayType table) { 1886 1886 final String[] array; 1887 switch (table) {1887 switch (table) { 1888 1888 case COUNTRY_CODE_MINUS: 1889 1889 array = countryCodeTLDsMinus; … … 1943 1943 // (halfwidth ideographic full stop). 1944 1944 char lastChar = input.charAt(length-1); // fetch original last char 1945 switch (lastChar) {1945 switch (lastChar) { 1946 1946 case '.': // "." full stop, AKA U+002E 1947 1947 case '\u3002': // ideographic full stop … … 1958 1958 } 1959 1959 1960 private static class IdnBugHolder {1960 private static final class IdnBugHolder { 1961 1961 private static boolean keepsTrailingDot() { 1962 1962 final String input = "a."; // must be a valid name
Note:
See TracChangeset
for help on using the changeset viewer.