You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Removing joda
* Updating examples to use threeten
it looks like the examples were using joda, but there was not an explicit dependency in the pom.xml file.
Copy file name to clipboardExpand all lines: google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/AddressInfo.java
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,9 @@
27
27
importjava.math.BigInteger;
28
28
importjava.util.List;
29
29
importjava.util.Objects;
30
-
importorg.joda.time.format.DateTimeFormatter;
31
-
importorg.joda.time.format.ISODateTimeFormat;
30
+
importorg.threeten.bp.Instant;
31
+
importorg.threeten.bp.ZoneOffset;
32
+
importorg.threeten.bp.format.DateTimeFormatter;
32
33
33
34
/**
34
35
* A Google Compute Engine address. With Compute Engine you can create static external IP addresses
@@ -61,7 +62,8 @@ public Address apply(AddressInfo addressInfo) {
Copy file name to clipboardExpand all lines: google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/DeprecationStatus.java
Copy file name to clipboardExpand all lines: google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/ImageInfo.java
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,9 @@
27
27
importjava.math.BigInteger;
28
28
importjava.util.List;
29
29
importjava.util.Objects;
30
-
importorg.joda.time.format.DateTimeFormatter;
31
-
importorg.joda.time.format.ISODateTimeFormat;
30
+
importorg.threeten.bp.Instant;
31
+
importorg.threeten.bp.ZoneOffset;
32
+
importorg.threeten.bp.format.DateTimeFormatter;
32
33
33
34
/**
34
35
* A Google Compute Engine Image. An image contains a boot loader, an operating system and a root
@@ -59,7 +60,8 @@ public Image apply(ImageInfo image) {
Copy file name to clipboardExpand all lines: google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/InstanceInfo.java
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,9 @@
28
28
importjava.util.Arrays;
29
29
importjava.util.List;
30
30
importjava.util.Objects;
31
-
importorg.joda.time.format.DateTimeFormatter;
32
-
importorg.joda.time.format.ISODateTimeFormat;
31
+
importorg.threeten.bp.Instant;
32
+
importorg.threeten.bp.ZoneOffset;
33
+
importorg.threeten.bp.format.DateTimeFormatter;
33
34
34
35
/**
35
36
* A Google Compute Engine VM Instance. An instance is a virtual machine (VM) hosted on Google's
@@ -67,7 +68,8 @@ public Instance apply(InstanceInfo instance) {
Copy file name to clipboardExpand all lines: google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/MachineType.java
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,9 @@
24
24
importjava.math.BigInteger;
25
25
importjava.util.List;
26
26
importjava.util.Objects;
27
-
importorg.joda.time.format.DateTimeFormatter;
28
-
importorg.joda.time.format.ISODateTimeFormat;
27
+
importorg.threeten.bp.Instant;
28
+
importorg.threeten.bp.ZoneOffset;
29
+
importorg.threeten.bp.format.DateTimeFormatter;
29
30
30
31
/**
31
32
* A Google Compute Engine machine type. A machine type determine the virtualized hardware
@@ -52,7 +53,8 @@ public com.google.api.services.compute.model.MachineType apply(MachineType type)
0 commit comments