Skip to content

Commit badf622

Browse files
---
yaml --- r: 8159 b: refs/heads/tswast-patch-1 c: 046777d h: refs/heads/master i: 8157: af13f62 8155: 08b838f 8151: d30bae4 8143: 09854fa 8127: 4715f43
1 parent 6cc2e5d commit badf622

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 19262b752ee874eb2ca3b950eb2aef44d5a5267b
60+
refs/heads/tswast-patch-1: 046777d5a3d1fc26a199e60fc6ff5bf414d0d874
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ protected Path computeNext() {
133133
* Sets options that are only used by the constructor.
134134
*/
135135
@VisibleForTesting
136-
public static void setStorageOptions(StorageOptions newStorageOptions) {
136+
public static void setStorageOptions(@Nullable StorageOptions newStorageOptions) {
137137
futureStorageOptions = newStorageOptions;
138138
}
139139

@@ -157,7 +157,7 @@ public static void setStorageOptions(StorageOptions newStorageOptions) {
157157
*
158158
* @param newDefault new default CloudStorageConfiguration
159159
*/
160-
public static void setDefaultCloudStorageConfiguration(CloudStorageConfiguration newDefault) {
160+
public static void setDefaultCloudStorageConfiguration(@Nullable CloudStorageConfiguration newDefault) {
161161
CloudStorageFileSystem.setDefaultCloudStorageConfiguration(newDefault);
162162
}
163163

branches/tswast-patch-1/google-cloud-contrib/google-cloud-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProviderTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,7 @@ public void testNullness() throws Exception {
633633
tester.setDefault(Path.class, fs.getPath("and/one"));
634634
tester.setDefault(OpenOption.class, CREATE);
635635
tester.setDefault(CopyOption.class, COPY_ATTRIBUTES);
636-
// can't do that, setStorageOptions accepts a null argument.
637-
// TODO(jart): Figure out how to re-enable this.
638-
// tester.testAllPublicStaticMethods(CloudStorageFileSystemProvider.class);
636+
tester.testAllPublicStaticMethods(CloudStorageFileSystemProvider.class);
639637
tester.testAllPublicInstanceMethods(new CloudStorageFileSystemProvider());
640638
}
641639
}

0 commit comments

Comments
 (0)