You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticbooleanisPrimitive(Class<?> type) {
returntype.isPrimitive()
|| type == String.class
|| type == Character.class
|| type == Boolean.class
|| type == Byte.class
|| type == Short.class
|| type == Integer.class
|| type == Long.class
|| type == Float.class
|| type == Double.class
|| type == Object.class;
}
Actually, String.class and other classes should not be classified in the "primitive" type, as the "simple" type better, the javax.management.openmbean.SimpleType is an example.
The text was updated successfully, but these errors were encountered:
The concrete code as below:
Actually,
String.class
and other classes should not be classified in the "primitive" type, as the "simple" type better, thejavax.management.openmbean.SimpleType
is an example.The text was updated successfully, but these errors were encountered: