In Timeline.setGraphValuePropertyId there’s:
if (clazz == Integer.class || clazz == Double.class
|| clazz == Float.class) {
ds.setValueProperty(id);
} else {
throw new IllegalArgumentException(
"The value property must be numeric.");
}
Any reason why is not:
if (Number.class.isAssignableFrom(clazz)), or something similar, with emphasys on Number, because I wanted to use a Short directly, but it may be a Byte sometimes as well