Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Xing Lin committed Nov 26, 2024
1 parent 1e17311 commit bbfa1e1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static class InnerCache {

// computeIfAbsent() does not support a mapping function which throws IOException.
// Wrap fsCreator.getNewInstance() to not throw IOException and return null instead.
FileSystem getNewFileSystem(FsGetter fsCreator, URI uri, Configuration config) {
FileSystem getNewFileSystem(URI uri, Configuration config) {
try {
return fsCreator.getNewInstance(uri, config);
} catch (IOException e) {
Expand All @@ -140,7 +140,7 @@ FileSystem getNewFileSystem(FsGetter fsCreator, URI uri, Configuration config) {
FileSystem get(URI uri, Configuration config) throws IOException {
Key key = new Key(uri);

FileSystem fs = map.computeIfAbsent(key, k -> getNewFileSystem(fsCreator, uri, config));
FileSystem fs = map.computeIfAbsent(key, k -> getNewFileSystem(uri, config));
if (fs == null) {
throw new IOException("Failed to create new FileSystem instance for " + uri);
}
Expand All @@ -158,7 +158,7 @@ void closeAll() {
}

void clear() {
map.clear();
map.clear();
}

/**
Expand Down

0 comments on commit bbfa1e1

Please sign in to comment.