Build: Add missing @Override annotations (dep-ann lint)

This commit is contained in:
zzz
2021-12-07 15:33:41 -05:00
parent b5d7dffb08
commit 22ff40bc84
9 changed files with 14 additions and 1 deletions

View File

@@ -478,6 +478,7 @@ public final class DSAEngine {
* @return hash SHA-1 hash, NOT a SHA-256 hash
* @deprecated unused
*/
@Deprecated
public SHA1Hash calculateHash(InputStream in) {
MessageDigest digest = SHA1.getInstance();
byte buf[] = new byte[64];

View File

@@ -460,6 +460,7 @@ public final class SigUtil {
/**
* @deprecated unused
*/
@Deprecated
public static RSAPublicKey toJavaRSAKey(SigningPublicKey pk)
throws GeneralSecurityException {
SigType type = pk.getType();

View File

@@ -496,6 +496,7 @@ public class EdDSAEngine extends Signature {
* @deprecated replaced with <a href="#engineSetParameter(java.security.spec.AlgorithmParameterSpec)">this</a>
*/
@Override
@Deprecated
protected void engineSetParameter(String param, Object value) {
throw new UnsupportedOperationException("engineSetParameter unsupported");
}
@@ -504,6 +505,7 @@ public class EdDSAEngine extends Signature {
* @deprecated
*/
@Override
@Deprecated
protected Object engineGetParameter(String param) {
throw new UnsupportedOperationException("engineSetParameter unsupported");
}

View File

@@ -150,6 +150,7 @@ public final class ElGamalSigEngine extends Signature {
* @deprecated replaced with <a href="#engineSetParameter(java.security.spec.AlgorithmParameterSpec)">this</a>
*/
@Override
@Deprecated
protected void engineSetParameter(String param, Object value) {
throw new UnsupportedOperationException("engineSetParameter unsupported");
}
@@ -158,6 +159,7 @@ public final class ElGamalSigEngine extends Signature {
* @deprecated
*/
@Override
@Deprecated
protected Object engineGetParameter(String param) {
throw new UnsupportedOperationException("engineSetParameter unsupported");
}

View File

@@ -629,6 +629,7 @@ public class DataHelper {
* @return (new BigInteger(1, buf)).toString()
* @deprecated unused
*/
@Deprecated
public static String toDecimalString(byte buf[], int len) {
if (buf == null)
return "0";
@@ -652,6 +653,7 @@ public class DataHelper {
* @return minimum-length representation (with possible leading 0 byte)
* @deprecated unused
*/
@Deprecated
public final static byte[] fromHexString(String val) {
BigInteger bv = new BigInteger(val, 16);
return bv.toByteArray();
@@ -2011,6 +2013,7 @@ public class DataHelper {
* @throws RuntimeException
* @deprecated unused
*/
@Deprecated
public static byte[] getUTF8(StringBuffer orig) {
if (orig == null) return null;
return getUTF8(orig.toString());

View File

@@ -69,6 +69,7 @@ public class Lease extends DataStructureImpl {
/**
* @deprecated use setEndDate(long)
*/
@Deprecated
public void setEndDate(Date date) {
_end = date.getTime();
}