src/java.base/share/classes/sun/reflect/annotation/AnnotationInvocationHandler.java
changeset 57956 e0b8b019d2f5
parent 55387 761b86d5563d
child 58520 e036ee8bae56
equal deleted inserted replaced
57955:18863bf3501f 57956:e0b8b019d2f5
    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")