Ticket #24104: Deprecated_annotation.patch

File Deprecated_annotation.patch, 17.3 KB (added by gaben, 4 weeks ago)
  • src/org/openstreetmap/josm/data/coor/LatLon.java

    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  
    177177     * values, only differing by no more than 1 / {@link #MAX_SERVER_PRECISION MAX_SERVER_PRECISION}.
    178178     * @deprecated since 18464 (use {@link ILatLon#equalsEpsilon(ILatLon)} instead)
    179179     */
    180     @Deprecated
     180    @Deprecated(since = "18464")
    181181    public boolean equalsEpsilon(LatLon other) {
    182182        return ILatLon.super.equalsEpsilon(other);
    183183    }
     
    187187     * @return <code>true</code>, if the coordinate is outside the world, compared by using lat/lon.
    188188     * @deprecated use {@link Node#isOutSideWorld} instead, see also #13538.
    189189     */
    190     @Deprecated
     190    @Deprecated(since = "15449")
    191191    public boolean isOutSideWorld() {
    192192        Bounds b = ProjectionRegistry.getProjection().getWorldBoundsLatLon();
    193193        return lat() < b.getMinLat() || lat() > b.getMaxLat() ||
     
    220220     * @return distance in metres.
    221221     * @deprecated since 18494 (use {@link ILatLon#greatCircleDistance(ILatLon)} instead)
    222222     */
    223     @Deprecated
     223    @Deprecated(since = "18494")
    224224    public double greatCircleDistance(LatLon other) {
    225225        return ILatLon.super.greatCircleDistance(other);
    226226    }
     
    241241     * @since 9796
    242242     * @deprecated since 18494 (use {@link ILatLon#bearing(ILatLon)} instead)
    243243     */
    244     @Deprecated
     244    @Deprecated(since = "18494")
    245245    public double bearing(LatLon other) {
    246246        return ILatLon.super.bearing(other);
    247247    }
  • src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java

    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  
    175175     * @return the GPS time value
    176176     * @deprecated Use {@link #getGpsInstant}
    177177     */
    178     @Deprecated
     178    @Deprecated(since = "17715")
    179179    public Date getGpsTime() {
    180180        if (tmp != null)
    181181            return getDefensiveDate(tmp.gpsTime);
     
    254254     * @since 6392
    255255     * @deprecated Use {@link #getExifGpsInstant}
    256256     */
    257     @Deprecated
     257    @Deprecated(since = "17715")
    258258    public Date getExifGpsTime() {
    259259        return getDefensiveDate(exifGpsTime);
    260260    }
  • src/org/openstreetmap/josm/data/gpx/ImmutableGpxTrack.java

    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  
    1010 * @since 2907
    1111 * @deprecated Use {@link GpxTrack} instead!
    1212 */
    13 @Deprecated
     13@Deprecated(since = "15496")
    1414public class ImmutableGpxTrack extends GpxTrack {
    1515
    1616    /**
  • src/org/openstreetmap/josm/data/gpx/WayPoint.java

    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  
    137137     * @since 13210
    138138     * @deprecated Use {@link #setInstant(Instant)}
    139139     */
    140     @Deprecated
     140    @Deprecated(since = "17715")
    141141    public void setTime(long ts) {
    142142        setInstant(Instant.ofEpochSecond(ts));
    143143    }
     
    203203     * @since 14456
    204204     * @deprecated Use {@link #getInstant()}
    205205     */
    206     @Deprecated
     206    @Deprecated(since = "17715")
    207207    public Date getDate() {
    208208        Instant instant = getInstant();
    209209        return instant == null ? null : Date.from(instant);
  • src/org/openstreetmap/josm/data/oauth/OAuthVersion.java

    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  
    1111     * <a href="https://oauth.net/core/1.0a/">OAuth 1.0a</a>
    1212     * @deprecated The OSM API server has deprecated and will remove OAuth 1.0a support in June 2024.
    1313     */
    14     @Deprecated
     14    @Deprecated(since = "18991")
    1515    OAuth10a,
    1616    /** <a href="https://datatracker.ietf.org/doc/html/rfc6749">OAuth 2.0</a> */
    1717    OAuth20,
  • src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java

    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  
    160160     * @return the timestamp
    161161     * @deprecated Use {@link #getInstant()}
    162162     */
    163     @Deprecated
     163    @Deprecated(since = "17838")
    164164    public Date getTimestamp() {
    165165        return Date.from(timestamp);
    166166    }
  • src/org/openstreetmap/josm/data/osm/OsmUtils.java

    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  
    3737     * Discouraged synonym for {@link #TRUE_VALUE}
    3838     * @deprecated since 18801, use {@link #TRUE_VALUE} instead.
    3939     */
    40     @Deprecated
     40    @Deprecated(since = "18801")
    4141    public static final String trueval = TRUE_VALUE;
    4242    /**
    4343     * Discouraged synonym for {@link #FALSE_VALUE}
    4444     * @deprecated since 18801, use {@link #FALSE_VALUE} instead.
    4545     */
    46     @Deprecated
     46    @Deprecated(since = "18801")
    4747    public static final String falseval = FALSE_VALUE;
    4848    /**
    4949     * Discouraged synonym for {@link #REVERSE_VALUE}
    5050     * @deprecated since 18801, use {@link #REVERSE_VALUE} instead.
    5151     */
    52     @Deprecated
     52    @Deprecated(since = "18801")
    5353    public static final String reverseval = REVERSE_VALUE;
    5454
    5555    private OsmUtils() {
  • src/org/openstreetmap/josm/data/protobuf/ProtobufPacked.java

    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  
    2222     * @param bytes The packed bytes
    2323     * @deprecated since we aren't using the output stream anymore
    2424     */
    25     @Deprecated
     25    @Deprecated(since = "18695")
    2626    public ProtobufPacked(ByteArrayOutputStream ignored, byte[] bytes) {
    2727        this(bytes);
    2828    }
  • src/org/openstreetmap/josm/gui/io/importexport/GeoJSONImporter.java

    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  
    4343     * @throws IllegalDataException if an error was found while parsing the data from the source
    4444     * @deprecated since 18807, use {@link #parseDataSet(InputStream, ProgressMonitor)} instead
    4545     */
    46     @Deprecated
     46    @Deprecated(since = "18807")
    4747    public DataSet parseDataSet(final String source) throws IOException, IllegalDataException {
    4848        try (CachedFile cf = new CachedFile(source)) {
    4949            InputStream fileInputStream = Compression.getUncompressedFileInputStream(cf.getFile()); // NOPMD
  • src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    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  
    238238     * @return {@code null} if no icon found
    239239     * @deprecated use {@link OsmPrimitiveImageProvider#getResource}
    240240     */
    241     @Deprecated
     241    @Deprecated(since = "15889")
    242242    public static ImageIcon getNodeIcon(Tag tag) {
    243243        if (tag != null) {
    244244            return OsmPrimitiveImageProvider.getResource(tag.getKey(), tag.getValue(), OsmPrimitiveType.NODE)
  • src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java

    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  
    236236     * @since 5422
    237237     * @deprecated since 18991
    238238     */
    239     @Deprecated
     239    @Deprecated(since = "18991")
    240240    public FullyAutomaticAuthorizationUI(String apiUrl, Executor executor) {
    241241        this(apiUrl, executor, OAuthVersion.OAuth10a);
    242242    }
  • src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java

    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  
    5656     * @deprecated since 18991, use {@link ManualAuthorizationUI#ManualAuthorizationUI(String, Executor, OAuthVersion)}
    5757     * instead.
    5858     */
    59     @Deprecated
     59    @Deprecated(since = "18991")
    6060    public ManualAuthorizationUI(String apiUrl, Executor executor) {
    6161        this(apiUrl, executor, OAuthVersion.OAuth10a);
    6262    }
  • src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java

    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  
    1111 * @deprecated Use the generic type {@link AutoCompComboBox} instead.  Eg.
    1212 *             {@code AutoCompComboBox<AutoCompletionItem>} or {@code AutoCompComboBox<String>}.
    1313 */
    14 @Deprecated
     14@Deprecated(since = "18173")
    1515public class AutoCompletingComboBox extends AutoCompComboBox<AutoCompletionItem> {
    1616}
  • src/org/openstreetmap/josm/gui/SplashScreen.java

    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  
    283283         * @deprecated Use {@link #finishTask(String)} instead.
    284284         */
    285285        @Override
    286         @Deprecated
     286        @Deprecated(since = "8497")
    287287        public void finishTask() {
    288288            // Not used
    289289        }
  • src/org/openstreetmap/josm/io/auth/CredentialsAgent.java

    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  
    6565     * @throws CredentialsAgentException if something goes wrong
    6666     * @deprecated since 18991 -- OAuth 1.0 is being removed from the OSM API
    6767     */
    68     @Deprecated
     68    @Deprecated(since = "18991")
    6969    default IOAuthToken lookupOAuthAccessToken() throws CredentialsAgentException {
    7070        throw new CredentialsAgentException("Call to deprecated method");
    7171    }
     
    8989     * @throws CredentialsAgentException if something goes wrong
    9090     * @deprecated since 18991 -- OAuth 1.0 is being removed from the OSM API
    9191     */
    92     @Deprecated
     92    @Deprecated(since = "18991")
    9393    default void storeOAuthAccessToken(IOAuthToken accessToken) throws CredentialsAgentException {
    9494        throw new CredentialsAgentException("Call to deprecated method");
    9595    }
  • test/unit/org/openstreetmap/josm/data/coor/LatLonTest.java

    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  
    215215     * @deprecated to remove
    216216     */
    217217    @Test
    218     @Deprecated
     218    @Deprecated(since = "15451")
    219219    void testIsOutSideWorld() {
    220220        assertFalse(LatLon.ZERO.isOutSideWorld());
    221221        assertTrue(LatLon.NORTH_POLE.isOutSideWorld());
  • test/unit/org/openstreetmap/josm/testutils/ExpectedRootException.java

    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  
    1818 * @see <a href="https://github.com/junit-team/junit4/pull/778">Github pull request</a>
    1919 * @deprecated Use matchers instead with the return from {@link org.junit.jupiter.api.Assertions#assertThrows}
    2020 */
    21 @Deprecated
     21@Deprecated(since = "16618")
    2222public final class ExpectedRootException implements TestRule {
    2323
    2424    private final ExpectedException rule = ExpectedException.none();
  • test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java

    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  
    299299     * @since 12556
    300300     * @deprecated Use {@link #territories}
    301301     */
    302     @Deprecated
     302    @Deprecated(since = "16321")
    303303    public JOSMTestRules rlTraffic() {
    304304        territories();
    305305        return this;