improve classloader hash string.

This commit is contained in:
hengyunabc
2019-09-24 16:41:35 +08:00
parent 799b2a617a
commit 0eff92a539
@@ -49,7 +49,7 @@ public class ClassLoaderUtils {
if (hashCode <= 0) {
hashCode = System.identityHashCode(classLoader);
if (hashCode < 0) {
hashCode = -hashCode;
hashCode = hashCode & Integer.MAX_VALUE;
}
}
return Integer.toHexString(hashCode);