LUCENE-9077: Enable javac linting as in ant. TONS of warnings are currently printed.

This commit is contained in:
Dawid Weiss 2020-01-20 10:10:48 +01:00
parent 1ad6bc9361
commit 351b30489c
2 changed files with 15 additions and 4 deletions

View File

@ -5,7 +5,18 @@ allprojects {
sourceCompatibility = "11" sourceCompatibility = "11"
targetCompatibility = "11" targetCompatibility = "11"
compileJava.options.encoding = "UTF-8" tasks.withType(JavaCompile) {
compileTestJava.options.encoding = "UTF-8" options.encoding = "UTF-8"
options.compilerArgs += [
"-Xlint",
"-Xlint:-deprecation",
"-Xlint:-serial",
"-Xdoclint:all/protected",
"-Xdoclint:-missing",
"-Xdoclint:-accessibility",
"-proc:none", // proc:none was added because of LOG4J2-1925 / JDK-8186647
]
}
} }
} }

View File

@ -78,7 +78,7 @@ import org.jsoup.select.NodeVisitor;
* This tool supports 2 command line options: * This tool supports 2 command line options:
* </p> * </p>
* <ul> * <ul>
* <li><b>-check-all-relative-links</b><br /> * <li><b>-check-all-relative-links</b>
* <p>By default, only relative links to files in the same directory (ie: not startin with * <p>By default, only relative links to files in the same directory (ie: not startin with
* <code>"../"</code> are checked for existence. This means that we can do a "quick" validatation of * <code>"../"</code> are checked for existence. This means that we can do a "quick" validatation of
* links to other ref-guide files, but ignore relative links to things outside of the ref-guide -- * links to other ref-guide files, but ignore relative links to things outside of the ref-guide --
@ -86,7 +86,7 @@ import org.jsoup.select.NodeVisitor;
* <em>also</em> check relative links where the path starts with <code>"../"</code> * <em>also</em> check relative links where the path starts with <code>"../"</code>
* </p> * </p>
* </li> * </li>
* <li><b>-bare-bones</b><br/> * <li><b>-bare-bones</b>
* <p>By default, this tool assumes it is analyzing Jekyll generated files. If this option is specified, * <p>By default, this tool assumes it is analyzing Jekyll generated files. If this option is specified,
* then it instead assumes it's checking "bare bones" HTML files... * then it instead assumes it's checking "bare bones" HTML files...
* </p> * </p>