1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-08 22:21:08 +01:00

Generify Packet class returned by PackageCollector everywhere

This will help to get rid of repetitive class casts, and make
PacketCollector api more inline with itself (since some methods
are already generic return methods).
This commit is contained in:
Vyacheslav Blinov 2014-08-15 12:49:05 +04:00 committed by Florian Schmaus
parent b3b0e02ae1
commit 522d0f30ff
5 changed files with 17 additions and 15 deletions

View file

@ -396,7 +396,7 @@ public class RTPBridge extends IQ {
PacketCollector collector = connection.createPacketCollectorAndSend(rtpPacket);
RTPBridge response = (RTPBridge) collector.nextResult();
RTPBridge response = collector.nextResult();
// Cancel the collector.
collector.cancel();
@ -470,7 +470,7 @@ public class RTPBridge extends IQ {
PacketCollector collector = connection.createPacketCollectorAndSend(rtpPacket);
RTPBridge response = (RTPBridge) collector.nextResult();
RTPBridge response = collector.nextResult();
// Cancel the collector.
collector.cancel();
@ -499,7 +499,7 @@ public class RTPBridge extends IQ {
PacketCollector collector = xmppConnection.createPacketCollectorAndSend(rtpPacket);
RTPBridge response = (RTPBridge) collector.nextResult();
RTPBridge response = collector.nextResult();
// Cancel the collector.
collector.cancel();

View file

@ -194,7 +194,7 @@ public class STUN extends IQ {
PacketCollector collector = connection.createPacketCollectorAndSend(stunPacket);
STUN response = (STUN) collector.nextResult();
STUN response = collector.nextResult();
// Cancel the collector.
collector.cancel();