Changeset 19320 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2025-02-14T10:42:11+01:00 (3 months ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java
r18592 r19320 174 174 * is returned if that copy exists. 175 175 * @return the GPS time value 176 * @deprecated Use {@link #getGpsInstant}177 */178 @Deprecated179 public Date getGpsTime() {180 if (tmp != null)181 return getDefensiveDate(tmp.gpsTime);182 return getDefensiveDate(gpsTime);183 }184 185 /**186 * Returns the GPS time value. The GPS time value from the temporary copy187 * is returned if that copy exists.188 * @return the GPS time value189 176 */ 190 177 @Override … … 247 234 public boolean hasExifTime() { 248 235 return exifTime != null; 249 }250 251 /**252 * Returns the EXIF GPS time.253 * @return the EXIF GPS time254 * @since 6392255 * @deprecated Use {@link #getExifGpsInstant}256 */257 @Deprecated258 public Date getExifGpsTime() {259 return getDefensiveDate(exifGpsTime);260 236 } 261 237 -
trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java
r18014 r19320 134 134 * Sets the {@link #PT_TIME} attribute to the specified time. 135 135 * 136 * @param ts seconds from the epoch137 * @since 13210138 * @deprecated Use {@link #setInstant(Instant)}139 */140 @Deprecated141 public void setTime(long ts) {142 setInstant(Instant.ofEpochSecond(ts));143 }144 145 /**146 * Sets the {@link #PT_TIME} attribute to the specified time.147 *148 136 * @param ts milliseconds from the epoch 149 137 * @since 14434 … … 195 183 public boolean hasDate() { 196 184 return attr.get(PT_TIME) instanceof Instant; 197 }198 199 /**200 * Returns the waypoint time Date object.201 *202 * @return a copy of the Date object associated with this waypoint203 * @since 14456204 * @deprecated Use {@link #getInstant()}205 */206 @Deprecated207 public Date getDate() {208 Instant instant = getInstant();209 return instant == null ? null : Date.from(instant);210 185 } 211 186 -
trunk/src/org/openstreetmap/josm/data/oauth/OAuthVersion.java
r18991 r19320 8 8 */ 9 9 public enum OAuthVersion { 10 /**11 * <a href="https://oauth.net/core/1.0a/">OAuth 1.0a</a>12 * @deprecated The OSM API server has deprecated and will remove OAuth 1.0a support in June 2024.13 */14 @Deprecated15 OAuth10a,16 10 /** <a href="https://datatracker.ietf.org/doc/html/rfc6749">OAuth 2.0</a> */ 17 11 OAuth20, -
trunk/src/org/openstreetmap/josm/data/osm/OsmUtils.java
r18918 r19320 33 33 */ 34 34 public static final String REVERSE_VALUE = "-1"; 35 36 /**37 * Discouraged synonym for {@link #TRUE_VALUE}38 * @deprecated since 18801, use {@link #TRUE_VALUE} instead.39 */40 @Deprecated41 public static final String trueval = TRUE_VALUE;42 /**43 * Discouraged synonym for {@link #FALSE_VALUE}44 * @deprecated since 18801, use {@link #FALSE_VALUE} instead.45 */46 @Deprecated47 public static final String falseval = FALSE_VALUE;48 /**49 * Discouraged synonym for {@link #REVERSE_VALUE}50 * @deprecated since 18801, use {@link #REVERSE_VALUE} instead.51 */52 @Deprecated53 public static final String reverseval = REVERSE_VALUE;54 35 55 36 private OsmUtils() { -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java
r17838 r19320 159 159 * Returns the timestamp. 160 160 * @return the timestamp 161 * @deprecated Use {@link #getInstant()}162 */163 @Deprecated164 public Date getTimestamp() {165 return Date.from(timestamp);166 }167 168 /**169 * Returns the timestamp.170 * @return the timestamp171 161 */ 172 162 public Instant getInstant() { -
trunk/src/org/openstreetmap/josm/data/protobuf/ProtobufPacked.java
r18695 r19320 15 15 private final long[] numbers; 16 16 private int location; 17 18 /**19 * Create a new ProtobufPacked object20 *21 * @param ignored A reusable ByteArrayOutputStream (no longer used)22 * @param bytes The packed bytes23 * @deprecated since we aren't using the output stream anymore24 */25 @Deprecated26 public ProtobufPacked(ByteArrayOutputStream ignored, byte[] bytes) {27 this(bytes);28 }29 17 30 18 /**
Note:
See TracChangeset
for help on using the changeset viewer.