for (int i = 0; i < fromTypes.length; i++) {
Class fromType = fromTypes[i];
if (!fromType.equals(Short.class) && !fromType.equals(Short.TYPE)) {
String fromName = (fromType.isPrimitive()) ? getKeyForClass(fromType, null) : fromType.getName();
map.put(new Pair(fromName, SHORT_TYPE), new NumberToShortConverter(numberFormat, fromType, true));
map.put(new Pair(fromName, Short.class.getName()), new NumberToShortConverter(numberFormat, fromType, false));
}
}
}