Skip to content

Commit

Permalink
Update LazyValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Jan 5, 2025
1 parent 5308296 commit 9ec6e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kala-base/src/main/java/kala/value/LazyValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,14 @@ public String toString() {

//region Serialization Operations

@Serial
@SuppressWarnings("unchecked")
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
value = (T) in.readObject();
supplier = null;
}

@Serial
private void writeObject(java.io.ObjectOutputStream out) throws IOException {
out.writeObject(get());
}
Expand Down

0 comments on commit 9ec6e6d

Please sign in to comment.