diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandManager.java index 80f6a2a02..f86a78c3f 100755 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandManager.java @@ -278,7 +278,11 @@ public final class AdHocCommandManager extends Manager { * @throws XMPPException if the operation failed for some reason. * @throws SmackException if there was no response from the server. * @throws InterruptedException + * @deprecated This method uses no longer existent XEP-0030 features and will be removed. */ + @SuppressWarnings("deprecation") + @Deprecated + // TODO: Remove in Smack 4.4. public void publishCommands(Jid jid) throws XMPPException, SmackException, InterruptedException { // Collects the commands to publish as items DiscoverItems discoverItems = new DiscoverItems(); diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/ServiceDiscoveryManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/ServiceDiscoveryManager.java index c6a33013c..453fe462d 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/ServiceDiscoveryManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/ServiceDiscoveryManager.java @@ -592,7 +592,10 @@ public final class ServiceDiscoveryManager extends Manager { * @throws NoResponseException * @throws NotConnectedException * @throws InterruptedException + * @deprecated The disco-publish feature was removed from XEP-0030 in 2008 in favor of XEP-0060: Publish-Subscribe. */ + @Deprecated + // TODO: Remove in Smack 4.4 public boolean canPublishItems(Jid entityID) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { DiscoverInfo info = discoverInfo(entityID); return canPublishItems(info); @@ -606,7 +609,10 @@ public final class ServiceDiscoveryManager extends Manager { * * @param info the discover info stanza(/packet) to check. * @return true if the server supports publishing of items. + * @deprecated The disco-publish feature was removed from XEP-0030 in 2008 in favor of XEP-0060: Publish-Subscribe. */ + @Deprecated + // TODO: Remove in Smack 4.4 public static boolean canPublishItems(DiscoverInfo info) { return info.containsFeature("http://jabber.org/protocol/disco#publish"); } @@ -623,7 +629,10 @@ public final class ServiceDiscoveryManager extends Manager { * @throws NoResponseException * @throws NotConnectedException * @throws InterruptedException + * @deprecated The disco-publish feature was removed from XEP-0030 in 2008 in favor of XEP-0060: Publish-Subscribe. */ + @Deprecated + // TODO: Remove in Smack 4.4 public void publishItems(Jid entityID, DiscoverItems discoverItems) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { publishItems(entityID, null, discoverItems); } @@ -641,7 +650,10 @@ public final class ServiceDiscoveryManager extends Manager { * @throws NoResponseException if there was no response from the server. * @throws NotConnectedException * @throws InterruptedException + * @deprecated The disco-publish feature was removed from XEP-0030 in 2008 in favor of XEP-0060: Publish-Subscribe. */ + @Deprecated + // TODO: Remove in Smack 4.4 public void publishItems(Jid entityID, String node, DiscoverItems discoverItems) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { discoverItems.setType(IQ.Type.set);