mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 00:59:39 +02:00
Add "whitespace after comma" checkstyle rule
This commit is contained in:
parent
db5f6f648c
commit
f7762c5db7
37 changed files with 59 additions and 58 deletions
|
@ -98,7 +98,7 @@ public final class OmemoManager extends Manager {
|
|||
private static final Integer UNKNOWN_DEVICE_ID = -1;
|
||||
final Object LOCK = new Object();
|
||||
|
||||
private static final WeakHashMap<XMPPConnection, TreeMap<Integer,OmemoManager>> INSTANCES = new WeakHashMap<>();
|
||||
private static final WeakHashMap<XMPPConnection, TreeMap<Integer, OmemoManager>> INSTANCES = new WeakHashMap<>();
|
||||
private final OmemoService<?, ?, ?, ?, ?, ?, ?, ?, ?> service;
|
||||
|
||||
private final HashSet<OmemoMessageListener> omemoMessageListeners = new HashSet<>();
|
||||
|
@ -157,7 +157,7 @@ public final class OmemoManager extends Manager {
|
|||
throw new IllegalArgumentException("DeviceId MUST NOT be null and MUST be greater than 0.");
|
||||
}
|
||||
|
||||
TreeMap<Integer,OmemoManager> managersOfConnection = INSTANCES.get(connection);
|
||||
TreeMap<Integer, OmemoManager> managersOfConnection = INSTANCES.get(connection);
|
||||
if (managersOfConnection == null) {
|
||||
managersOfConnection = new TreeMap<>();
|
||||
INSTANCES.put(connection, managersOfConnection);
|
||||
|
@ -938,7 +938,7 @@ public final class OmemoManager extends Manager {
|
|||
*
|
||||
* @return omemoService
|
||||
*/
|
||||
OmemoService<?,?,?,?,?,?,?,?,?> getOmemoService() {
|
||||
OmemoService<?, ?, ?, ?, ?, ?, ?, ?, ?> getOmemoService() {
|
||||
throwIfNoServiceSet();
|
||||
return service;
|
||||
}
|
||||
|
|
|
@ -133,7 +133,7 @@ public abstract class OmemoRatchet<T_IdKeyPair, T_IdKey, T_PreKey, T_SigPreKey,
|
|||
// copy key part into messageKey
|
||||
System.arraycopy(unpackedKey, 0, messageKey, 0, 16);
|
||||
// copy tag part into authTag
|
||||
System.arraycopy(unpackedKey, 16, authTag, 0,16);
|
||||
System.arraycopy(unpackedKey, 16, authTag, 0, 16);
|
||||
} else if (element.isKeyTransportElement() && unpackedKey.length == 16) {
|
||||
messageKey = unpackedKey;
|
||||
} else {
|
||||
|
|
|
@ -123,7 +123,7 @@ extends SmackTestSuite {
|
|||
int high = Integer.MAX_VALUE - 2;
|
||||
int max = Integer.MAX_VALUE;
|
||||
assertEquals(OmemoKeyUtil.addInBounds(high, 3), 1);
|
||||
assertEquals(OmemoKeyUtil.addInBounds(1,2), 3);
|
||||
assertEquals(OmemoKeyUtil.addInBounds(1, 2), 3);
|
||||
assertEquals(OmemoKeyUtil.addInBounds(max, 5), 5);
|
||||
}
|
||||
|
||||
|
|
|
@ -269,8 +269,8 @@ public abstract class OmemoStoreTest<T_IdKeyPair, T_IdKey, T_PreKey, T_SigPreKey
|
|||
|
||||
@Test
|
||||
public void loadStoreCachedDeviceList() throws IOException {
|
||||
Integer[] active = new Integer[] {1,5,999,10};
|
||||
Integer[] inactive = new Integer[] {6,7,8};
|
||||
Integer[] active = new Integer[] {1, 5, 999, 10};
|
||||
Integer[] inactive = new Integer[] {6, 7, 8};
|
||||
OmemoCachedDeviceList before = new OmemoCachedDeviceList(
|
||||
new HashSet<>(Arrays.asList(active)),
|
||||
new HashSet<>(Arrays.asList(inactive)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue