src/java.management/share/classes/javax/management/openmbean/OpenMBeanParameterInfoSupport.java
changeset 58766 54ffb15c4839
parent 47216 71c04702a3d5
equal deleted inserted replaced
58760:1f7f707c1aa9 58766:54ffb15c4839
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    56     static final long serialVersionUID = -7235016873758443122L;
    56     static final long serialVersionUID = -7235016873758443122L;
    57 
    57 
    58     /**
    58     /**
    59      * @serial The open mbean parameter's <i>open type</i>
    59      * @serial The open mbean parameter's <i>open type</i>
    60      */
    60      */
       
    61     @SuppressWarnings("serial") // Not statically typed as Serializable
    61     private OpenType<?>    openType;
    62     private OpenType<?>    openType;
    62 
    63 
    63     /**
    64     /**
    64      * @serial The open mbean parameter's default value
    65      * @serial The open mbean parameter's default value
    65      */
    66      */
       
    67     @SuppressWarnings("serial") // Not statically typed as Serializable
    66     private Object      defaultValue    = null;
    68     private Object      defaultValue    = null;
    67 
    69 
    68     /**
    70     /**
    69      * @serial The open mbean parameter's legal values. This {@link
    71      * @serial The open mbean parameter's legal values. This {@link
    70      * Set} is unmodifiable
    72      * Set} is unmodifiable
    71      */
    73      */
       
    74     @SuppressWarnings("serial") // Conditionally serializable
    72     private Set<?> legalValues     = null;  // to be constructed unmodifiable
    75     private Set<?> legalValues     = null;  // to be constructed unmodifiable
    73 
    76 
    74     /**
    77     /**
    75      * @serial The open mbean parameter's min value
    78      * @serial The open mbean parameter's min value
    76      */
    79      */
       
    80     @SuppressWarnings("serial") // Conditionally serializable
    77     private Comparable<?> minValue        = null;
    81     private Comparable<?> minValue        = null;
    78 
    82 
    79     /**
    83     /**
    80      * @serial The open mbean parameter's max value
    84      * @serial The open mbean parameter's max value
    81      */
    85      */
       
    86     @SuppressWarnings("serial") // Conditionally serializable
    82     private Comparable<?> maxValue        = null;
    87     private Comparable<?> maxValue        = null;
    83 
    88 
    84 
    89 
    85     // As this instance is immutable, these two values need only
    90     // As this instance is immutable, these two values need only
    86     // be calculated once.
    91     // be calculated once.