Polish ClassUtils.resolvePrimitiveClassName()
See gh-24192
This commit is contained in:
@@ -455,7 +455,7 @@ public abstract class ClassUtils {
|
||||
Class<?> result = null;
|
||||
// Most class names will be quite long, considering that they
|
||||
// SHOULD sit in a package, so a length check is worthwhile.
|
||||
if (name != null && name.length() <= 8) {
|
||||
if (name != null && name.length() <= 7) {
|
||||
// Could be a primitive - likely.
|
||||
result = primitiveTypeNameMap.get(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user