-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Open
Milestone
Description
The concrete code as below:
public static boolean isPrimitive(Class<?> type) {
return type.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.
Metadata
Metadata
Assignees
Labels
No labels