fixing some javac/javadoc warnings

This commit is contained in:
Jörg Prante 2020-06-03 18:50:58 +02:00
parent 04c9fe5ed1
commit 5abdd51313
5 changed files with 12 additions and 4 deletions

View file

@ -33,3 +33,11 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
artifacts { artifacts {
archives sourcesJar, javadocJar archives sourcesJar, javadocJar
} }
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:all'
}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}

View file

@ -1,4 +1,4 @@
module org.xbib.io.archive.ar { module org.xbib.io.archive.ar {
exports org.xbib.io.archive.ar; exports org.xbib.io.archive.ar;
requires org.xbib.io.archive; requires transitive org.xbib.io.archive;
} }

View file

@ -24,7 +24,6 @@ import java.util.Date;
* can read but not write the GNU variant and doesn't support * can read but not write the GNU variant and doesn't support
* the BSD variant at all. * the BSD variant at all.
* *
* <a href="http://www.freebsd.org/cgi/man.cgi?query=ar&sektion=5">ar man page</a>
*/ */
public class ArArchiveEntry implements ArchiveEntry { public class ArArchiveEntry implements ArchiveEntry {

View file

@ -1,4 +1,4 @@
module org.xbib.io.archive.cpio { module org.xbib.io.archive.cpio {
exports org.xbib.io.archive.cpio; exports org.xbib.io.archive.cpio;
requires org.xbib.io.archive; requires transitive org.xbib.io.archive;
} }

View file

@ -27,6 +27,7 @@ public class ArConnection extends URLConnection implements Connection<ArSession>
* the object referenced by the URL is not created. * the object referenced by the URL is not created.
* *
* @param url the specified URL. * @param url the specified URL.
* @throws URISyntaxException if URI is invalid
*/ */
public ArConnection(URL url) throws URISyntaxException { public ArConnection(URL url) throws URISyntaxException {
super(url); super(url);