Get rid of deprecated dynamic properties
Enable javac lint