Description
} else if (isSupportedCollectionOrArray(value.getClass())) { // ignoring arrrays for a moment List<Object> theValues = null; if (value.getClass().isArray()) { theValues = Arrays.asList(value); } else { theValues = CastUtils.cast((List<?>)value); } values.put(propertyName, theValues); } else { fillInValuesFromBean(value, propertyName, values); }
theValues = CastUtils.cast((List<?>)value); limits us to use only Lists in beans used as query params, while any type of collection could be fine(Set for example).