adoroszlai commented on code in PR #7676:
URL: https://github.com/apache/ozone/pull/7676#discussion_r1914519250
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMDBCheckpointServlet.java:
##########
@@ -216,12 +218,12 @@ public static Map<String, Map<Path, Path>>
normalizeExcludeList(
sstBackupDir.getOriginalDir().toString().length() + 1;
Path srcPath = Paths.get(sstBackupDir.getTmpDir().toString(),
truncateFileName(truncateLength, destPath));
- paths.computeIfAbsent(fileName.toString(), (k) -> new
HashMap<>()).put(srcPath, destPath);
+ paths.get(fileName.toString()).put(srcPath, destPath);
Review Comment:
Please assign result of `paths.computeIfAbsent` to a variable and use it
instead of `paths.get(...)`.
(Sorry if this was not clear from previous review comment.)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]