--- old/src/java.management/share/classes/com/sun/jmx/mbeanserver/DefaultMXBeanMappingFactory.java 2015-05-18 19:54:51.552747434 +0400 +++ new/src/java.management/share/classes/com/sun/jmx/mbeanserver/DefaultMXBeanMappingFactory.java 2015-05-18 19:54:51.396747434 +0400 @@ -79,44 +79,46 @@ /** *
A converter between Java types and the limited set of classes - * defined by Open MBeans.
+ * defined by Open MBeans. * - *A Java type is an instance of java.lang.reflect.Type. For our + *
A Java type is an instance of java.lang.reflect.Type. For our
* purposes, it is either a Class, such as String.class or int.class;
- * or a ParameterizedType, such as List
Each Type is associated with an DefaultMXBeanMappingFactory. The - * DefaultMXBeanMappingFactory defines an OpenType corresponding to the Type, plus a - * Java class corresponding to the OpenType. For example:
+ *Each Type is associated with an DefaultMXBeanMappingFactory. The + * DefaultMXBeanMappingFactory defines an + * OpenType corresponding to the Type, plus a + * Java class corresponding to the OpenType. For example: * - *
+ ** *{@code * Type Open class OpenType * ---- ---------- -------- - * Integer Integer SimpleType.INTEGER - * int int SimpleType.INTEGER - * Integer[] Integer[] ArrayType(1, SimpleType.INTEGER) - * int[] Integer[] ArrayType(SimpleType.INTEGER, true) - * String[][] String[][] ArrayType(2, SimpleType.STRING) - * List+ * }String[] ArrayType(1, SimpleType.STRING) + * Integer Integer SimpleType.INTEGER + * int int SimpleType.INTEGER + * Integer[] Integer[] ArrayType(1, SimpleType.INTEGER) + * int[] Integer[] ArrayType(SimpleType.INTEGER, true) + * String[][] String[][] ArrayType(2, SimpleType.STRING) + * List String[] ArrayType(1, SimpleType.STRING) * ThreadState (an Enum) String SimpleType.STRING - * Map TabularData TabularType( + * Map TabularData TabularType( * CompositeType( * {"key", SimpleType.INTEGER}, * {"value", * ArrayType(1, * SimpleType.STRING)}), * indexNames={"key"}) - *
Apart from simple types, arrays, and collections, Java types are * converted through introspection into CompositeType. The Java type * must have at least one getter (method such as "int getSize()" or * "boolean isBig()"), and we must be able to deduce how to * reconstruct an instance of the Java class from the values of the - * getters using one of various heuristics.
+ * getters using one of various heuristics. * - * @since 1.6 + * @since 1.6 */ public class DefaultMXBeanMappingFactory extends MXBeanMappingFactory { static abstract class NonNullMXBeanMapping extends MXBeanMapping { @@ -148,8 +150,8 @@ throws OpenDataException; /** - *True if and only if this MXBeanMapping's toOpenValue and - * fromOpenValue methods are the identity function.
+ * True if and only if this MXBeanMapping's toOpenValue and + * fromOpenValue methods are the identity function. */ boolean isIdentity() { return false;