Skip to content

Commit 63309c9

Browse files
jean-philippe-martinmziccard
authored andcommitted
---
yaml --- r: 3471 b: refs/heads/master c: 312565c h: refs/heads/master i: 3469: 563e074 3467: 51817ee 3463: d9bb731 3455: 79922e8
1 parent 5c91232 commit 63309c9

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 29ea8b0df2b5efd4159cdae38b581497efe1be7d
2+
refs/heads/master: 312565c38c47fbf5f1b5e26a46be2546056773fd
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b

trunk/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() {

trunk/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)