equal
deleted
inserted
replaced
113 } else { |
113 } else { |
114 // otherwise, enable on-by-default categories |
114 // otherwise, enable on-by-default categories |
115 values = EnumSet.noneOf(LintCategory.class); |
115 values = EnumSet.noneOf(LintCategory.class); |
116 |
116 |
117 Source source = Source.instance(context); |
117 Source source = Source.instance(context); |
118 if (source.compareTo(Source.JDK1_9) >= 0) { |
118 if (source.compareTo(Source.JDK9) >= 0) { |
119 values.add(LintCategory.DEP_ANN); |
119 values.add(LintCategory.DEP_ANN); |
120 } |
120 } |
121 values.add(LintCategory.REQUIRES_TRANSITIVE_AUTOMATIC); |
121 values.add(LintCategory.REQUIRES_TRANSITIVE_AUTOMATIC); |
122 values.add(LintCategory.OPENS); |
122 values.add(LintCategory.OPENS); |
123 values.add(LintCategory.MODULE); |
123 values.add(LintCategory.MODULE); |