Changeset 33232 in osm for applications
- Timestamp:
- 2017-04-13T23:09:10+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/value/MapdustPluginState.java
r32787 r33232 44 44 45 45 /** The value of the state */ 46 private String value;46 private final String value; 47 47 48 48 /** -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/value/MapdustServiceCommand.java
r32787 r33232 45 45 46 46 /** The key */ 47 private String key;47 private final String key; 48 48 49 49 /** The value */ 50 private String value; 51 52 /** 53 * Builds a new <code>MapdustServiceCommand</code> object 54 */ 55 MapdustServiceCommand() {} 50 private final String value; 56 51 57 52 /** … … 79 74 return value; 80 75 } 81 82 76 } -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/service/value/MapdustResponseStatusCode.java
r32787 r33232 73 73 74 74 /** The code of the error */ 75 private Integer statusCode;75 private final Integer statusCode; 76 76 77 77 /** The Mapdust API code */ 78 private Integer apiCode;78 private final Integer apiCode; 79 79 80 80 /** The description of the response code */ 81 private String description;81 private final String description; 82 82 83 83 /** -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/util/http/HttpConnector.java
r32787 r33232 38 38 import java.net.URL; 39 39 import java.net.URLEncoder; 40 import java.nio.charset.StandardCharsets; 40 41 import java.util.Map; 41 42 … … 164 165 if (sbEncodeParameters.length() > 0) { 165 166 try (OutputStreamWriter out = 166 new OutputStreamWriter(connection.getOutputStream() )) {167 new OutputStreamWriter(connection.getOutputStream(), StandardCharsets.UTF_8)) { 167 168 out.write(sbEncodeParameters.toString()); 168 169 } … … 207 208 protected String readContent(Object obj) throws IOException { 208 209 String result = ""; 209 InputStreamReader in = new InputStreamReader((InputStream) obj );210 InputStreamReader in = new InputStreamReader((InputStream) obj, StandardCharsets.UTF_8); 210 211 BufferedReader buff = new BufferedReader(in); 211 212 String line = ""; -
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/util/retry/RetryMode.java
r32787 r33232 48 48 49 49 /** The name of the retry mode*/ 50 private String name;50 private final String name; 51 51 52 52 /**
Note:
See TracChangeset
for help on using the changeset viewer.