Hoist Class.getName() from String concatenation to dodge an issue related to profile pollution
This commit is contained in:
committed by
Juergen Hoeller
parent
7c84695333
commit
484006ce90
@@ -611,7 +611,9 @@ public abstract class ObjectUtils {
|
||||
if (obj == null) {
|
||||
return EMPTY_STRING;
|
||||
}
|
||||
return obj.getClass().getName() + "@" + getIdentityHexString(obj);
|
||||
String className = obj.getClass().getName();
|
||||
String identityHexString = getIdentityHexString(obj);
|
||||
return className + '@' + identityHexString;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user