Skip to content
Snippets Groups Projects
Commit 45548edf authored by dgelessus's avatar dgelessus
Browse files

Simplify a map iteration in Log

parent e7242139
Branches
Tags
No related merge requests found
......@@ -59,9 +59,7 @@ public class Log {
Map<String, Long> operationCount = tlcResults.getOperationCount();
List<String> opCountString = new ArrayList<>();
if (operationCount != null) {
for (String operation : operationCount.keySet()) {
opCountString.add(operation + DELIMITER + operationCount.get(operation));
}
operationCount.forEach((operation, count) -> opCountString.add(operation + DELIMITER + count));
}
fieldValues.add(!opCountString.isEmpty() ? String.join(DELIMITER, opCountString) : "");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment