Properly mark deprecated method with annotation.

This commit is contained in:
Karsten Loesing 2019-11-20 17:40:08 +01:00
parent f5f6e5971c
commit 9c7e1b9a54
2 changed files with 2 additions and 0 deletions

View File

@ -323,6 +323,7 @@ public interface ServerDescriptor extends Descriptor {
*
* @since 1.0.0
*/
@Deprecated
List<Integer> getHiddenServiceDirVersions();
/**

View File

@ -848,6 +848,7 @@ public abstract class ServerDescriptorImpl extends DescriptorImpl
}
@Override
@Deprecated
public List<Integer> getHiddenServiceDirVersions() {
return this.hiddenServiceDir ? null : Collections.singletonList(2);
}