Browse Source

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

Masatake Iwasaki 4 years ago
parent
commit
a9f82a11df

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

@@ -894,13 +894,9 @@ public class AzureBlobFileSystemStore {
           + " 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) {

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

@@ -56,7 +56,6 @@ public class JsonObjectMapperWriter<T> implements Closeable {
     // register the module with the object-mapper
     mapper.registerModule(module);
 
-    mapper.getJsonFactory();
     writer = mapper.getJsonFactory().createJsonGenerator(
         output, JsonEncoding.UTF8);
     if (prettyPrint) {