mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Enable ModifierOrder checkstyle check
Fixes SMACK-812
This commit is contained in:
parent
bd08f11c4a
commit
a9ca1a0989
59 changed files with 134 additions and 133 deletions
|
@ -146,7 +146,7 @@ public final class OmemoManager extends Manager {
|
|||
* @param deviceId deviceId of the Manager. If the deviceId is null, a random id will be generated.
|
||||
* @return an OmemoManager
|
||||
*/
|
||||
public synchronized static OmemoManager getInstanceFor(XMPPConnection connection, Integer deviceId) {
|
||||
public static synchronized OmemoManager getInstanceFor(XMPPConnection connection, Integer deviceId) {
|
||||
WeakHashMap<Integer,OmemoManager> managersOfConnection = INSTANCES.get(connection);
|
||||
if (managersOfConnection == null) {
|
||||
managersOfConnection = new WeakHashMap<>();
|
||||
|
@ -173,7 +173,7 @@ public final class OmemoManager extends Manager {
|
|||
* @param connection connection
|
||||
* @return OmemoManager
|
||||
*/
|
||||
public synchronized static OmemoManager getInstanceFor(XMPPConnection connection) {
|
||||
public static synchronized OmemoManager getInstanceFor(XMPPConnection connection) {
|
||||
BareJid user;
|
||||
if (connection.getUser() != null) {
|
||||
user = connection.getUser().asBareJid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue