Skip to content

Commit

Permalink
get -> orElseThrow
Browse files Browse the repository at this point in the history
  • Loading branch information
midttuna committed Mar 5, 2025
1 parent 8252f39 commit 09cbdfa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void write(final JsonWriter out, final Optional<T> value) throws IOExcept
if (value == null || value.isEmpty()) {
out.nullValue();
} else {
delegate.write(out, value.get());
delegate.write(out, value.orElseThrow());
}
}

Expand Down

0 comments on commit 09cbdfa

Please sign in to comment.