mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-15 07:21:08 +01:00
Enable more 'checkstyle' checks
AvoidStarImport IllegalImport RedundantImport UpperEll ArrayTypeStyle GenericWhitespace EmptyStatement PackageDelcaration
This commit is contained in:
parent
522d0f30ff
commit
7277eb553a
92 changed files with 465 additions and 253 deletions
|
|
@ -25,7 +25,7 @@ import java.util.List;
|
|||
*
|
||||
* @author Robin Collier
|
||||
*/
|
||||
public class ItemPublishEvent <T extends Item> extends SubscriptionEvent
|
||||
public class ItemPublishEvent<T extends Item> extends SubscriptionEvent
|
||||
{
|
||||
private List<T> items;
|
||||
private Date originalDate;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import java.util.Collection;
|
|||
*
|
||||
* @author Robin Collier
|
||||
*/
|
||||
public class PublishItem <T extends Item> extends NodeExtension
|
||||
public class PublishItem<T extends Item> extends NodeExtension
|
||||
{
|
||||
protected Collection<T> items;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import org.jivesoftware.smackx.pubsub.LeafNode;
|
|||
*
|
||||
* @author Robin Collier
|
||||
*/
|
||||
public interface ItemEventListener <T extends Item>
|
||||
public interface ItemEventListener<T extends Item>
|
||||
{
|
||||
/**
|
||||
* Called whenever an item is published to the node the listener
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public class SubscriptionProvider implements PacketExtensionProvider
|
|||
if ((tag == XmlPullParser.START_TAG) && parser.getName().equals("required"))
|
||||
isRequired = true;
|
||||
|
||||
while (parser.next() != XmlPullParser.END_TAG && parser.getName() != "subscribe-options");
|
||||
while (tag != XmlPullParser.END_TAG && parser.getName() != "subscribe-options") tag = parser.next();
|
||||
}
|
||||
while (parser.getEventType() != XmlPullParser.END_TAG) parser.next();
|
||||
return new Subscription(jid, nodeId, subId, (state == null ? null : Subscription.State.valueOf(state)), isRequired);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue