diff --git a/smack-core/src/main/java/org/jivesoftware/smack/filter/PacketExtensionFilter.java b/smack-core/src/main/java/org/jivesoftware/smack/filter/PacketExtensionFilter.java index e1452a91b..3cb6218e4 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/filter/PacketExtensionFilter.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/filter/PacketExtensionFilter.java @@ -57,14 +57,15 @@ public class PacketExtensionFilter implements PacketFilter { this(null, namespace); } + /** + * Creates a new packet extension filter for the given packet extension. + * + * @param packetExtension + */ public PacketExtensionFilter(PacketExtension packetExtension) { this(packetExtension.getElementName(), packetExtension.getNamespace()); } - public PacketExtensionFilter(Class packetExtensionClass) throws InstantiationException, IllegalAccessException { - this(packetExtensionClass.newInstance()); - } - public boolean accept(Packet packet) { return packet.hasExtension(elementName, namespace); }