Skip to content

Commit

Permalink
Modified exception message thrown for unknown change type
Browse files Browse the repository at this point in the history
  • Loading branch information
oannhpham committed Oct 26, 2023
1 parent 8ff8b78 commit 8eea6dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public void concreteListChange(NodeList<?> changedList, ListChangeType type, int
} else if (type == AstObserver.ListChangeType.ADDITION) {
differenceElements = LEXICAL_DIFFERENCE_CALCULATOR.calculateListAdditionDifference(findNodeListName(changedList), changedList, index, nodeAddedOrRemoved);
} else {
throw new UnsupportedOperationException("Unknown ListChangeType: " + type);
throw new UnsupportedOperationException("Unknown change type: " + type);
}
Difference difference = new Difference(differenceElements, nodeText, changedList.getParentNodeForChildren());
difference.apply();
Expand Down

0 comments on commit 8eea6dc

Please sign in to comment.