From 0a96016727c78ccf6a6ad778a998b2c1373457c8 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 9 Aug 2016 17:46:29 +0200 Subject: [PATCH] Use generics in IoTControlManager --- .../org/jivesoftware/smackx/iot/control/IoTControlManager.java | 2 +- .../jivesoftware/smackx/iot/control/element/IoTSetRequest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/control/IoTControlManager.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/control/IoTControlManager.java index 2f347edeb..a1fd4f7c9 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/control/IoTControlManager.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/control/IoTControlManager.java @@ -123,7 +123,7 @@ public final class IoTControlManager extends Manager { * @throws NotConnectedException * @throws InterruptedException */ - public IoTSetResponse setUsingIq(FullJid jid, Collection data) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { + public IoTSetResponse setUsingIq(FullJid jid, Collection data) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { IoTSetRequest request = new IoTSetRequest(data); request.setTo(jid); IoTSetResponse response = connection().createPacketCollectorAndSend(request).nextResultOrThrow(); diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/control/element/IoTSetRequest.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/control/element/IoTSetRequest.java index dca7293e4..b77787f98 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/control/element/IoTSetRequest.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/control/element/IoTSetRequest.java @@ -28,7 +28,7 @@ public class IoTSetRequest extends IQ { private final Collection setData; - public IoTSetRequest(Collection setData) { + public IoTSetRequest(Collection setData) { super(ELEMENT, NAMESPACE); setType(Type.set); this.setData = Collections.unmodifiableCollection(setData);