Skip to content

Commit b7d8960

Browse files
committed
Javadoc
1 parent c9fd7fc commit b7d8960

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/main/java/org/apache/commons/io/monitor/SerializableFileTime.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,15 @@ public int hashCode() {
6868
return fileTime.hashCode();
6969
}
7070

71-
private void readObject(final ObjectInputStream ois) throws ClassNotFoundException, IOException {
72-
this.fileTime = FileTime.from((Instant) ois.readObject());
71+
/**
72+
* Deserializes an instance from an ObjectInputStream.
73+
*
74+
* @param in The source ObjectInputStream.
75+
* @throws IOException Any of the usual Input/Output related exceptions.
76+
* @throws ClassNotFoundException A class of a serialized object cannot be found.
77+
*/
78+
private void readObject(final ObjectInputStream in) throws ClassNotFoundException, IOException {
79+
this.fileTime = FileTime.from((Instant) in.readObject());
7380
}
7481

7582
long to(final TimeUnit unit) {

0 commit comments

Comments
 (0)