src/java.management.rest/share/classes/com/oracle/jmx/remote/rest/http/MBeanResource.java
branchjmx-rest-api
changeset 56001 95c0323f0c1a
parent 56000 054866e5113c
child 56006 352a4f213fc6
equal deleted inserted replaced
56000:054866e5113c 56001:95c0323f0c1a
   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