Skip to content

Commit

Permalink
checkstyle + findbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadanand Shenoy committed Oct 8, 2024
1 parent 0be2bd3 commit adfeb31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.io.IOException;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.util.Map;
import java.util.Arrays;
import java.util.HashSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,11 @@ public BasicOzoneClientAdapterImpl(String omHost, int omPort,
OzoneClientUtils.resolveLinkBucketLayout(bucket, objectStore, new HashSet<>());

OzoneFSUtils.validateBucketLayout(bucket.getName(), resolvedBucketLayout);
} catch (IOException | IllegalArgumentException exception){
} catch (IOException | IllegalArgumentException exception) {
// in case of exception, the adapter object will not be
// initialised making the client object unreachable, close the client
// to release resources in this case and rethrow.
if (ozoneClient != null) {
ozoneClient.close();
}
ozoneClient.close();
throw exception;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,11 @@ public BasicRootedOzoneClientAdapterImpl(String omHost, int omPort,
// Fetches the bucket layout to be used by OFS.
try {
initDefaultFsBucketLayout(conf);
} catch (OMException ome){
} catch (OMException ome) {
// in case of exception, the adapter object will not be
// initialised making the client object unreachable, close the client
// to release resources in this case and rethrow.
if (ozoneClient != null) {
ozoneClient.close();
}
ozoneClient.close();
throw ome;
}

Expand Down

0 comments on commit adfeb31

Please sign in to comment.