diff --git a/src/main/java/nonapi/io/github/classgraph/reflection/ReflectionDriver.java b/src/main/java/nonapi/io/github/classgraph/reflection/ReflectionDriver.java index 752967635..4e705701b 100644 --- a/src/main/java/nonapi/io/github/classgraph/reflection/ReflectionDriver.java +++ b/src/main/java/nonapi/io/github/classgraph/reflection/ReflectionDriver.java @@ -267,11 +267,12 @@ protected void indexDriverMethods(final List methods) { * @param methodIter * The {@link MethodIter} to apply for each declared method */ - void forAllMethods(final Class cls, boolean includeInterfaceDefaultMethods, + void forAllMethods(final Class cls, final boolean includeInterfaceDefaultMethods, final ReflectionDriver.MethodIterator methodIter) throws Exception { // Iterate from class to its superclasses, and find initial interfaces to start traversing from final Set> visited = new HashSet<>(); - final LinkedList> interfaceQueue = includeInterfaceDefaultMethods ? new LinkedList<>() : null; + final LinkedList> interfaceQueue = includeInterfaceDefaultMethods ? new LinkedList>() + : null; for (Class c = cls; c != null; c = c.getSuperclass()) { for (final Method m : getDeclaredMethods(c)) { if (methodIter.foundMethod(m)) {