Skip to content

Commit

Permalink
Fixed FileReader#readElseCreate nullable annotation. See #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Raft08 committed Jul 1, 2024
1 parent 4387ccf commit 3e26f24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected FileReader(@NotNull File file) {
* @return the read or default value of the file.
* @throws IOException if the file could not be created or read.
*/
@Nullable
@NotNull
public final V readElseCreate(V defValue) throws IOException {
if (!this.exists()) {
this.create();
Expand Down

0 comments on commit 3e26f24

Please sign in to comment.