Skip to content

Commit

Permalink
Type inference fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehutch committed Oct 13, 2021
1 parent 261ffb1 commit 8711220
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,12 @@ protected void indexDriverMethods(final List<Method> 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<Class<?>> visited = new HashSet<>();
final LinkedList<Class<?>> interfaceQueue = includeInterfaceDefaultMethods ? new LinkedList<>() : null;
final LinkedList<Class<?>> interfaceQueue = includeInterfaceDefaultMethods ? new LinkedList<Class<?>>()
: null;
for (Class<?> c = cls; c != null; c = c.getSuperclass()) {
for (final Method m : getDeclaredMethods(c)) {
if (methodIter.foundMethod(m)) {
Expand Down

0 comments on commit 8711220

Please sign in to comment.