Data: Mark Destination method that doesn't support sigtypes as deprecated

This commit is contained in:
zzz
2019-08-29 12:24:45 +00:00
parent 55cdd81017
commit 912d25b775

View File

@ -137,8 +137,10 @@ public class Destination extends KeysAndCert {
* deprecated was used only by Packet.java in streaming, now unused * deprecated was used only by Packet.java in streaming, now unused
* Warning - used by i2p-bote. Does NOT support alternate key types. DSA-SHA1 only. * Warning - used by i2p-bote. Does NOT support alternate key types. DSA-SHA1 only.
* *
* @deprecated
* @throws IllegalStateException if data already set * @throws IllegalStateException if data already set
*/ */
@Deprecated
public int readBytes(byte source[], int offset) throws DataFormatException { public int readBytes(byte source[], int offset) throws DataFormatException {
if (source == null) throw new DataFormatException("Null source"); if (source == null) throw new DataFormatException("Null source");
if (source.length <= offset + PublicKey.KEYSIZE_BYTES + SigningPublicKey.KEYSIZE_BYTES) if (source.length <= offset + PublicKey.KEYSIZE_BYTES + SigningPublicKey.KEYSIZE_BYTES)