static <T> T valueFrom(Descriptor d, String name, OpenType<T> openType) {
Object x = d.getFieldValue(name);
if (x == null)
return null;
try {
return convertFrom(x, openType);
} catch (Exception e) {
final String msg =
"Cannot convert descriptor field " + name + " to " +
openType.getTypeName();
throw EnvHelp.initCause(new IllegalArgumentException(msg), e);
}
}
OpenMBeanAttributeInfoSupport.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:openjdk-jdk10
作者:
评论列表
文章目录