Changeset 16586 in josm


Ignore:
Timestamp:
2020-06-09T22:44:02+02:00 (4 years ago)
Author:
simon04
Message:

RequestProcessor.PROTOCOLVERSION: use javax.json

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/RequestProcessor.java

    r16550 r16586  
    6565     * changes.
    6666     */
    67     public static final String PROTOCOLVERSION = "{\"protocolversion\": {\"major\": " +
    68         RemoteControl.protocolMajorVersion + ", \"minor\": " +
    69         RemoteControl.protocolMinorVersion +
    70         "}, \"application\": \"JOSM RemoteControl\"}";
     67    public static final String PROTOCOLVERSION = Json.createObjectBuilder()
     68            .add("protocolversion", Json.createObjectBuilder()
     69                    .add("major", RemoteControl.protocolMajorVersion)
     70                    .add("minor", RemoteControl.protocolMinorVersion))
     71            .add("application", "JOSM RemoteControl")
     72            .build().toString();
    7173
    7274    /** The socket this processor listens on */
Note: See TracChangeset for help on using the changeset viewer.