Skip to content

Commit

Permalink
callstack: Fix source code compatibility with Java 11
Browse files Browse the repository at this point in the history
Change-Id: I9420d4149c9acb0dfd29cbf7b8087e6c1b4c1186
Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass/org.eclipse.tracecompass/+/204672
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
  • Loading branch information
bhufmann committed Sep 28, 2023
1 parent 367f2d9 commit 815a558
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.function.Predicate;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.stream.Collectors;

import org.apache.commons.lang3.StringUtils;
import org.eclipse.core.runtime.IProgressMonitor;
Expand Down Expand Up @@ -406,7 +407,7 @@ private void recursivelyAddChildren(IWeightedTreeProvider<N, E, T> wtProvider, I
// Add the extra sites
List<String> extraDataSets = wtProvider.getExtraDataSets();
for (int i = 0; i < extraDataSets.size(); i++) {
List<WeightedTree<@NonNull N>> extraDataTrees = callSite.getExtraDataTrees(i).stream().sorted(fCctComparator2).toList();
List<WeightedTree<@NonNull N>> extraDataTrees = callSite.getExtraDataTrees(i).stream().sorted(fCctComparator2).collect(Collectors.toList());
if (extraDataTrees.isEmpty()) {
continue;
}
Expand Down

0 comments on commit 815a558

Please sign in to comment.