forked from I2P_Developers/i2p.i2p
Build: Add missing @Override annotations (dep-ann lint)
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -460,6 +460,7 @@ public final class SigUtil {
|
||||
/**
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public static RSAPublicKey toJavaRSAKey(SigningPublicKey pk)
|
||||
throws GeneralSecurityException {
|
||||
SigType type = pk.getType();
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -69,6 +69,7 @@ public class Lease extends DataStructureImpl {
|
||||
/**
|
||||
* @deprecated use setEndDate(long)
|
||||
*/
|
||||
@Deprecated
|
||||
public void setEndDate(Date date) {
|
||||
_end = date.getTime();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user