Remove rawtypes
This commit is contained in:
@@ -276,8 +276,8 @@ public class NettyAcceptor implements ServerAcceptor {
|
|||||||
if (m_bossGroup == null) {
|
if (m_bossGroup == null) {
|
||||||
throw new IllegalStateException("Invoked close on an Acceptor that wasn't initialized");
|
throw new IllegalStateException("Invoked close on an Acceptor that wasn't initialized");
|
||||||
}
|
}
|
||||||
Future workerWaiter = m_workerGroup.shutdownGracefully();
|
Future<?> workerWaiter = m_workerGroup.shutdownGracefully();
|
||||||
Future bossWaiter = m_bossGroup.shutdownGracefully();
|
Future<?> bossWaiter = m_bossGroup.shutdownGracefully();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
workerWaiter.await(100);
|
workerWaiter.await(100);
|
||||||
|
|||||||
@@ -460,6 +460,8 @@ public class ProtocolProcessor {
|
|||||||
case EXACTLY_ONCE:
|
case EXACTLY_ONCE:
|
||||||
this.qos2PublishHandler.receivedPublishQos2(channel, msg);
|
this.qos2PublishHandler.receivedPublishQos2(channel, msg);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ class AuthorizationsCollector implements IAuthorizator {
|
|||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(AuthorizationsCollector.class);
|
private static final Logger LOG = LoggerFactory.getLogger(AuthorizationsCollector.class);
|
||||||
|
|
||||||
private List<Authorization> m_globalAuthorizations = new ArrayList();
|
private List<Authorization> m_globalAuthorizations = new ArrayList<>();
|
||||||
private List<Authorization> m_patternAuthorizations = new ArrayList();
|
private List<Authorization> m_patternAuthorizations = new ArrayList<>();
|
||||||
private Map<String, List<Authorization>> m_userAuthorizations = new HashMap();
|
private Map<String, List<Authorization>> m_userAuthorizations = new HashMap<>();
|
||||||
private boolean m_parsingUsersSpecificSection = false;
|
private boolean m_parsingUsersSpecificSection = false;
|
||||||
private boolean m_parsingPatternSpecificSection = false;
|
private boolean m_parsingPatternSpecificSection = false;
|
||||||
private String m_currentUser = "";
|
private String m_currentUser = "";
|
||||||
@@ -59,7 +59,7 @@ class AuthorizationsCollector implements IAuthorizator {
|
|||||||
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());
|
m_userAuthorizations.put(m_currentUser, new ArrayList<Authorization>());
|
||||||
}
|
}
|
||||||
List<Authorization> userAuths = m_userAuthorizations.get(m_currentUser);
|
List<Authorization> userAuths = m_userAuthorizations.get(m_currentUser);
|
||||||
userAuths.add(acl);
|
userAuths.add(acl);
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ public class SubscriptionsStore {
|
|||||||
return visitor.getResult();
|
return visitor.getResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void bfsVisit(TreeNode node, IVisitor visitor, int deep) {
|
private void bfsVisit(TreeNode node, IVisitor<?> visitor, int deep) {
|
||||||
if (node == null) {
|
if (node == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user