mirror of
https://github.com/torproject/metrics-lib.git
synced 2024-11-23 01:09:47 +00:00
Properly mark deprecated method with annotation.
This commit is contained in:
parent
f5f6e5971c
commit
9c7e1b9a54
@ -323,6 +323,7 @@ public interface ServerDescriptor extends Descriptor {
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Deprecated
|
||||
List<Integer> getHiddenServiceDirVersions();
|
||||
|
||||
/**
|
||||
|
@ -848,6 +848,7 @@ public abstract class ServerDescriptorImpl extends DescriptorImpl
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public List<Integer> getHiddenServiceDirVersions() {
|
||||
return this.hiddenServiceDir ? null : Collections.singletonList(2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user