broker/AuthorizationsCollector: code formatter used
This commit is contained in:
@@ -13,19 +13,19 @@
|
|||||||
*
|
*
|
||||||
* You may elect to redistribute this code under either of these licenses.
|
* You may elect to redistribute this code under either of these licenses.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package io.moquette.spi.impl.security;
|
package io.moquette.spi.impl.security;
|
||||||
|
|
||||||
import io.moquette.spi.impl.subscriptions.SubscriptionsStore;
|
import io.moquette.spi.impl.subscriptions.SubscriptionsStore;
|
||||||
import io.moquette.spi.security.IAuthorizator;
|
import io.moquette.spi.security.IAuthorizator;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used by the ACLFileParser to push all authorizations it finds.
|
* Used by the ACLFileParser to push all authorizations it finds. ACLAuthorizator uses it in read
|
||||||
* ACLAuthorizator uses it in read mode to check it topics matches the ACLs.
|
* mode to check it topics matches the ACLs.
|
||||||
*
|
*
|
||||||
* Not thread safe.
|
* Not thread safe.
|
||||||
*
|
*
|
||||||
@@ -57,7 +57,8 @@ class AuthorizationsCollector implements IAuthorizator {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (m_parsingUsersSpecificSection) {
|
if (m_parsingUsersSpecificSection) {
|
||||||
//TODO in java 8 switch to m_userAuthorizations.putIfAbsent(m_currentUser, new ArrayList());
|
// TODO in java 8 switch to m_userAuthorizations.putIfAbsent(m_currentUser, new
|
||||||
|
// ArrayList());
|
||||||
if (!m_userAuthorizations.containsKey(m_currentUser)) {
|
if (!m_userAuthorizations.containsKey(m_currentUser)) {
|
||||||
m_userAuthorizations.put(m_currentUser, new ArrayList<Authorization>());
|
m_userAuthorizations.put(m_currentUser, new ArrayList<Authorization>());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user