Changeset 11878 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2017-04-10T00:14:42+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/HttpClient.java
r11553 r11878 14 14 import java.net.HttpURLConnection; 15 15 import java.net.URL; 16 import java.util.Arrays; 16 17 import java.util.Collections; 17 18 import java.util.List; … … 558 559 */ 559 560 public HttpClient setRequestBody(byte[] requestBody) { 560 this.requestBody = requestBody;561 this.requestBody = Arrays.copyOf(requestBody, requestBody.length); 561 562 return this; 562 563 } -
trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java
r11620 r11878 163 163 } 164 164 165 /** 166 * Null-safe date cloning method. 167 * @param d date to clone, or null 168 * @return cloned date, or null 169 * @since 11878 170 */ 171 public static Date cloneDate(Date d) { 172 return d != null ? (Date) d.clone() : null; 173 } 174 165 175 private static boolean checkLayout(String text, String pattern) { 166 176 if (text.length() != pattern.length())
Note:
See TracChangeset
for help on using the changeset viewer.