The de.thetaphi:forbiddenapis Maven plugin provides some good verifications against usage of dangerous APIs like sun.misc.Unsafe and methods which have a different semantics depending on system locale, local timezones, etc..