Skip to content

Commit d422556

Browse files
revertt change
1 parent b77af09 commit d422556

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sootup.core/src/main/java/sootup/core/util/printer/LabeledStmtPrinter.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ public Iterable<Stmt> initializeSootMethod(@Nonnull StmtGraph<?> stmtGraph) {
113113

114114
@Nonnull
115115
public List<Stmt> getStmts(@Nonnull StmtGraph<?> stmtGraph) {
116-
final Collection<Stmt> labeledStmts = stmtGraph.getLabeledStmts();
116+
final Collection<Stmt> targetStmtsOfBranches = stmtGraph.getLabeledStmts();
117117
final List<Trap> traps = stmtGraph.buildTraps();
118118

119-
final int maxEstimatedSize = labeledStmts.size() + traps.size() * 3;
119+
final int maxEstimatedSize = targetStmtsOfBranches.size() + traps.size() * 3;
120120
labels = new HashMap<>(maxEstimatedSize, 1);
121121
references = new HashMap<>(maxEstimatedSize, 1);
122122

@@ -135,7 +135,7 @@ public List<Stmt> getStmts(@Nonnull StmtGraph<?> stmtGraph) {
135135
// Build labelStmts and refStmts -> is stmt head of a block (as its a branch target/trapHandler
136136
// or is the begin of a trap-range) or does it mark the end of a trap range
137137
// does it need a label
138-
for (Stmt stmt : labeledStmts) {
138+
for (Stmt stmt : targetStmtsOfBranches) {
139139
if (stmtGraph.isStmtBranchTarget(stmt) || trapStmts.contains(stmt)) {
140140
labelStmts.add(stmt);
141141
} else {

0 commit comments

Comments
 (0)