Commit 8fc0ea4 duke
committed Apr 20, 2022
File tree 1 file changed +1
-10
lines changed
src/java.base/share/classes/sun/reflect/annotation
1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -666,7 +666,7 @@ private void readObject(java.io.ObjectInputStream s)
666
666
if (!(memberType .isInstance (value ) ||
667
667
value instanceof ExceptionProxy )) {
668
668
value = new AnnotationTypeMismatchExceptionProxy (
669
- objectToString (value ))
669
+ Objects . toIdentityString (value ))
670
670
.setMember (annotationType .members ().get (name ));
671
671
}
672
672
}
@@ -677,15 +677,6 @@ private void readObject(java.io.ObjectInputStream s)
677
677
UnsafeAccessor .setMemberValues (this , mv );
678
678
}
679
679
680
- /*
681
- * Create a textual representation of the argument without calling
682
- * any overridable methods of the argument.
683
- */
684
- private static String objectToString (Object value ) {
685
- return value .getClass ().getName () + "@" +
686
- Integer .toHexString (System .identityHashCode (value ));
687
- }
688
-
689
680
private static class UnsafeAccessor {
690
681
private static final jdk .internal .misc .Unsafe unsafe
691
682
= jdk .internal .misc .Unsafe .getUnsafe ();
You can’t perform that action at this time.
0 commit comments