--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java Fri Apr 07 15:46:31 2017 +0100
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java Mon Apr 10 11:08:59 2017 +0200
@@ -118,6 +118,7 @@
if (source.compareTo(Source.JDK1_9) >= 0) {
values.add(LintCategory.DEP_ANN);
}
+ values.add(LintCategory.REQUIRES_TRANSITIVE_AUTOMATIC);
values.add(LintCategory.OPENS);
values.add(LintCategory.MODULE);
values.add(LintCategory.REMOVAL);
@@ -254,6 +255,16 @@
REMOVAL("removal"),
/**
+ * Warn about use of automatic modules in the requires clauses.
+ */
+ REQUIRES_AUTOMATIC("requires-automatic"),
+
+ /**
+ * Warn about automatic modules in requires transitive.
+ */
+ REQUIRES_TRANSITIVE_AUTOMATIC("requires-transitive-automatic"),
+
+ /**
* Warn about Serializable classes that do not provide a serial version ID.
*/
SERIAL("serial"),