ARTEMIS-755 Fix divert MBean warning

This commit is contained in:
jbertram 2016-09-27 10:38:43 -05:00
parent f5456e760a
commit e53998bf3b
1 changed files with 2 additions and 2 deletions

View File

@ -539,8 +539,8 @@ public class ManagementServiceImpl implements ManagementService {
if (!registeredNames.isEmpty()) {
List<String> unexpectedResourceNames = new ArrayList<>();
for (String name : resourceNames) {
// only addresses and queues should still be registered
if (!(name.startsWith(ResourceNames.CORE_ADDRESS) || name.startsWith(ResourceNames.CORE_QUEUE))) {
// only addresses, queues, and diverts should still be registered
if (!(name.startsWith(ResourceNames.CORE_ADDRESS) || name.startsWith(ResourceNames.CORE_QUEUE) || name.startsWith(ResourceNames.CORE_DIVERT))) {
unexpectedResourceNames.add(name);
}
}