From 912d25b7757ce5f552a973b7fe07102d677f9def Mon Sep 17 00:00:00 2001 From: zzz Date: Thu, 29 Aug 2019 12:24:45 +0000 Subject: [PATCH] Data: Mark Destination method that doesn't support sigtypes as deprecated --- core/java/src/net/i2p/data/Destination.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/java/src/net/i2p/data/Destination.java b/core/java/src/net/i2p/data/Destination.java index 693c5c3d20..0df0781e98 100644 --- a/core/java/src/net/i2p/data/Destination.java +++ b/core/java/src/net/i2p/data/Destination.java @@ -137,8 +137,10 @@ public class Destination extends KeysAndCert { * 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. * + * @deprecated * @throws IllegalStateException if data already set */ + @Deprecated public int readBytes(byte source[], int offset) throws DataFormatException { if (source == null) throw new DataFormatException("Null source"); if (source.length <= offset + PublicKey.KEYSIZE_BYTES + SigningPublicKey.KEYSIZE_BYTES)