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

Finds methods whose return type is 'void'

import java

from Method m
where m.getReturnType() instanceof VoidType
select m