HADOOP-17202. Fix findbugs warnings in hadoop-tools on branch-2.10. (#2214)
This commit is contained in:
parent
c7ab3195de
commit
a9f82a11df
@ -894,13 +894,9 @@ public void access(final Path path, final FsAction mode)
|
||||
+ " used is not namespace enabled");
|
||||
return;
|
||||
}
|
||||
//try (AbfsPerfInfo perfInfo = startTracking("access", "checkAccess")) {
|
||||
String relativePath =
|
||||
AbfsHttpConstants.FORWARD_SLASH + getRelativePath(path, true);
|
||||
final AbfsRestOperation op = this.client
|
||||
.checkAccess(relativePath, mode.SYMBOL);
|
||||
// perfInfo.registerResult(op.getResult()).registerSuccess(true);
|
||||
//}
|
||||
this.client.checkAccess(relativePath, mode.SYMBOL);
|
||||
}
|
||||
|
||||
public boolean isAtomicRenameKey(String key) {
|
||||
|
@ -56,7 +56,6 @@ public JsonObjectMapperWriter(OutputStream output, boolean prettyPrint) throws I
|
||||
// register the module with the object-mapper
|
||||
mapper.registerModule(module);
|
||||
|
||||
mapper.getJsonFactory();
|
||||
writer = mapper.getJsonFactory().createJsonGenerator(
|
||||
output, JsonEncoding.UTF8);
|
||||
if (prettyPrint) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user