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

Finds fields with a 'volatile' modifier

import java

from Field f
where f.isVolatile()
select f