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");
|
+ " 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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user