Skip to content

Commit a9f82a1

Browse files
authored
HADOOP-17202. Fix findbugs warnings in hadoop-tools on branch-2.10. (#2214)
1 parent c7ab319 commit a9f82a1

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -894,13 +894,9 @@ public void access(final Path path, final FsAction mode)
894894
+ " used is not namespace enabled");
895895
return;
896896
}
897-
//try (AbfsPerfInfo perfInfo = startTracking("access", "checkAccess")) {
898897
String relativePath =
899898
AbfsHttpConstants.FORWARD_SLASH + getRelativePath(path, true);
900-
final AbfsRestOperation op = this.client
901-
.checkAccess(relativePath, mode.SYMBOL);
902-
// perfInfo.registerResult(op.getResult()).registerSuccess(true);
903-
//}
899+
this.client.checkAccess(relativePath, mode.SYMBOL);
904900
}
905901

906902
public boolean isAtomicRenameKey(String key) {

hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/JsonObjectMapperWriter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public JsonObjectMapperWriter(OutputStream output, boolean prettyPrint) throws I
5656
// register the module with the object-mapper
5757
mapper.registerModule(module);
5858

59-
mapper.getJsonFactory();
6059
writer = mapper.getJsonFactory().createJsonGenerator(
6160
output, JsonEncoding.UTF8);
6261
if (prettyPrint) {

0 commit comments

Comments
 (0)