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:
parent
ef0af66b21
commit
4c646436a5
246 changed files with 1122 additions and 124 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue