mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
Build: Add missing @Override annotations (dep-ann lint)
This commit is contained in:
@@ -342,6 +342,7 @@ public class StatSummarizer implements Runnable, ClientApp {
|
||||
}
|
||||
|
||||
/** @deprecated unused */
|
||||
@Deprecated
|
||||
public boolean renderPng(OutputStream out, String templateFilename) throws IOException {
|
||||
SummaryRenderer.render(_context, out, templateFilename);
|
||||
return true;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -232,7 +232,6 @@ public class DeliveryInstructions extends DataStructureImpl {
|
||||
|
||||
/**
|
||||
* For cloves only (not tunnels), default false, unused
|
||||
* @deprecated unused
|
||||
*/
|
||||
/****
|
||||
private static boolean flagEncrypted(long flags) {
|
||||
|
||||
@@ -73,6 +73,7 @@ public final class ElGamalAESEngine {
|
||||
*
|
||||
* @deprecated specify the key manager!
|
||||
*/
|
||||
@Deprecated
|
||||
public byte[] decrypt(byte data[], PrivateKey targetPrivateKey) throws DataFormatException {
|
||||
return decrypt(data, targetPrivateKey, _context.sessionKeyManager());
|
||||
}
|
||||
@@ -567,6 +568,7 @@ public final class ElGamalAESEngine {
|
||||
* @throws IllegalArgumentException on bad target EncType
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public byte[] encrypt(byte data[], PublicKey target, SessionKey key, Set<SessionTag> tagsForDelivery, long paddedSize) {
|
||||
return encrypt(data, target, key, tagsForDelivery, null, null, paddedSize);
|
||||
}
|
||||
@@ -579,6 +581,7 @@ public final class ElGamalAESEngine {
|
||||
* @throws IllegalArgumentException on bad target EncType
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public byte[] encrypt(byte data[], PublicKey target, SessionKey key, long paddedSize) {
|
||||
return encrypt(data, target, key, null, null, null, paddedSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user