NSAmelchev commented on code in PR #11046:
URL: https://github.com/apache/ignite/pull/11046#discussion_r1425532330
##########
modules/core/src/main/java/org/apache/ignite/spi/metric/jmx/ReadOnlyDynamicMBean.java:
##########
@@ -58,12 +59,15 @@ else if ("invoke".equals(actionName))
/** {@inheritDoc} */
@Override public AttributeList getAttributes(String[] attributes) {
AttributeList list = new AttributeList();
+ List<Attribute> attrList = list.asList();
try {
for (String attr : attributes) {
Object val = getAttribute(attr);
-
- list.add(val);
+ if (val instanceof Attribute)
Review Comment:
```suggestion
if (val instanceof Attribute)
```
--
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]