Skip to content

Commit 8958a7d

Browse files
committed
Merge branch 'v4support' of github.com:googleapis/google-cloud-java into v4support
2 parents 0e152ec + 7a836e4 commit 8958a7d

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

  • google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage

google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/StorageImpl.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@
8282

8383
final class StorageImpl extends BaseService<StorageOptions> implements Storage {
8484

85-
private static final Logger log = Logger.getLogger(StorageImpl.class.getName());
86-
8785
private static final byte[] EMPTY_BYTE_ARRAY = {};
8886
private static final String EMPTY_BYTE_ARRAY_MD5 = "1B2M2Y8AsgTpgAmY7PhCfg==";
8987
private static final String EMPTY_BYTE_ARRAY_CRC32C = "AAAAAA==";
@@ -677,13 +675,6 @@ public URL signUrl(BlobInfo blobInfo, long duration, TimeUnit unit, SignUrlOptio
677675
stBuilder.append("GoogleAccessId=").append(credentials.getAccount());
678676
stBuilder.append("&Expires=").append(expiration);
679677
stBuilder.append("&Signature=").append(signature);
680-
681-
log.warning(
682-
"You have generated a signed URL using the V2 signing implementation. This is currently "
683-
+ "the default, but in the future, this will default to V4. You may experience breaking changes "
684-
+ "if you use long expiration times with V4, since the maximum expiration time for V4 is 7 days. To "
685-
+ "opt-in to V4 signing, specify Storage.SignUrlOption.withV4Signature() as a parameter to "
686-
+ "the signUrl() method.");
687678
}
688679

689680
return new URL(stBuilder.toString());

0 commit comments

Comments
 (0)