[tor-commits] [metrics-lib/release] Properly mark deprecated method with annotation.

karsten at torproject.org karsten at torproject.org
Wed Jan 15 21:46:57 UTC 2020


commit 9c7e1b9a54aa3f0df655864768254afd63acc0cb
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Wed Nov 20 17:40:08 2019 +0100

    Properly mark deprecated method with annotation.
---
 src/main/java/org/torproject/descriptor/ServerDescriptor.java          | 1 +
 src/main/java/org/torproject/descriptor/impl/ServerDescriptorImpl.java | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/main/java/org/torproject/descriptor/ServerDescriptor.java b/src/main/java/org/torproject/descriptor/ServerDescriptor.java
index 1867a01..9ecd46b 100644
--- a/src/main/java/org/torproject/descriptor/ServerDescriptor.java
+++ b/src/main/java/org/torproject/descriptor/ServerDescriptor.java
@@ -323,6 +323,7 @@ public interface ServerDescriptor extends Descriptor {
    *
    * @since 1.0.0
    */
+  @Deprecated
   List<Integer> getHiddenServiceDirVersions();
 
   /**
diff --git a/src/main/java/org/torproject/descriptor/impl/ServerDescriptorImpl.java b/src/main/java/org/torproject/descriptor/impl/ServerDescriptorImpl.java
index 7102335..f33e2e8 100644
--- a/src/main/java/org/torproject/descriptor/impl/ServerDescriptorImpl.java
+++ b/src/main/java/org/torproject/descriptor/impl/ServerDescriptorImpl.java
@@ -848,6 +848,7 @@ public abstract class ServerDescriptorImpl extends DescriptorImpl
   }
 
   @Override
+  @Deprecated
   public List<Integer> getHiddenServiceDirVersions() {
     return this.hiddenServiceDir ? null : Collections.singletonList(2);
   }





More information about the tor-commits mailing list