Javac and scalac warnings as errors only for certain types

I know that with -Werror and -Xfatal warnings I can make warnings like errors, but can I still see all the warnings in the compilation output, but only some of them become errors?

+5
source share
1 answer

I don’t think so, only scalac .

Perhaps you can add post-build validation to your build scripts that grep displays for warnings about your critical classes and fails if they are found?

+3
source

Source: https://habr.com/ru/post/1244314/


All Articles