Polish ClassUtils.resolvePrimitiveClassName()

See gh-24192
This commit is contained in:
Sam Brannen
2019-12-13 15:47:05 +01:00
parent 09b6730f3d
commit 49ddf798e0
2 changed files with 25 additions and 1 deletions

View File

@@ -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);
}