Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Mar 12, 2023
1 parent cb0d519 commit be70407
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ T after(Optional<T> o1, Optional<T> o2) {
* Prefer {@link Optional#orElseGet(Supplier)} over {@link Optional#orElse(Object)} if the given
* value is not a compile-time constant.
*/
abstract static class OrElseToOrElseGet<T> {
static final class OrElseToOrElseGet<T> {
@BeforeTemplate
T before(Optional<T> o, @NotMatches(CompileTimeConstantExpressionMatcher.class) T value) {
return o.orElse(value);
Expand Down

0 comments on commit be70407

Please sign in to comment.