Skip to content

Commit 7598d53

Browse files
jean-philippe-martinmziccard
authored andcommitted
---
yaml --- r: 7409 b: refs/heads/tswast-patch-1 c: 312565c h: refs/heads/master i: 7407: aa20248
1 parent 1dab299 commit 7598d53

4 files changed

Lines changed: 53 additions & 51 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: 29ea8b0df2b5efd4159cdae38b581497efe1be7d
60+
refs/heads/tswast-patch-1: 312565c38c47fbf5f1b5e26a46be2546056773fd
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,12 @@ public CloudStoragePath getPath(String first, String... more) {
158158
* Does nothing.
159159
*/
160160
@Override
161-
public void close() {}
161+
public void close() throws IOException {
162+
// TODO(#809): Synchronously close all channels associated with this FileSystem instance.
163+
}
162164

163165
/**
164-
* Returns {@code true}.
166+
* Returns {@code true}, even if you previously called the {@link #close()} method.
165167
*/
166168
@Override
167169
public boolean isOpen() {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public void testExists_trailingSlash() {
391391
}
392392

393393
@Test
394-
public void testExists_trailingSlash_disablePseudoDirectories() {
394+
public void testExists_trailingSlash_disablePseudoDirectories() throws IOException {
395395
try (CloudStorageFileSystem fs = forBucket("military", usePseudoDirectories(false))) {
396396
assertThat(Files.exists(fs.getPath("fashion/"))).isFalse();
397397
}
@@ -547,7 +547,7 @@ public void testIsDirectory_trailingSlash_alwaysTrue() {
547547
}
548548

549549
@Test
550-
public void testIsDirectory_trailingSlash_pseudoDirectoriesDisabled_false() {
550+
public void testIsDirectory_trailingSlash_pseudoDirectoriesDisabled_false() throws IOException {
551551
try (CloudStorageFileSystem fs = forBucket("doodle", usePseudoDirectories(false))) {
552552
assertThat(Files.isDirectory(fs.getPath("fundir/"))).isFalse();
553553
}

0 commit comments

Comments
 (0)