Skip to content

Commit

Permalink
HADOOP-17863. ABFS: Fix compiler deprecation warning in TextFileBased…
Browse files Browse the repository at this point in the history
…IdentityHandler (apache#3332)


Closes apache#3332 

Contributed by Sumangala Patki
  • Loading branch information
sumangala-patki authored and HarshitGupta11 committed Nov 28, 2022
1 parent db95cd4 commit 12d9847
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.LineIterator;
import org.apache.hadoop.io.IOUtils;

import static org.apache.hadoop.fs.azurebfs.constants.AbfsHttpConstants.COLON;
import static org.apache.hadoop.fs.azurebfs.constants.AbfsHttpConstants.EMPTY_STRING;
Expand Down Expand Up @@ -189,7 +190,7 @@ private static void loadMap(HashMap<String, String> cache, String fileLocation,
} catch (ArrayIndexOutOfBoundsException e) {
LOG.error("Error while parsing mapping file", e);
} finally {
LineIterator.closeQuietly(it);
IOUtils.cleanupWithLogger(LOG, it);
}
}
}

0 comments on commit 12d9847

Please sign in to comment.