mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 10:19:41 +02:00
Bump "Error Prone" to 2.3.2
and gradle-errorprone-plugin to 0.6.
This commit is contained in:
parent
ec7badfda0
commit
b7ea226c56
65 changed files with 173 additions and 149 deletions
|
@ -39,7 +39,7 @@ import org.jxmpp.jid.BareJid;
|
|||
* @author Matt Tucker
|
||||
* @author Florian Schmaus
|
||||
*/
|
||||
public class RosterPacket extends IQ {
|
||||
public final class RosterPacket extends IQ {
|
||||
|
||||
public static final String ELEMENT = QUERY_ELEMENT;
|
||||
public static final String NAMESPACE = "jabber:iq:roster";
|
||||
|
@ -110,7 +110,7 @@ public class RosterPacket extends IQ {
|
|||
* the groups the roster item belongs to.
|
||||
*/
|
||||
// TODO Make this class immutable.
|
||||
public static class Item implements NamedElement {
|
||||
public static final class Item implements NamedElement {
|
||||
|
||||
/**
|
||||
* The constant value "{@value}".
|
||||
|
@ -295,7 +295,7 @@ public class RosterPacket extends IQ {
|
|||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((groupNames == null) ? 0 : groupNames.hashCode());
|
||||
result = prime * result + ((subscriptionPending) ? 0 : 1);
|
||||
result = prime * result + (subscriptionPending ? 0 : 1);
|
||||
result = prime * result + ((itemType == null) ? 0 : itemType.hashCode());
|
||||
result = prime * result + ((name == null) ? 0 : name.hashCode());
|
||||
result = prime * result + ((jid == null) ? 0 : jid.hashCode());
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.jivesoftware.smack.im;
|
|||
public class InitSmackIm {
|
||||
|
||||
static {
|
||||
(new SmackImInitializer()).initialize();
|
||||
new SmackImInitializer().initialize();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ import java.io.IOException;
|
|||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
|
||||
import org.jivesoftware.smack.ConnectionConfiguration.Builder;
|
||||
import org.jivesoftware.smack.ConnectionConfiguration;
|
||||
import org.jivesoftware.smack.DummyConnection;
|
||||
import org.jivesoftware.smack.SmackException;
|
||||
import org.jivesoftware.smack.XMPPException;
|
||||
|
@ -71,7 +71,7 @@ public class RosterVersioningTest {
|
|||
DirectoryRosterStore store = DirectoryRosterStore.init(tmpFolder.newFolder("store"));
|
||||
populateStore(store);
|
||||
|
||||
Builder<?, ?> builder = DummyConnection.getDummyConfigurationBuilder();
|
||||
ConnectionConfiguration.Builder<?, ?> builder = DummyConnection.getDummyConfigurationBuilder();
|
||||
connection = new DummyConnection(builder.build());
|
||||
connection.connect();
|
||||
connection.login();
|
||||
|
@ -175,6 +175,7 @@ public class RosterVersioningTest {
|
|||
/**
|
||||
* Test roster versioning with roster pushes.
|
||||
*/
|
||||
@SuppressWarnings("UndefinedEquals")
|
||||
@Test(timeout = 5000)
|
||||
public void testRosterVersioningWithCachedRosterAndPushes() throws Throwable {
|
||||
answerWithEmptyRosterResult();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue