diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/ItemsExtension.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/ItemsExtension.java
index a21f9065a..69ec1b7af 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/ItemsExtension.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/ItemsExtension.java
@@ -21,14 +21,16 @@ import java.util.List;
import org.jivesoftware.smack.packet.ExtensionElement;
/**
- * This class is used to for multiple purposes.
+ * This class is used for multiple purposes.
+ *
* - It can represent an event containing a list of items that have been published
*
- It can represent an event containing a list of retracted (deleted) items.
*
- It can represent a request to delete a list of items.
*
- It can represent a request to get existing items.
+ *
*
* Please note, this class is used for internal purposes, and is not required for usage of
- * pubsub functionality.
+ * pubsub functionality.
*
* @author Robin Collier
*/
@@ -69,7 +71,8 @@ public class ItemsExtension extends NodeExtension implements EmbeddedPacketExten
/**
* Construct an instance with a list representing items that have been published or deleted.
*
- * Valid scenarios are:
+ *
Valid scenarios are:
+ *
* - Request items from node - itemsType = {@link ItemsElementType#items}, items = list of {@link Item} and an
* optional value for the max_items attribute.
*
- Request to delete items - itemsType = {@link ItemsElementType#retract}, items = list of {@link Item} containing
@@ -78,6 +81,7 @@ public class ItemsExtension extends NodeExtension implements EmbeddedPacketExten
* attributeValue =
null
* - Items deleted event - itemsType = {@link ItemsElementType#items}, items = list of {@link RetractItem} and
* attributeValue =
null
+ *
*
* @param itemsType Type of representation
* @param nodeId The node to which the items are being sent or deleted
@@ -93,7 +97,8 @@ public class ItemsExtension extends NodeExtension implements EmbeddedPacketExten
/**
* Construct an instance with a list representing items that have been published or deleted.
*
- * Valid scenarios are:
+ *
Valid scenarios are:
+ *
* - Request items from node - itemsType = {@link ItemsElementType#items}, items = list of {@link Item} and an
* optional value for the max_items attribute.
*
- Request to delete items - itemsType = {@link ItemsElementType#retract}, items = list of {@link Item} containing
@@ -101,7 +106,8 @@ public class ItemsExtension extends NodeExtension implements EmbeddedPacketExten
*
- Items published event - itemsType = {@link ItemsElementType#items}, items = list of {@link Item} and
* attributeValue =
null
* - Items deleted event - itemsType = {@link ItemsElementType#items}, items = list of {@link RetractItem} and
- * attributeValue =
null
+ * attributeValue = null
+ *
*
* @param nodeId The node to which the items are being sent or deleted
* @param items The list of {@link Item} or {@link RetractItem}
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PayloadItem.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PayloadItem.java
index ec8112596..40e8e4131 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PayloadItem.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PayloadItem.java
@@ -25,21 +25,25 @@ import org.jivesoftware.smackx.pubsub.provider.ItemProvider;
* pubsub node. An Item has several properties that are dependent
* on the configuration of the node to which it has been or will be published.
*
- * An Item received from a node (via {@link LeafNode#getItems()} or {@link LeafNode#addItemEventListener(org.jivesoftware.smackx.pubsub.listener.ItemEventListener)}
+ * An Item received from a node (via {@link LeafNode#getItems()} or {@link LeafNode#addItemEventListener(org.jivesoftware.smackx.pubsub.listener.ItemEventListener)}
+ *
* - Will always have an id (either user or server generated) unless node configuration has both
- * {@link ConfigureForm#isPersistItems()} and {@link ConfigureForm#isDeliverPayloads()}set to false.
+ * {@link ConfigureForm#isPersistItems()} and {@link ConfigureForm#isDeliverPayloads()}set to false.
* - Will have a payload if the node configuration has {@link ConfigureForm#isDeliverPayloads()} set
- * to true, otherwise it will be null.
+ * to true, otherwise it will be null.
+ *
*
- * An Item created to send to a node (via {@link LeafNode#send()} or {@link LeafNode#publish()}
+ * An Item created to send to a node (via {@link LeafNode#send()} or {@link LeafNode#publish()}
+ *
* - The id is optional, since the server will generate one if necessary, but should be used if it is
* meaningful in the context of the node. This value must be unique within the node that it is sent to, since
- * resending an item with the same id will overwrite the one that already exists if the items are persisted.
+ * resending an item with the same id will overwrite the one that already exists if the items are persisted.
* - Will require payload if the node configuration has {@link ConfigureForm#isDeliverPayloads()} set
- * to true.
+ * to true.
+ *
*
*
To customise the payload object being returned from the {@link #getPayload()} method, you can
- * add a custom parser as explained in {@link ItemProvider}.
+ * add a custom parser as explained in {@link ItemProvider}.
*
* @author Robin Collier
*/
@@ -84,6 +88,7 @@ public class PayloadItem extends Item
* one as part of {@link Message}. If used to create an Item to publish
* (via {@link LeafNode#publish(Item)}, the server may return an
* error for an invalid packet.
+ *
*
* @param itemId The id of this item.
* @param nodeId The id of the node the item was published to.