diff --git a/sootup.core/src/main/java/sootup/core/graph/BlockAnalysisDirection.java b/sootup.core/src/main/java/sootup/core/graph/BlockAnalysisDirection.java index 8860ab897c..f9419d5716 100644 --- a/sootup.core/src/main/java/sootup/core/graph/BlockAnalysisDirection.java +++ b/sootup.core/src/main/java/sootup/core/graph/BlockAnalysisDirection.java @@ -23,7 +23,6 @@ import java.util.Collections; import java.util.List; -import java.util.stream.Collectors; import javax.annotation.Nonnull; public enum BlockAnalysisDirection { @@ -31,11 +30,8 @@ public enum BlockAnalysisDirection { @Override @Nonnull List> getPredecessors(BasicBlock block) { - List> esuccs = - block.getExceptionalSuccessors().values().stream().collect(Collectors.toList()); - List> succs = (List>) block.getSuccessors(); - succs.addAll(esuccs); - return succs; + // todo: Blocks in PostOrderBackward contain no exceptional blocks!! + return (List>) block.getSuccessors(); } @Nonnull