mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-08 20:11: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:
parent
b3b0e02ae1
commit
522d0f30ff
5 changed files with 17 additions and 15 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue