gnodet opened a new pull request, #22972:
URL: https://github.com/apache/camel/pull/22972

   [CAMEL-23426](https://issues.apache.org/jira/browse/CAMEL-23426)
   
   ## Summary
   
   - Consistently use `JsonArray` instead of `ArrayList` for JSON array values 
in dev console responses
   - Fixes `ClassCastException` when consumers (such as `DiagramDevConsole` in 
#22958) cast the collection to `JsonArray`
   - Updated 19 console classes and 1 test class in `core/camel-console`
   - Also fixes helper methods (`ConsoleHelper.loadSourceAsJson`, 
`RouteDumpDevConsole.xmlLoadSourceAsJson`/`yamlLoadSourceAsJson`, 
`RouteStructureDevConsole.dumpAsJSon`, etc.) to return `JsonArray` instead of 
`List<JsonObject>`
   
   ## Test plan
   
   - [x] All 121 existing `camel-console` tests pass
   - [x] Code formatted with `mvn formatter:format impsort:sort`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to