Skip to content

Commit c14d04f

Browse files
committed
cleanup
1 parent 67e4018 commit c14d04f

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

jabel-javac-plugin/src/main/java/com/github/bsideup/jabel/JabelCompilerPlugin.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,9 @@ static void checkSourceLevel(
173173
@Advice.Argument(value = 1, readOnly = false) Source.Feature feature
174174
) {
175175
if (feature.allowedInSource(Source.JDK8)) {
176-
if (Source.MIN.compareTo(Source.JDK8) < 0) {
177-
//noinspection UnusedAssignment
178-
feature = Source.Feature.LAMBDA;
179-
} else {
180-
//noinspection UnusedAssignment
181-
feature = Source.Feature.RECORDS;
182-
}
176+
// This must be one of the cases from "AllowedInSourceAdvice"
177+
//noinspection UnusedAssignment
178+
feature = Source.Feature.PRIVATE_SAFE_VARARGS;
183179
}
184180
}
185181
}

0 commit comments

Comments
 (0)