When I compile, javac outputs:
Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.`
When using gradle you can configure it easily:
tasks.withType(JavaCompile) { options.deprecation = false }
(tested with Gradle 2 and Java 8)