Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup committed Oct 26, 2023
1 parent 67e4018 commit c14d04f
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,9 @@ static void checkSourceLevel(
@Advice.Argument(value = 1, readOnly = false) Source.Feature feature
) {
if (feature.allowedInSource(Source.JDK8)) {
if (Source.MIN.compareTo(Source.JDK8) < 0) {
//noinspection UnusedAssignment
feature = Source.Feature.LAMBDA;
} else {
//noinspection UnusedAssignment
feature = Source.Feature.RECORDS;
}
// This must be one of the cases from "AllowedInSourceAdvice"
//noinspection UnusedAssignment
feature = Source.Feature.PRIVATE_SAFE_VARARGS;
}
}
}
Expand Down

0 comments on commit c14d04f

Please sign in to comment.