We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67e4018 commit c14d04fCopy full SHA for c14d04f
1 file changed
jabel-javac-plugin/src/main/java/com/github/bsideup/jabel/JabelCompilerPlugin.java
@@ -173,13 +173,9 @@ static void checkSourceLevel(
173
@Advice.Argument(value = 1, readOnly = false) Source.Feature feature
174
) {
175
if (feature.allowedInSource(Source.JDK8)) {
176
- if (Source.MIN.compareTo(Source.JDK8) < 0) {
177
- //noinspection UnusedAssignment
178
- feature = Source.Feature.LAMBDA;
179
- } else {
180
181
- feature = Source.Feature.RECORDS;
182
- }
+ // This must be one of the cases from "AllowedInSourceAdvice"
+ //noinspection UnusedAssignment
+ feature = Source.Feature.PRIVATE_SAFE_VARARGS;
183
}
184
185
0 commit comments