Skip to content

Commit

Permalink
Fixed ClassCastException in JsonFormatterProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
salmonb committed Mar 14, 2024
1 parent 14612db commit 7c61827
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ static StringBuilder appendNativeElement(Object element, StringBuilder sb) {
if (element instanceof ReadOnlyAstNode) {
ReadOnlyAstNode node = (ReadOnlyAstNode) element;
if (node.isObject())
return appendJsonObject((AstObject) node, sb);
return appendJsonArray((AstArray) node, sb);
return appendJsonObject((ReadOnlyAstObject) node, sb);
return appendJsonArray((ReadOnlyAstArray) node, sb);
}
return sb.append(element);
}
Expand Down

0 comments on commit 7c61827

Please sign in to comment.