CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

Finds pairs of methods that call each other

import java

from Method m, Method n
where
  exists(MethodAccess ma | ma.getCaller() = m and ma.getCallee() = n) and
  exists(MethodAccess ma | ma.getCaller() = n and ma.getCallee() = m) and
  m != n
select m, n