Jimexist commented on code in PR #2575:
URL: https://github.com/apache/thrift/pull/2575#discussion_r851902434
##########
lib/java/gradle/sourceConfiguration.gradle:
##########
@@ -60,7 +60,16 @@ tasks.withType(JavaCompile) {
if (JavaVersion.current() > JavaVersion.VERSION_1_8) {
options.compilerArgs.addAll(['--release', '8'])
}
- // options.compilerArgs.addAll('-Xlint:unchecked')
+ options.compilerArgs.addAll([
+ '-Werror',
+ '-Xlint:deprecation',
+ '-Xlint:cast',
+ '-Xlint:empty',
+ '-Xlint:fallthrough',
+ '-Xlint:finally',
+ '-Xlint:overrides',
+ // we can't enable -Xlint:unchecked just yet
Review Comment:
thanks but i've tried locally, `'-Xlint:all,-unchecked',` does not work as
it will still enforce `unchecked`.
in the longer term i'd plan to remove all unchecked code styles so the
current explicit enumeration seems fine to me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]