1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-09 18:29:45 +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

@ -188,7 +188,7 @@ public class Chat {
public String toString() {
return "Chat [(participant=" + participant + "), (thread=" + threadID + ")]";
}
@Override
public int hashCode() {
int hash = 1;
@ -196,7 +196,7 @@ public class Chat {
hash = hash * 31 + participant.hashCode();
return hash;
}
@Override
public boolean equals(Object obj) {
return obj instanceof Chat

View file

@ -318,7 +318,7 @@ public class ChatManager extends Manager{
return null;
}
Chat match = jidChats.get(userJID);
if (match == null && (matchMode == MatchMode.BARE_JID)) {
match = baseJidChats.get(userJID.asBareJidIfPossible());
}
@ -397,7 +397,7 @@ public class ChatManager extends Manager{
}
interceptors.put(messageInterceptor, filter);
}
/**
* Returns a unique id.
*
@ -406,11 +406,11 @@ public class ChatManager extends Manager{
private static String nextID() {
return UUID.randomUUID().toString();
}
public static void setDefaultMatchMode(MatchMode mode) {
defaultMatchMode = mode;
}
public static void setDefaultIsNormalIncluded(boolean allowNormal) {
defaultIsNormalInclude = allowNormal;
}

View file

@ -319,7 +319,7 @@ public class Roster extends Manager {
reload();
waitUntilLoaded();
}
/**
* Set the roster store, may cause a roster reload
*
@ -442,7 +442,7 @@ public class Roster extends Manager {
if (groups.containsKey(name)) {
return groups.get(name);
}
RosterGroup group = new RosterGroup(name, connection);
groups.put(name, group);
return group;

View file

@ -246,7 +246,7 @@ public class RosterEntry {
return false;
return true;
}
static RosterPacket.Item toRosterItem(RosterEntry entry) {
RosterPacket.Item item = new RosterPacket.Item(entry.getUser(), entry.getName());
item.setItemType(entry.getType());

View file

@ -361,7 +361,7 @@ public class ChatConnectionTest {
@Override
public void chatCreated(Chat chat, boolean createdLocally) {
newChat = chat;
if (listener != null)
newChat.addMessageListener(listener);
reportInvoked();
@ -371,7 +371,7 @@ public class ChatConnectionTest {
return newChat;
}
}
private class TestChatServer extends Thread {
private Stanza chatPacket;
private DummyConnection con;
@ -390,18 +390,18 @@ public class ChatConnectionTest {
private class TestMessageListener implements ChatMessageListener {
private Chat msgChat;
private int counter = 0;
@Override
public void processMessage(Chat chat, Message message) {
msgChat = chat;
counter++;
}
@SuppressWarnings("unused")
public Chat getChat() {
return msgChat;
}
public int getNumMessages() {
return counter;
}

View file

@ -422,7 +422,7 @@ public class RosterTest extends InitSmackIm {
assertSame("Shouldn't provide an empty group element!",
0,
item.getGroupNames().size());
}
};
serverSimulator.start();