We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97433b8 commit 2878951Copy full SHA for 2878951
1 file changed
src/main/java/org/variantsync/diffdetective/variation/diff/transform/EliminateEmptyAlternatives.java
@@ -83,7 +83,7 @@ private static void elim(VariationTreeNode<DiffLinesLabel> subtree) {
83
}
84
// When there is exactly one child and that child is an 'else' or 'elif' we can simplify that nesting.
85
else if (children.size() == 1) {
86
- final VariationTreeNode<DiffLinesLabel> child = children.getFirst();
+ final VariationTreeNode<DiffLinesLabel> child = children.get(0);
87
88
if ((subtree.isIf() || subtree.isElif()) && (child.isElif() || child.isElse())) {
89
// determine new feaure mapping
0 commit comments