Changeset 19320 in josm
- Timestamp:
- 2025-02-14T10:42:11+01:00 (5 days ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 deleted
- 11 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 /** -
trunk/src/org/openstreetmap/josm/gui/io/importexport/GeoJSONImporter.java
r18807 r19320 36 36 } 37 37 38 /**39 * Parse GeoJSON dataset.40 * @param source geojson file41 * @return GeoJSON dataset42 * @throws IOException in case of I/O error43 * @throws IllegalDataException if an error was found while parsing the data from the source44 * @deprecated since 18807, use {@link #parseDataSet(InputStream, ProgressMonitor)} instead45 */46 @Deprecated47 public DataSet parseDataSet(final String source) throws IOException, IllegalDataException {48 try (CachedFile cf = new CachedFile(source)) {49 InputStream fileInputStream = Compression.getUncompressedFileInputStream(cf.getFile()); // NOPMD50 return this.parseDataSet(fileInputStream, NullProgressMonitor.INSTANCE);51 }52 }53 54 38 @Override 55 39 protected DataSet parseDataSet(InputStream in, ProgressMonitor progressMonitor) throws IllegalDataException { -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r17083 r19320 234 234 235 235 /** 236 * Returns the node icon that would be displayed for the given tag.237 * @param tag The tag to look an icon for238 * @return {@code null} if no icon found239 * @deprecated use {@link OsmPrimitiveImageProvider#getResource}240 */241 @Deprecated242 public static ImageIcon getNodeIcon(Tag tag) {243 if (tag != null) {244 return OsmPrimitiveImageProvider.getResource(tag.getKey(), tag.getValue(), OsmPrimitiveType.NODE)245 .map(resource -> resource.getPaddedIcon(ImageProvider.ImageSizes.SMALLICON.getImageDimension()))246 .orElse(null);247 }248 return null;249 }250 251 /**252 236 * Gets the directories that should be searched for icons 253 237 * @param source The style source the icon is from -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r19008 r19320 234 234 * @param apiUrl The OSM API URL 235 235 * @param executor the executor used for running the HTTP requests for the authorization 236 * @since 5422237 * @deprecated since 18991238 */239 @Deprecated240 public FullyAutomaticAuthorizationUI(String apiUrl, Executor executor) {241 this(apiUrl, executor, OAuthVersion.OAuth10a);242 }243 244 /**245 * Constructs a new {@code FullyAutomaticAuthorizationUI} for the given API URL.246 * @param apiUrl The OSM API URL247 * @param executor the executor used for running the HTTP requests for the authorization248 236 * @param oAuthVersion The OAuth version to use for this UI 249 237 * @since 18991 -
trunk/src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java
r19099 r19320 48 48 private final HtmlPanel pnlMessage = new HtmlPanel(); 49 49 private final transient Executor executor; 50 51 /**52 * Constructs a new {@code ManualAuthorizationUI} for the given API URL.53 * @param apiUrl The OSM API URL54 * @param executor the executor used for running the HTTP requests for the authorization55 * @since 542256 * @deprecated since 18991, use {@link ManualAuthorizationUI#ManualAuthorizationUI(String, Executor, OAuthVersion)}57 * instead.58 */59 @Deprecated60 public ManualAuthorizationUI(String apiUrl, Executor executor) {61 this(apiUrl, executor, OAuthVersion.OAuth10a);62 }63 50 64 51 /** -
trunk/src/org/openstreetmap/josm/io/auth/CredentialsAgent.java
r18991 r19320 59 59 60 60 /** 61 * Lookup the current OAuth Access Token to access the OSM server. Replies null, if no62 * Access Token is currently managed by this CredentialAgent.63 *64 * @return the current OAuth Access Token to access the OSM server.65 * @throws CredentialsAgentException if something goes wrong66 * @deprecated since 18991 -- OAuth 1.0 is being removed from the OSM API67 */68 @Deprecated69 default IOAuthToken lookupOAuthAccessToken() throws CredentialsAgentException {70 throw new CredentialsAgentException("Call to deprecated method");71 }72 73 /**74 61 * Lookup the current OAuth Access Token to access the specified server. Replies null, if no 75 62 * Access Token is currently managed by this CredentialAgent. … … 82 69 @Nullable 83 70 IOAuthToken lookupOAuthAccessToken(String host) throws CredentialsAgentException; 84 85 /**86 * Stores the OAuth Access Token <code>accessToken</code>.87 *88 * @param accessToken the access Token. null, to remove the Access Token.89 * @throws CredentialsAgentException if something goes wrong90 * @deprecated since 18991 -- OAuth 1.0 is being removed from the OSM API91 */92 @Deprecated93 default void storeOAuthAccessToken(IOAuthToken accessToken) throws CredentialsAgentException {94 throw new CredentialsAgentException("Call to deprecated method");95 }96 71 97 72 /**
Note:
See TracChangeset
for help on using the changeset viewer.