- Timestamp:
- 2018-08-16T20:07:05+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java
r14068 r14159 3 3 4 4 import java.awt.Color; 5 import java.time.DateTimeException; 5 6 import java.util.ArrayList; 6 7 import java.util.Date; … … 166 167 time = date.getTime() / 1000.; 167 168 return date; 168 } catch (UncheckedParseException e) {169 } catch (UncheckedParseException | DateTimeException e) { 169 170 Logging.warn(e); 170 171 time = 0; -
trunk/src/org/openstreetmap/josm/io/OsmServerUserInfoReader.java
r12510 r14159 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.time.DateTimeException; 6 7 import java.util.LinkedList; 7 8 import java.util.List; … … 16 17 import org.openstreetmap.josm.data.osm.UserInfo; 17 18 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 19 import org.openstreetmap.josm.tools.UncheckedParseException; 18 20 import org.openstreetmap.josm.tools.XmlParsingException; 19 21 import org.openstreetmap.josm.tools.date.DateUtils; … … 129 131 130 132 return userInfo; 131 } catch (XPathException e) {133 } catch (XPathException | UncheckedParseException | DateTimeException e) { 132 134 throw new XmlParsingException(e); 133 135 } -
trunk/src/org/openstreetmap/josm/tools/ExifReader.java
r12985 r14159 5 5 import java.io.File; 6 6 import java.io.IOException; 7 import java.time.DateTimeException; 7 8 import java.util.Date; 8 9 import java.util.concurrent.TimeUnit; … … 117 118 return date; 118 119 } 119 } catch (UncheckedParseException e) {120 } catch (UncheckedParseException | DateTimeException e) { 120 121 Logging.error(e); 121 122 } -
trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java
r14079 r14159 5 5 import java.text.ParsePosition; 6 6 import java.text.SimpleDateFormat; 7 import java.time.DateTimeException; 7 8 import java.time.Instant; 8 9 import java.time.ZoneId; … … 68 69 * @return The date 69 70 * @throws UncheckedParseException if the date does not match any of the supported date formats 71 * @throws DateTimeException if the value of any field is out of range, or if the day-of-month is invalid for the month-year 70 72 */ 71 73 public static synchronized Date fromString(String str) { … … 78 80 * @return The date in milliseconds since epoch 79 81 * @throws UncheckedParseException if the date does not match any of the supported date formats 82 * @throws DateTimeException if the value of any field is out of range, or if the day-of-month is invalid for the month-year 80 83 */ 81 84 public static synchronized long tsFromString(String str) {
Note:
See TracChangeset
for help on using the changeset viewer.