Ignore:
Timestamp:
2026-10-01T17:54:30+02:00 (7 days 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/io/remotecontrol/RequestProcessor.java

    r19539 r19629  
    337337                handler.handle();
    338338                sendHeader(out, "200 OK", handler.getContentType(), false);
    339                 out.write("Content-length: " + handler.getContent().getBytes().length
     339                out.write("Content-length: " + handler.getContent().getBytes(RESPONSE_CHARSET).length
    340340                        + "\r\n");
    341341                out.write("\r\n");
Note: See TracChangeset for help on using the changeset viewer.