Ignore:
Timestamp:
2026-10-01T17:54:30+02:00 (83 minutes ago)
Author:
gaben
Message:

see #24635 - fix PMD violations

  • use String.isBlank() instead of trim().isEmpty(),
  • method references,
  • EnumMap for enum keys
  • drop redundant initializers/toString() calls and unused annotations,
  • remove unused private getDefensiveDate()
  • use an explicit charset for Content-length
File:
1 edited

Legend:

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

    r18801 r19629  
    102102            }
    103103
    104             int iIpSegment = 0;
     104            int iIpSegment;
    105105
    106106            try {
    … …  
    181181                    return false;
    182182                }
    183                 int octetInt = 0;
     183                int octetInt;
    184184                try {
    185185                    octetInt = Integer.parseInt(octet, BASE_16);
Note: See TracChangeset for help on using the changeset viewer.