Ignore:
Timestamp:
2024-04-22T20:59:26+02:00 (6 weeks ago)
Author:
taylor.smock
Message:

Revert most var changes from r19048, fix most new compile warnings and checkstyle issues

Also, document why various ErrorProne checks were originally disabled and fix
generic SonarLint issues.

File:
1 edited

Legend:

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

    r19039 r19050  
    18531853                .toArray(String[]::new);
    18541854        Arrays.sort(copy);
    1855         switch(table) {
     1855        switch (table) {
    18561856        case COUNTRY_CODE_MINUS:
    18571857            countryCodeTLDsMinus = copy;
     
    18851885    public static String[] getTLDEntries(ArrayType table) {
    18861886        final String[] array;
    1887         switch(table) {
     1887        switch (table) {
    18881888        case COUNTRY_CODE_MINUS:
    18891889            array = countryCodeTLDsMinus;
     
    19431943            //            (halfwidth ideographic full stop).
    19441944            char lastChar = input.charAt(length-1); // fetch original last char
    1945             switch(lastChar) {
     1945            switch (lastChar) {
    19461946                case '.':      // "." full stop, AKA U+002E
    19471947                case '\u3002': // ideographic full stop
     
    19581958    }
    19591959
    1960     private static class IdnBugHolder {
     1960    private static final class IdnBugHolder {
    19611961        private static boolean keepsTrailingDot() {
    19621962            final String input = "a."; // must be a valid name
Note: See TracChangeset for help on using the changeset viewer.