gemmellr commented on code in PR #5477:
URL: https://github.com/apache/activemq-artemis/pull/5477#discussion_r1934132778
##########
artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/JsonUtil.java:
##########
@@ -56,12 +56,11 @@ public static Object[] fromJsonArray(final JsonArray
jsonArray) throws Exception
for (int i = 0; i < jsonArray.size(); i++) {
Object val = jsonArray.get(i);
- if (val instanceof JsonArray) {
- Object[] inner = fromJsonArray((JsonArray) val);
+ if (val instanceof JsonArray jsonArray1) {
+ Object[] inner = fromJsonArray(jsonArray1);
Review Comment:
```suggestion
if (val instanceof JsonArray jsonArrayValue) {
Object[] inner = fromJsonArray(jsonArrayValue);
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact