broker/LoggingUtils: code formatter used
This commit is contained in:
@@ -1,16 +1,17 @@
|
|||||||
|
|
||||||
package io.moquette.logging;
|
package io.moquette.logging;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import io.moquette.interception.InterceptHandler;
|
import io.moquette.interception.InterceptHandler;
|
||||||
|
|
||||||
public class LoggingUtils {
|
public class LoggingUtils {
|
||||||
public static <T extends InterceptHandler> Collection<String> getInterceptorIds(Collection<T> handlers) {
|
|
||||||
Collection<String> result = new ArrayList<>(handlers.size());
|
public static <T extends InterceptHandler> Collection<String> getInterceptorIds(Collection<T> handlers) {
|
||||||
for (T handler : handlers) {
|
Collection<String> result = new ArrayList<>(handlers.size());
|
||||||
result.add(handler.getID());
|
for (T handler : handlers) {
|
||||||
}
|
result.add(handler.getID());
|
||||||
return result;
|
}
|
||||||
}
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user