Add -Xlint:unchecked -Xlint:deprecation -Xbootclasspath: to build configuration.