Skip to content

Commit 2f70f1f

Browse files
committed
Minor fixes to DeprecationStatus and ImageInfo javadoc
1 parent 562324a commit 2f70f1f

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

gcloud-java-compute/src/main/java/com/google/gcloud/compute/DeprecationStatus.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public String obsolete() {
226226
* Returns the timestamp (in milliseconds since epoch) on or after which the deprecation state of
227227
* this resource will be changed to {@link Status#DELETED}. Returns {@code null} if not set.
228228
*
229-
* @throws IllegalArgumentException if {@link #deleted()} is not a valid date, time or datetime
229+
* @throws IllegalStateException if {@link #deleted()} is not a valid date, time or datetime
230230
*/
231231
public Long deletedMillis() {
232232
try {
@@ -240,7 +240,7 @@ public Long deletedMillis() {
240240
* Returns the timestamp (in milliseconds since epoch) on or after which the deprecation state of
241241
* this resource will be changed to {@link Status#DEPRECATED}. Returns {@code null} if not set.
242242
*
243-
* @throws IllegalArgumentException if {@link #deprecated()} is not a valid date, time or datetime
243+
* @throws IllegalStateException if {@link #deprecated()} is not a valid date, time or datetime
244244
*/
245245
public Long deprecatedMillis() {
246246
try {
@@ -254,7 +254,7 @@ public Long deprecatedMillis() {
254254
* Returns the timestamp (in milliseconds since epoch) on or after which the deprecation state of
255255
* this resource will be changed to {@link Status#OBSOLETE}. Returns {@code null} if not set.
256256
*
257-
* @throws IllegalArgumentException if {@link #obsolete()} is not a valid date, time or datetime
257+
* @throws IllegalStateException if {@link #obsolete()} is not a valid date, time or datetime
258258
*/
259259
public Long obsoleteMillis() {
260260
try {

gcloud-java-compute/src/main/java/com/google/gcloud/compute/ImageInfo.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* images of certain operating systems that you can use, or you can create a custom image. A custom
3939
* image is an image created from one of your virtual machine instances that contains your specific
4040
* instance configurations. Use {@link DiskImageConfiguration} to create an image from an existing
41-
* disk. Use {@link StorageImageConfiguration} to create an image from a raw image stored in Google
41+
* disk. Use {@link StorageImageConfiguration} to create an image from a file stored in Google
4242
* Cloud Storage.
4343
*
4444
* @see <a href="https://cloud.google.com/compute/docs/images">Images</a>
@@ -115,8 +115,8 @@ public abstract static class Builder {
115115

116116
/**
117117
* Sets the image configuration. Use {@link DiskImageConfiguration} to create an image from an
118-
* existing disk. Use {@link StorageImageConfiguration} to create an image from a raw image
119-
* stored in Google Cloud Storage.
118+
* existing disk. Use {@link StorageImageConfiguration} to create an image from a file stored in
119+
* Google Cloud Storage.
120120
*/
121121
public abstract Builder configuration(ImageConfiguration configuration);
122122

@@ -287,7 +287,7 @@ public String description() {
287287
* Returns the image configuration. This method returns an instance of
288288
* {@link DiskImageConfiguration} if the the image was created from a Google Compute Engine disk.
289289
* This method returns an instance of {@link StorageImageConfiguration} if the image was created
290-
* from a raw image stored in Google Cloud Storage.
290+
* from a file stored in Google Cloud Storage.
291291
*/
292292
@SuppressWarnings("unchecked")
293293
public <T extends ImageConfiguration> T configuration() {
@@ -393,7 +393,7 @@ Image toPb() {
393393
/**
394394
* Returns a builder for an {@code ImageInfo} object given the image identity and an image
395395
* configuration. Use {@link DiskImageConfiguration} to create an image from an existing disk. Use
396-
* {@link StorageImageConfiguration} to create an image from a raw image stored in Google Cloud
396+
* {@link StorageImageConfiguration} to create an image from a file stored in Google Cloud
397397
* Storage.
398398
*/
399399
public static Builder builder(ImageId imageId, ImageConfiguration configuration) {
@@ -403,7 +403,7 @@ public static Builder builder(ImageId imageId, ImageConfiguration configuration)
403403
/**
404404
* Returns an {@code ImageInfo} object given the image identity and an image configuration. Use
405405
* {@link DiskImageConfiguration} to create an image from an existing disk. Use
406-
* {@link StorageImageConfiguration} to create an image from a raw image stored in Google Cloud
406+
* {@link StorageImageConfiguration} to create an image from a file stored in Google Cloud
407407
* Storage.
408408
*/
409409
public static ImageInfo of(ImageId imageId, ImageConfiguration configuration) {

gcloud-java-compute/src/main/java/com/google/gcloud/compute/StorageImageConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import java.util.Objects;
2525

2626
/**
27-
* A Google Compute Engine raw image configuration. This class can be used to create images from a
28-
* Google Cloud Storage URL where the disk image is stored.
27+
* A Google Compute Engine image configuration used to create images from a Google Cloud Storage
28+
* URL where the disk image is stored.
2929
*/
3030
public class StorageImageConfiguration extends ImageConfiguration {
3131

0 commit comments

Comments
 (0)