Skip to content

Commit fc0af69

Browse files
Reviewer comments
1 parent 86c2ba5 commit fc0af69

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

gcloud-java-contrib/gcloud-java-nio/src/main/java/com/google/gcloud/storage/contrib/nio/CloudStorageFileSystemProvider.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
@AutoService(FileSystemProvider.class)
8383
public final class CloudStorageFileSystemProvider extends FileSystemProvider {
8484

85+
private final Storage storage;
86+
87+
// used only when we create a new instance of CloudStorageFileSystemProvider.
88+
private static StorageOptions defaultStorageOptions;
89+
8590
private static class LazyPathIterator extends AbstractIterator<Path> {
8691
private final Iterator<Blob> blobIterator;
8792
private final Filter<? super Path> filter;
@@ -109,12 +114,6 @@ protected Path computeNext() {
109114
}
110115
}
111116

112-
113-
private final Storage storage;
114-
115-
// used only when we create a new instance of CloudStorageFileSystemProvider.
116-
private static StorageOptions defaultStorageOptions;
117-
118117
/**
119118
* Sets default options that are only used by the constructor.
120119
*/
@@ -575,9 +574,9 @@ public Iterator<Path> iterator() {
575574
return new LazyPathIterator(cloudPath.getFileSystem(), blobIterator, filter);
576575
}
577576

578-
// Does nothing since there's nothing to close. Commenting this method to quiet codacy.
579577
@Override
580578
public void close() throws IOException {
579+
// Does nothing since there's nothing to close. Commenting this method to quiet codacy.
581580
}
582581
};
583582
}

gcloud-java-storage/src/main/java/com/google/gcloud/storage/testing/FakeStorageRpc.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ public Tuple<String, Iterable<StorageObject>> list(String bucket, Map<Option, ?>
101101
if (preprefix.startsWith("/")) {
102102
preprefix = preprefix.substring(1);
103103
}
104-
continue;
104+
break;
105105
case FIELDS:
106106
// ignore and return all the fields
107-
continue;
107+
break;
108108
default:
109109
throw new UnsupportedOperationException("Unknown option: " + e.getKey());
110110
}

0 commit comments

Comments
 (0)