Ignore:
Timestamp:
2014-04-27T15:35:47+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8465 - use String switch/case where applicable

File:
1 edited

Legend:

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

    r7005 r7012  
    620620                }
    621621
    622                 if (requestMethod.equals("PUT") || requestMethod.equals("POST") || requestMethod.equals("DELETE")) {
     622                if ("PUT".equals(requestMethod) || "POST".equals(requestMethod) || "DELETE".equals(requestMethod)) {
    623623                    activeConnection.setDoOutput(true);
    624624                    activeConnection.setRequestProperty("Content-type", "text/xml");
Note: See TracChangeset for help on using the changeset viewer.