From 1112fc854424621e5a2ff7c5978844cd2859ef91 Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Sat, 30 Nov 2013 12:52:50 +0000 Subject: [PATCH] Yes it's deprecated, it should still use proper generics --- .../java/src/net/i2p/client/streaming/PacketLocal.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/streaming/java/src/net/i2p/client/streaming/PacketLocal.java b/apps/streaming/java/src/net/i2p/client/streaming/PacketLocal.java index 71b5d084b1..37ebb0f54f 100644 --- a/apps/streaming/java/src/net/i2p/client/streaming/PacketLocal.java +++ b/apps/streaming/java/src/net/i2p/client/streaming/PacketLocal.java @@ -8,6 +8,7 @@ import java.util.concurrent.atomic.AtomicInteger; import net.i2p.I2PAppContext; import net.i2p.data.Destination; import net.i2p.data.SessionKey; +import net.i2p.data.SessionTag; import net.i2p.util.Log; import net.i2p.util.SimpleTimer2; @@ -68,12 +69,12 @@ class PacketLocal extends Packet implements MessageOutputStream.WriteStatus { /** * @deprecated should always return null or an empty set */ - public Set getTagsSent() { return Collections.EMPTY_SET; } + public Set<SessionTag> getTagsSent() { return Collections.emptySet(); } /** * @deprecated I2PSession throws out the tags */ - public void setTagsSent(Set tags) { + public void setTagsSent(Set<SessionTag> tags) { if (tags != null && !tags.isEmpty()) _log.error("Who is sending tags thru the streaming lib? " + tags.size()); /**** -- GitLab