Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f70f1f

Browse files
committed
Minor fixes to DeprecationStatus and ImageInfo javadoc
1 parent562324a commit2f70f1f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

‎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-
* @throwsIllegalArgumentException if {@link #deleted()} is not a valid date, time or datetime
229+
* @throwsIllegalStateException if {@link #deleted()} is not a valid date, time or datetime
230230
*/
231231
publicLongdeletedMillis() {
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-
* @throwsIllegalArgumentException if {@link #deprecated()} is not a valid date, time or datetime
243+
* @throwsIllegalStateException if {@link #deprecated()} is not a valid date, time or datetime
244244
*/
245245
publicLongdeprecatedMillis() {
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-
* @throwsIllegalArgumentException if {@link #obsolete()} is not a valid date, time or datetime
257+
* @throwsIllegalStateException if {@link #obsolete()} is not a valid date, time or datetime
258258
*/
259259
publicLongobsoleteMillis() {
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 araw image stored in Google
41+
* disk. Use {@link StorageImageConfiguration} to create an image from afile 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 araw image
119-
*stored inGoogle Cloud Storage.
118+
* existing disk. Use {@link StorageImageConfiguration} to create an image from afile stored in
119+
* Google Cloud Storage.
120120
*/
121121
publicabstractBuilderconfiguration(ImageConfigurationconfiguration);
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 araw image stored in Google Cloud Storage.
290+
* from afile stored in Google Cloud Storage.
291291
*/
292292
@SuppressWarnings("unchecked")
293293
public <TextendsImageConfiguration>Tconfiguration() {
@@ -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 araw image stored in Google Cloud
396+
* {@link StorageImageConfiguration} to create an image from afile stored in Google Cloud
397397
* Storage.
398398
*/
399399
publicstaticBuilderbuilder(ImageIdimageId,ImageConfigurationconfiguration) {
@@ -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 araw image stored in Google Cloud
406+
* {@link StorageImageConfiguration} to create an image from afile stored in Google Cloud
407407
* Storage.
408408
*/
409409
publicstaticImageInfoof(ImageIdimageId,ImageConfigurationconfiguration) {

‎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
importjava.util.Objects;
2525

2626
/**
27-
* A Google Compute Enginerawimage configuration. This class can beused to create images from a
28-
*Google Cloud StorageURL where the disk image is stored.
27+
* A Google Compute Engine image configurationused to create images from a Google Cloud Storage
28+
* URL where the disk image is stored.
2929
*/
3030
publicclassStorageImageConfigurationextendsImageConfiguration {
3131

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp