Skip to content

Commit b9f093f

Browse files
jean-philippe-martinmziccard
authored andcommitted
---
yaml --- r: 4419 b: refs/heads/gcs-nio c: f322382 h: refs/heads/master i: 4417: 798abe7 4415: c42a483
1 parent 6cc378f commit b9f093f

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
@@ -11,7 +11,7 @@ refs/tags/v0.0.12: 2fd8066e891fb3dfea69b65f6bf6461db79342b9
1111
refs/heads/compute-alpha: 969cba2627f1d53d352cc4a5ffe0879dacf65e6c
1212
refs/heads/dns-alpha: 2f90e7e338349287ace33375896907af0f032ca1
1313
refs/heads/dns-alpha-batch: 17442b07867021b85d0452f5f3eda29a3413288f
14-
refs/heads/gcs-nio: e7ca84162ae4b21e78b8297f713ecad6c90f2d38
14+
refs/heads/gcs-nio: f322382c5c64a6e3d08479c557404fe1de0d3cf0
1515
refs/heads/logging-alpha: db5312bffa7fccac194f6a7feb8cc3066de16aff
1616
refs/tags/v0.1.0: a615317f7424ed58621b1f65d5c4d8cbbe8a6ed8
1717
refs/tags/v0.1.1: 7a7f6985fe465e9dd6a075af55493f42b4933be0

branches/gcs-nio/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
@@ -145,10 +145,12 @@ public CloudStoragePath getPath(String first, String... more) {
145145
* Does nothing.
146146
*/
147147
@Override
148-
public void close() {}
148+
public void close() throws IOException {
149+
// TODO(#809): Synchronously close all channels associated with this FileSystem instance.
150+
}
149151

150152
/**
151-
* Returns {@code true}.
153+
* Returns {@code true}, even if you previously called the {@link #close()} method.
152154
*/
153155
@Override
154156
public boolean isOpen() {

branches/gcs-nio/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)