Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jun 23, 2024
1 parent c9fd7fc commit b7d8960
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,15 @@ public int hashCode() {
return fileTime.hashCode();
}

private void readObject(final ObjectInputStream ois) throws ClassNotFoundException, IOException {
this.fileTime = FileTime.from((Instant) ois.readObject());
/**
* Deserializes an instance from an ObjectInputStream.
*
* @param in The source ObjectInputStream.
* @throws IOException Any of the usual Input/Output related exceptions.
* @throws ClassNotFoundException A class of a serialized object cannot be found.
*/
private void readObject(final ObjectInputStream in) throws ClassNotFoundException, IOException {
this.fileTime = FileTime.from((Instant) in.readObject());
}

long to(final TimeUnit unit) {
Expand Down

0 comments on commit b7d8960

Please sign in to comment.