We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e57ae7 commit 6bbfb05Copy full SHA for 6bbfb05
1 file changed
gcloud-java-core/src/main/java/com/google/gcloud/ServiceOptions.java
@@ -34,6 +34,7 @@
34
import java.io.IOException;
35
import java.io.InputStream;
36
import java.io.InputStreamReader;
37
+import java.io.ObjectStreamException;
38
import java.io.Serializable;
39
import java.lang.reflect.Method;
40
import java.net.HttpURLConnection;
@@ -124,6 +125,10 @@ private static class DefaultClock extends ServiceOptions.Clock implements Serial
124
125
public long millis() {
126
return System.currentTimeMillis();
127
}
128
+
129
+ private Object readResolve() throws ObjectStreamException {
130
+ return DEFAULT_TIME_SOURCE;
131
+ }
132
133
134
0 commit comments