Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ private Cost checkInitializationOfElements(IType type, Cost worstCost) throws DO
if (cost.compareTo(worstCost) > 0) {
worstCost = cost;
}

if (fIndex > fInitializers.length) {
// Already checked default-initialization, short-circuit now
// as worst cost will no longer change
break;
}
}
}
}
Expand Down
Loading