1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-14 15:01:07 +01:00

Enable trailing whitespace checkstyle check

for all source code regions, including javadoc.
This commit is contained in:
Florian Schmaus 2018-05-09 23:06:12 +02:00
parent 9d61a6de7d
commit e8923b9d16
545 changed files with 3713 additions and 3715 deletions

View file

@ -33,10 +33,10 @@ import org.jivesoftware.smackx.xhtmlim.packet.XHTMLExtension;
import org.jxmpp.jid.Jid;
/**
* Manages XHTML formatted texts within messages. A XHTMLManager provides a high level access to
* Manages XHTML formatted texts within messages. A XHTMLManager provides a high level access to
* get and set XHTML bodies to messages, enable and disable XHTML support and check if remote XMPP
* clients support XHTML.
*
* clients support XHTML.
*
* @author Gaston Dombiak
*/
public class XHTMLManager {
@ -51,7 +51,7 @@ public class XHTMLManager {
}
/**
* Returns an Iterator for the XHTML bodies in the message. Returns null if
* Returns an Iterator for the XHTML bodies in the message. Returns null if
* the message does not contain an XHTML extension.
*
* @param message an XHTML message
@ -94,12 +94,12 @@ public class XHTMLManager {
/**
* Enables or disables the XHTML support on a given connection.<p>
*
*
* Before starting to send XHTML messages to a user, check that the user can handle XHTML
* messages. Enable the XHTML support to indicate that this client handles XHTML messages.
* messages. Enable the XHTML support to indicate that this client handles XHTML messages.
*
* @param connection the connection where the service will be enabled or disabled
* @param enabled indicates if the service will be enabled or disabled
* @param enabled indicates if the service will be enabled or disabled
*/
public static synchronized void setServiceEnabled(XMPPConnection connection, boolean enabled) {
if (isServiceEnabled(connection) == enabled)
@ -129,10 +129,10 @@ public class XHTMLManager {
* @param connection the connection to use to perform the service discovery
* @param userID the user to check. A fully qualified xmpp ID, e.g. jdoe@example.com
* @return a boolean indicating whether the specified user handles XHTML messages
* @throws XMPPErrorException
* @throws NoResponseException
* @throws NotConnectedException
* @throws InterruptedException
* @throws XMPPErrorException
* @throws NoResponseException
* @throws NotConnectedException
* @throws InterruptedException
*/
public static boolean isServiceEnabled(XMPPConnection connection, Jid userID)
throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {

View file

@ -21,7 +21,7 @@ import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.util.XmlStringBuilder;
/**
* An XHTMLText represents formatted text. This class also helps to build valid
* An XHTMLText represents formatted text. This class also helps to build valid
* XHTML tags.
*
* @author Gaston Dombiak
@ -34,7 +34,7 @@ public class XHTMLText {
/**
* Creates a new XHTMLText with body tag params.
*
*
* @param style the XHTML style of the body
* @param lang the language of the body
*/
@ -48,7 +48,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates that an anchor section begins.
*
*
* @param href indicates the URL being linked to
* @param style the XHTML style of the anchor
* @return this.
@ -74,7 +74,7 @@ public class XHTMLText {
public static final String BLOCKQUOTE = "blockquote";
/**
* Appends a tag that indicates that a blockquote section begins.
*
*
* @param style the XHTML style of the blockquote
* @return this.
*/
@ -97,7 +97,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates that a body section begins.
*
*
* @param style the XHTML style of the body
* @param lang the language of the body
* @return this.
@ -191,7 +191,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates a header, a title of a section of the message.
*
*
* @param level the level of the Header. It must be a value between 1 and 3
* @param style the XHTML style of the blockquote
*
@ -209,7 +209,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates that a header section ends.
*
*
* @param level the level of the Header. It must be a value between 1 and 3
* @return this.
*/
@ -225,7 +225,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates an image.
*
*
* @param align how text should flow around the picture
* @param alt the text to show if you don't show the picture
* @param height how tall is the picture
@ -250,7 +250,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates the start of a new line item within a list.
*
*
* @param style the style of the line item
*
* @return this.
@ -273,9 +273,9 @@ public class XHTMLText {
}
/**
* Appends a tag that creates an ordered list. "Ordered" means that the order of the items
* in the list is important. To show this, browsers automatically number the list.
*
* Appends a tag that creates an ordered list. "Ordered" means that the order of the items
* in the list is important. To show this, browsers automatically number the list.
*
* @param style the style of the ordered list
*
* @return this.
@ -300,9 +300,9 @@ public class XHTMLText {
public static final String UL = "ul";
/**
* Appends a tag that creates an unordered list. The unordered part means that the items
* Appends a tag that creates an unordered list. The unordered part means that the items
* in the list are not in any particular order.
*
*
* @param style the style of the unordered list
*
* @return this.
@ -327,9 +327,9 @@ public class XHTMLText {
public static final String P = "p";
/**
* Appends a tag that indicates the start of a new paragraph. This is usually rendered
* Appends a tag that indicates the start of a new paragraph. This is usually rendered
* with two carriage returns, producing a single blank line in between the two paragraphs.
*
*
* @param style the style of the paragraph
*
* @return this.
@ -342,7 +342,7 @@ public class XHTMLText {
}
/**
* Appends a tag that indicates the end of a new paragraph. This is usually rendered
* Appends a tag that indicates the end of a new paragraph. This is usually rendered
* with two carriage returns, producing a single blank line in between the two paragraphs.
*
* @return this.
@ -356,7 +356,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates that an inlined quote section begins.
*
*
* @param style the style of the inlined quote
*
* @return this.
@ -382,7 +382,7 @@ public class XHTMLText {
/**
* Appends a tag that allows to set the fonts for a span of text.
*
*
* @param style the style for a span of text
*
* @return this.
@ -428,7 +428,7 @@ public class XHTMLText {
/**
* Appends a given text to the XHTMLText.
*
*
* @param textToAppend the text to append
*
* @return this.
@ -440,8 +440,8 @@ public class XHTMLText {
/**
* Returns the text of the XHTMLText.
*
* @return the text of the XHTMLText
*
* @return the text of the XHTMLText
*/
@Override
public String toString() {

View file

@ -26,7 +26,7 @@ import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.util.XmlStringBuilder;
/**
* An XHTML sub-packet, which is used by XMPP clients to exchange formatted text. The XHTML
* An XHTML sub-packet, which is used by XMPP clients to exchange formatted text. The XHTML
* extension is only a subset of XHTML 1.0.
* <p>
* The following link summarizes the requirements of XHTML IM:
@ -53,7 +53,7 @@ public class XHTMLExtension implements ExtensionElement {
return ELEMENT;
}
/**
/**
* Returns the XML namespace of the extension sub-packet root element.
* According the specification the namespace is always "http://jabber.org/protocol/xhtml-im"
*
@ -66,7 +66,7 @@ public class XHTMLExtension implements ExtensionElement {
/**
* Returns the XML representation of a XHTML extension according the specification.
*
*
* Usually the XML representation will be inside of a Message XML representation like
* in the following example:
* <pre>
@ -78,7 +78,7 @@ public class XHTMLExtension implements ExtensionElement {
* &lt;/html&gt;
* &lt;/message&gt;
* </pre>
*
*
*/
@Override
public XmlStringBuilder toXML(String enclosingNamespace) {