HADOOP-17202. Fix findbugs warnings in hadoop-tools on branch-2.10. (#2214)

This commit is contained in:
Masatake Iwasaki 2020-08-18 13:58:35 +09:00 committed by GitHub
parent c7ab3195de
commit a9f82a11df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -894,13 +894,9 @@ public void access(final Path path, final FsAction mode)
+ " used is not namespace enabled"); + " used is not namespace enabled");
return; return;
} }
//try (AbfsPerfInfo perfInfo = startTracking("access", "checkAccess")) {
String relativePath = String relativePath =
AbfsHttpConstants.FORWARD_SLASH + getRelativePath(path, true); AbfsHttpConstants.FORWARD_SLASH + getRelativePath(path, true);
final AbfsRestOperation op = this.client this.client.checkAccess(relativePath, mode.SYMBOL);
.checkAccess(relativePath, mode.SYMBOL);
// perfInfo.registerResult(op.getResult()).registerSuccess(true);
//}
} }
public boolean isAtomicRenameKey(String key) { public boolean isAtomicRenameKey(String key) {

View File

@ -56,7 +56,6 @@ public JsonObjectMapperWriter(OutputStream output, boolean prettyPrint) throws I
// register the module with the object-mapper // register the module with the object-mapper
mapper.registerModule(module); mapper.registerModule(module);
mapper.getJsonFactory();
writer = mapper.getJsonFactory().createJsonGenerator( writer = mapper.getJsonFactory().createJsonGenerator(
output, JsonEncoding.UTF8); output, JsonEncoding.UTF8);
if (prettyPrint) { if (prettyPrint) {