1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-06 21:21:08 +01:00

Bump "Error Prone" to 2.0.15

and fix a few things :)
This commit is contained in:
Florian Schmaus 2017-02-11 16:16:41 +01:00
parent ef0af66b21
commit 4c646436a5
246 changed files with 1122 additions and 124 deletions

View file

@ -151,6 +151,7 @@ public final class ChatManager extends Manager{
// Add a listener for all message packets so that we can deliver
// messages to the best Chat instance available.
connection.addSyncStanzaListener(new StanzaListener() {
@Override
public void processStanza(Stanza packet) {
Message message = (Message) packet;
Chat chat;

View file

@ -222,6 +222,7 @@ public final class RosterEntry extends Manager {
connection().sendStanza(unsubscribed);
}
@Override
public String toString() {
StringBuilder buf = new StringBuilder();
if (getName() != null) {
@ -249,6 +250,7 @@ public final class RosterEntry extends Manager {
return getJid().hashCode();
}
@Override
public boolean equals(Object object) {
if (this == object) {
return true;

View file

@ -270,6 +270,7 @@ public class RosterPacket extends IQ {
groupNames.remove(groupName);
}
@Override
public XmlStringBuilder toXML() {
XmlStringBuilder xml = new XmlStringBuilder(this);
xml.attribute("jid", jid);

View file

@ -185,9 +185,11 @@ public final class DirectoryRosterStore implements RosterStore {
resetEntries(Collections.<Item>emptyList(), "");
}
@SuppressWarnings("DefaultCharset")
private static Item readEntry(File file) {
Reader reader;
try {
// TODO: Should use Files.newBufferedReader() but it is not available on Android.
reader = new FileReader(file);
} catch (FileNotFoundException e) {
LOGGER.log(Level.FINE, "Roster entry file not found", e);