mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-02 06:45:59 +01:00
Use generics in IoTControlManager
This commit is contained in:
parent
88bf2528a2
commit
0a96016727
2 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ public final class IoTControlManager extends Manager {
|
|||
* @throws NotConnectedException
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
public IoTSetResponse setUsingIq(FullJid jid, Collection<SetData> data) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
public IoTSetResponse setUsingIq(FullJid jid, Collection<? extends SetData> data) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
IoTSetRequest request = new IoTSetRequest(data);
|
||||
request.setTo(jid);
|
||||
IoTSetResponse response = connection().createPacketCollectorAndSend(request).nextResultOrThrow();
|
||||
|
|
|
@ -28,7 +28,7 @@ public class IoTSetRequest extends IQ {
|
|||
|
||||
private final Collection<SetData> setData;
|
||||
|
||||
public IoTSetRequest(Collection<SetData> setData) {
|
||||
public IoTSetRequest(Collection<? extends SetData> setData) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
setType(Type.set);
|
||||
this.setData = Collections.unmodifiableCollection(setData);
|
||||
|
|
Loading…
Reference in a new issue