Changeset 11878 in josm for trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java
- Timestamp:
- 2017-04-10T00:14:42+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.