Skip to content

Commit

Permalink
Add readResolve to StorageOptions.DefaultClock
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Oct 13, 2015
1 parent 3e57ae7 commit 6bbfb05
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.ObjectStreamException;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.net.HttpURLConnection;
Expand Down Expand Up @@ -124,6 +125,10 @@ private static class DefaultClock extends ServiceOptions.Clock implements Serial
public long millis() {
return System.currentTimeMillis();
}

private Object readResolve() throws ObjectStreamException {
return DEFAULT_TIME_SOURCE;
}
}
}

Expand Down

0 comments on commit 6bbfb05

Please sign in to comment.