1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 09:09:38 +02:00

's;^\s+$;;' on all source files

And add checkstyle test for lines containing only whitespace characters.
This commit is contained in:
Florian Schmaus 2015-03-17 11:33:02 +01:00
parent 05c97c494b
commit 0fde39fa45
193 changed files with 1066 additions and 1062 deletions

View file

@ -89,7 +89,7 @@ import org.jxmpp.jid.parts.Resourcepart;
*/
public class AgentSession {
private static final Logger LOGGER = Logger.getLogger(AgentSession.class.getName());
private XMPPConnection connection;
private Jid workgroupJID;

View file

@ -111,7 +111,7 @@ public class MacroGroup {
public void setTitle(String title) {
this.title = title;
}
public String toXML() {
StringBuilder buf = new StringBuilder();
buf.append("<macrogroup>");
@ -127,7 +127,7 @@ public class MacroGroup {
buf.append("</macro>");
}
buf.append("</macros>");
if (getMacroGroups().size() > 0) {
buf.append("<macroGroups>");
for (MacroGroup groups : getMacroGroups()) {

View file

@ -121,7 +121,7 @@ public class Macros extends IQ {
return macroGroup;
}
public Macro parseMacro(XmlPullParser parser) throws XmlPullParserException, IOException {
Macro macro = new Macro();
boolean done = false;
@ -150,10 +150,10 @@ public class Macros extends IQ {
}
return macro;
}
public MacroGroup parseMacroGroup(XmlPullParser parser) throws XmlPullParserException, IOException {
MacroGroup group = new MacroGroup();
boolean done = false;
while (!done) {
int eventType = parser.next();
@ -176,7 +176,7 @@ public class Macros extends IQ {
}
return group;
}
public MacroGroup parseMacroGroups(String macros) throws XmlPullParserException, IOException {
MacroGroup group = null;

View file

@ -39,7 +39,7 @@ import java.util.logging.Logger;
*/
public class QueueDetails implements ExtensionElement {
private static final Logger LOGGER = Logger.getLogger(QueueDetails.class.getName());
/**
* Element name of the packet extension.
*/
@ -149,7 +149,7 @@ public class QueueDetails implements ExtensionElement {
public QueueDetails parse(XmlPullParser parser,
int initialDepth) throws XmlPullParserException,
IOException, SmackException {
SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT);
QueueDetails queueDetails = new QueueDetails();
@ -165,7 +165,7 @@ public class QueueDetails implements ExtensionElement {
Date joinTime = null;
uid = parser.getAttributeValue("", "jid");
if (uid == null) {
// throw exception
}

View file

@ -50,7 +50,7 @@ import org.jxmpp.jid.Jid;
*/
public class MessageEventManager extends Manager {
private static final Logger LOGGER = Logger.getLogger(MessageEventManager.class.getName());
private static final Map<XMPPConnection, MessageEventManager> INSTANCES = new WeakHashMap<>();
private static final StanzaFilter PACKET_FILTER = new AndFilter(new StanzaExtensionFilter(

View file

@ -89,7 +89,7 @@ public class RosterExchange implements ExtensionElement {
// Create a new Entry based on the rosterEntry and add it to the packet
RemoteRosterEntry remoteRosterEntry = new RemoteRosterEntry(rosterEntry.getUser(),
rosterEntry.getName(), groupNames);
addRosterEntry(remoteRosterEntry);
}
@ -103,7 +103,7 @@ public class RosterExchange implements ExtensionElement {
remoteRosterEntries.add(remoteRosterEntry);
}
}
/**
* Returns the XML element name of the extension sub-packet root element.
* Always returns "x"