[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 9c7e1b9a54aa3f0df655864768254afd63acc0cb
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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);
   }

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits