-
Subject: [PATCH] Deprecated annotation
---
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/data/coor/LatLon.java b/src/org/openstreetmap/josm/data/coor/LatLon.java
|
a
|
b
|
|
| 177 | 177 | * values, only differing by no more than 1 / {@link #MAX_SERVER_PRECISION MAX_SERVER_PRECISION}. |
| 178 | 178 | * @deprecated since 18464 (use {@link ILatLon#equalsEpsilon(ILatLon)} instead) |
| 179 | 179 | */ |
| 180 | | @Deprecated |
| | 180 | @Deprecated(since = "18464") |
| 181 | 181 | public boolean equalsEpsilon(LatLon other) { |
| 182 | 182 | return ILatLon.super.equalsEpsilon(other); |
| 183 | 183 | } |
| … |
… |
|
| 187 | 187 | * @return <code>true</code>, if the coordinate is outside the world, compared by using lat/lon. |
| 188 | 188 | * @deprecated use {@link Node#isOutSideWorld} instead, see also #13538. |
| 189 | 189 | */ |
| 190 | | @Deprecated |
| | 190 | @Deprecated(since = "15449") |
| 191 | 191 | public boolean isOutSideWorld() { |
| 192 | 192 | Bounds b = ProjectionRegistry.getProjection().getWorldBoundsLatLon(); |
| 193 | 193 | return lat() < b.getMinLat() || lat() > b.getMaxLat() || |
| … |
… |
|
| 220 | 220 | * @return distance in metres. |
| 221 | 221 | * @deprecated since 18494 (use {@link ILatLon#greatCircleDistance(ILatLon)} instead) |
| 222 | 222 | */ |
| 223 | | @Deprecated |
| | 223 | @Deprecated(since = "18494") |
| 224 | 224 | public double greatCircleDistance(LatLon other) { |
| 225 | 225 | return ILatLon.super.greatCircleDistance(other); |
| 226 | 226 | } |
| … |
… |
|
| 241 | 241 | * @since 9796 |
| 242 | 242 | * @deprecated since 18494 (use {@link ILatLon#bearing(ILatLon)} instead) |
| 243 | 243 | */ |
| 244 | | @Deprecated |
| | 244 | @Deprecated(since = "18494") |
| 245 | 245 | public double bearing(LatLon other) { |
| 246 | 246 | return ILatLon.super.bearing(other); |
| 247 | 247 | } |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java b/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java
|
a
|
b
|
|
| 175 | 175 | * @return the GPS time value |
| 176 | 176 | * @deprecated Use {@link #getGpsInstant} |
| 177 | 177 | */ |
| 178 | | @Deprecated |
| | 178 | @Deprecated(since = "17715") |
| 179 | 179 | public Date getGpsTime() { |
| 180 | 180 | if (tmp != null) |
| 181 | 181 | return getDefensiveDate(tmp.gpsTime); |
| … |
… |
|
| 254 | 254 | * @since 6392 |
| 255 | 255 | * @deprecated Use {@link #getExifGpsInstant} |
| 256 | 256 | */ |
| 257 | | @Deprecated |
| | 257 | @Deprecated(since = "17715") |
| 258 | 258 | public Date getExifGpsTime() { |
| 259 | 259 | return getDefensiveDate(exifGpsTime); |
| 260 | 260 | } |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/data/gpx/ImmutableGpxTrack.java b/src/org/openstreetmap/josm/data/gpx/ImmutableGpxTrack.java
|
a
|
b
|
|
| 10 | 10 | * @since 2907 |
| 11 | 11 | * @deprecated Use {@link GpxTrack} instead! |
| 12 | 12 | */ |
| 13 | | @Deprecated |
| | 13 | @Deprecated(since = "15496") |
| 14 | 14 | public class ImmutableGpxTrack extends GpxTrack { |
| 15 | 15 | |
| 16 | 16 | /** |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/data/gpx/WayPoint.java b/src/org/openstreetmap/josm/data/gpx/WayPoint.java
|
a
|
b
|
|
| 137 | 137 | * @since 13210 |
| 138 | 138 | * @deprecated Use {@link #setInstant(Instant)} |
| 139 | 139 | */ |
| 140 | | @Deprecated |
| | 140 | @Deprecated(since = "17715") |
| 141 | 141 | public void setTime(long ts) { |
| 142 | 142 | setInstant(Instant.ofEpochSecond(ts)); |
| 143 | 143 | } |
| … |
… |
|
| 203 | 203 | * @since 14456 |
| 204 | 204 | * @deprecated Use {@link #getInstant()} |
| 205 | 205 | */ |
| 206 | | @Deprecated |
| | 206 | @Deprecated(since = "17715") |
| 207 | 207 | public Date getDate() { |
| 208 | 208 | Instant instant = getInstant(); |
| 209 | 209 | return instant == null ? null : Date.from(instant); |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/data/oauth/OAuthVersion.java b/src/org/openstreetmap/josm/data/oauth/OAuthVersion.java
|
a
|
b
|
|
| 11 | 11 | * <a href="https://oauth.net/core/1.0a/">OAuth 1.0a</a> |
| 12 | 12 | * @deprecated The OSM API server has deprecated and will remove OAuth 1.0a support in June 2024. |
| 13 | 13 | */ |
| 14 | | @Deprecated |
| | 14 | @Deprecated(since = "18991") |
| 15 | 15 | OAuth10a, |
| 16 | 16 | /** <a href="https://datatracker.ietf.org/doc/html/rfc6749">OAuth 2.0</a> */ |
| 17 | 17 | OAuth20, |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java b/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java
|
a
|
b
|
|
| 160 | 160 | * @return the timestamp |
| 161 | 161 | * @deprecated Use {@link #getInstant()} |
| 162 | 162 | */ |
| 163 | | @Deprecated |
| | 163 | @Deprecated(since = "17838") |
| 164 | 164 | public Date getTimestamp() { |
| 165 | 165 | return Date.from(timestamp); |
| 166 | 166 | } |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/data/osm/OsmUtils.java b/src/org/openstreetmap/josm/data/osm/OsmUtils.java
|
a
|
b
|
|
| 37 | 37 | * Discouraged synonym for {@link #TRUE_VALUE} |
| 38 | 38 | * @deprecated since 18801, use {@link #TRUE_VALUE} instead. |
| 39 | 39 | */ |
| 40 | | @Deprecated |
| | 40 | @Deprecated(since = "18801") |
| 41 | 41 | public static final String trueval = TRUE_VALUE; |
| 42 | 42 | /** |
| 43 | 43 | * Discouraged synonym for {@link #FALSE_VALUE} |
| 44 | 44 | * @deprecated since 18801, use {@link #FALSE_VALUE} instead. |
| 45 | 45 | */ |
| 46 | | @Deprecated |
| | 46 | @Deprecated(since = "18801") |
| 47 | 47 | public static final String falseval = FALSE_VALUE; |
| 48 | 48 | /** |
| 49 | 49 | * Discouraged synonym for {@link #REVERSE_VALUE} |
| 50 | 50 | * @deprecated since 18801, use {@link #REVERSE_VALUE} instead. |
| 51 | 51 | */ |
| 52 | | @Deprecated |
| | 52 | @Deprecated(since = "18801") |
| 53 | 53 | public static final String reverseval = REVERSE_VALUE; |
| 54 | 54 | |
| 55 | 55 | private OsmUtils() { |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/data/protobuf/ProtobufPacked.java b/src/org/openstreetmap/josm/data/protobuf/ProtobufPacked.java
|
a
|
b
|
|
| 22 | 22 | * @param bytes The packed bytes |
| 23 | 23 | * @deprecated since we aren't using the output stream anymore |
| 24 | 24 | */ |
| 25 | | @Deprecated |
| | 25 | @Deprecated(since = "18695") |
| 26 | 26 | public ProtobufPacked(ByteArrayOutputStream ignored, byte[] bytes) { |
| 27 | 27 | this(bytes); |
| 28 | 28 | } |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/gui/io/importexport/GeoJSONImporter.java b/src/org/openstreetmap/josm/gui/io/importexport/GeoJSONImporter.java
|
a
|
b
|
|
| 43 | 43 | * @throws IllegalDataException if an error was found while parsing the data from the source |
| 44 | 44 | * @deprecated since 18807, use {@link #parseDataSet(InputStream, ProgressMonitor)} instead |
| 45 | 45 | */ |
| 46 | | @Deprecated |
| | 46 | @Deprecated(since = "18807") |
| 47 | 47 | public DataSet parseDataSet(final String source) throws IOException, IllegalDataException { |
| 48 | 48 | try (CachedFile cf = new CachedFile(source)) { |
| 49 | 49 | InputStream fileInputStream = Compression.getUncompressedFileInputStream(cf.getFile()); // NOPMD |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java b/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
|
a
|
b
|
|
| 238 | 238 | * @return {@code null} if no icon found |
| 239 | 239 | * @deprecated use {@link OsmPrimitiveImageProvider#getResource} |
| 240 | 240 | */ |
| 241 | | @Deprecated |
| | 241 | @Deprecated(since = "15889") |
| 242 | 242 | public static ImageIcon getNodeIcon(Tag tag) { |
| 243 | 243 | if (tag != null) { |
| 244 | 244 | return OsmPrimitiveImageProvider.getResource(tag.getKey(), tag.getValue(), OsmPrimitiveType.NODE) |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java b/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
|
a
|
b
|
|
| 236 | 236 | * @since 5422 |
| 237 | 237 | * @deprecated since 18991 |
| 238 | 238 | */ |
| 239 | | @Deprecated |
| | 239 | @Deprecated(since = "18991") |
| 240 | 240 | public FullyAutomaticAuthorizationUI(String apiUrl, Executor executor) { |
| 241 | 241 | this(apiUrl, executor, OAuthVersion.OAuth10a); |
| 242 | 242 | } |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java b/src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java
|
a
|
b
|
|
| 56 | 56 | * @deprecated since 18991, use {@link ManualAuthorizationUI#ManualAuthorizationUI(String, Executor, OAuthVersion)} |
| 57 | 57 | * instead. |
| 58 | 58 | */ |
| 59 | | @Deprecated |
| | 59 | @Deprecated(since = "18991") |
| 60 | 60 | public ManualAuthorizationUI(String apiUrl, Executor executor) { |
| 61 | 61 | this(apiUrl, executor, OAuthVersion.OAuth10a); |
| 62 | 62 | } |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java b/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java
|
a
|
b
|
|
| 11 | 11 | * @deprecated Use the generic type {@link AutoCompComboBox} instead. Eg. |
| 12 | 12 | * {@code AutoCompComboBox<AutoCompletionItem>} or {@code AutoCompComboBox<String>}. |
| 13 | 13 | */ |
| 14 | | @Deprecated |
| | 14 | @Deprecated(since = "18173") |
| 15 | 15 | public class AutoCompletingComboBox extends AutoCompComboBox<AutoCompletionItem> { |
| 16 | 16 | } |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/gui/SplashScreen.java b/src/org/openstreetmap/josm/gui/SplashScreen.java
|
a
|
b
|
|
| 283 | 283 | * @deprecated Use {@link #finishTask(String)} instead. |
| 284 | 284 | */ |
| 285 | 285 | @Override |
| 286 | | @Deprecated |
| | 286 | @Deprecated(since = "8497") |
| 287 | 287 | public void finishTask() { |
| 288 | 288 | // Not used |
| 289 | 289 | } |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/io/auth/CredentialsAgent.java b/src/org/openstreetmap/josm/io/auth/CredentialsAgent.java
|
a
|
b
|
|
| 65 | 65 | * @throws CredentialsAgentException if something goes wrong |
| 66 | 66 | * @deprecated since 18991 -- OAuth 1.0 is being removed from the OSM API |
| 67 | 67 | */ |
| 68 | | @Deprecated |
| | 68 | @Deprecated(since = "18991") |
| 69 | 69 | default IOAuthToken lookupOAuthAccessToken() throws CredentialsAgentException { |
| 70 | 70 | throw new CredentialsAgentException("Call to deprecated method"); |
| 71 | 71 | } |
| … |
… |
|
| 89 | 89 | * @throws CredentialsAgentException if something goes wrong |
| 90 | 90 | * @deprecated since 18991 -- OAuth 1.0 is being removed from the OSM API |
| 91 | 91 | */ |
| 92 | | @Deprecated |
| | 92 | @Deprecated(since = "18991") |
| 93 | 93 | default void storeOAuthAccessToken(IOAuthToken accessToken) throws CredentialsAgentException { |
| 94 | 94 | throw new CredentialsAgentException("Call to deprecated method"); |
| 95 | 95 | } |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/test/unit/org/openstreetmap/josm/data/coor/LatLonTest.java b/test/unit/org/openstreetmap/josm/data/coor/LatLonTest.java
|
a
|
b
|
|
| 215 | 215 | * @deprecated to remove |
| 216 | 216 | */ |
| 217 | 217 | @Test |
| 218 | | @Deprecated |
| | 218 | @Deprecated(since = "15451") |
| 219 | 219 | void testIsOutSideWorld() { |
| 220 | 220 | assertFalse(LatLon.ZERO.isOutSideWorld()); |
| 221 | 221 | assertTrue(LatLon.NORTH_POLE.isOutSideWorld()); |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/test/unit/org/openstreetmap/josm/testutils/ExpectedRootException.java b/test/unit/org/openstreetmap/josm/testutils/ExpectedRootException.java
|
a
|
b
|
|
| 18 | 18 | * @see <a href="https://github.com/junit-team/junit4/pull/778">Github pull request</a> |
| 19 | 19 | * @deprecated Use matchers instead with the return from {@link org.junit.jupiter.api.Assertions#assertThrows} |
| 20 | 20 | */ |
| 21 | | @Deprecated |
| | 21 | @Deprecated(since = "16618") |
| 22 | 22 | public final class ExpectedRootException implements TestRule { |
| 23 | 23 | |
| 24 | 24 | private final ExpectedException rule = ExpectedException.none(); |
-
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java b/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
|
a
|
b
|
|
| 299 | 299 | * @since 12556 |
| 300 | 300 | * @deprecated Use {@link #territories} |
| 301 | 301 | */ |
| 302 | | @Deprecated |
| | 302 | @Deprecated(since = "16321") |
| 303 | 303 | public JOSMTestRules rlTraffic() { |
| 304 | 304 | territories(); |
| 305 | 305 | return this; |