src/java.management.rest/share/classes/com/oracle/jmx/remote/rest/http/MBeanResource.java
equal
deleted
inserted
replaced
506 if (attrs == null || attrs.length == 0) { |
506 if (attrs == null || attrs.length == 0) { |
507 return result; |
507 return result; |
508 } |
508 } |
509 |
509 |
510 AttributeList attrVals = mBeanServer.getAttributes(objectName, attrs); |
510 AttributeList attrVals = mBeanServer.getAttributes(objectName, attrs); |
511 List<String> missingAttrs = Arrays.asList(attrs); |
511 List<String> missingAttrs = new ArrayList<>(Arrays.asList(attrs)); |
512 attrVals.asList().forEach(a -> { |
512 attrVals.asList().forEach(a -> { |
513 missingAttrs.remove(a.getName()); |
513 missingAttrs.remove(a.getName()); |
514 result.put(a.getName(), a.getValue()); |
514 result.put(a.getName(), a.getValue()); |
515 }); |
515 }); |
516 |
516 |