src/java.base/share/classes/sun/reflect/annotation/AnnotationInvocationHandler.java
equal
deleted
inserted
replaced
39 * |
39 * |
40 * @author Josh Bloch |
40 * @author Josh Bloch |
41 * @since 1.5 |
41 * @since 1.5 |
42 */ |
42 */ |
43 class AnnotationInvocationHandler implements InvocationHandler, Serializable { |
43 class AnnotationInvocationHandler implements InvocationHandler, Serializable { |
|
44 @java.io.Serial |
44 private static final long serialVersionUID = 6182022883658399397L; |
45 private static final long serialVersionUID = 6182022883658399397L; |
45 private final Class<? extends Annotation> type; |
46 private final Class<? extends Annotation> type; |
46 private final Map<String, Object> memberValues; |
47 private final Map<String, Object> memberValues; |
47 |
48 |
48 AnnotationInvocationHandler(Class<? extends Annotation> type, Map<String, Object> memberValues) { |
49 AnnotationInvocationHandler(Class<? extends Annotation> type, Map<String, Object> memberValues) { |
601 if (type == boolean[].class) |
602 if (type == boolean[].class) |
602 return Arrays.hashCode((boolean[]) value); |
603 return Arrays.hashCode((boolean[]) value); |
603 return Arrays.hashCode((Object[]) value); |
604 return Arrays.hashCode((Object[]) value); |
604 } |
605 } |
605 |
606 |
|
607 @java.io.Serial |
606 private void readObject(java.io.ObjectInputStream s) |
608 private void readObject(java.io.ObjectInputStream s) |
607 throws java.io.IOException, ClassNotFoundException { |
609 throws java.io.IOException, ClassNotFoundException { |
608 ObjectInputStream.GetField fields = s.readFields(); |
610 ObjectInputStream.GetField fields = s.readFields(); |
609 |
611 |
610 @SuppressWarnings("unchecked") |
612 @SuppressWarnings("unchecked") |