jdk/src/share/classes/java/awt/AttributeValue.java
changeset 3938 ef327bd847c0
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
3934:487e1aa949c4 3938:ef327bd847c0
    23  * have any questions.
    23  * have any questions.
    24  */
    24  */
    25 
    25 
    26 package java.awt;
    26 package java.awt;
    27 
    27 
    28 import java.util.logging.*;
    28 import sun.util.logging.PlatformLogger;
    29 
    29 
    30 abstract class AttributeValue {
    30 abstract class AttributeValue {
    31     private static final Logger log = Logger.getLogger("java.awt.AttributeValue");
    31     private static final PlatformLogger log = PlatformLogger.getLogger("java.awt.AttributeValue");
    32 
       
    33     private final int value;
    32     private final int value;
    34     private final String[] names;
    33     private final String[] names;
    35 
    34 
    36     protected AttributeValue(int value, String[] names) {
    35     protected AttributeValue(int value, String[] names) {
    37         if (log.isLoggable(Level.FINEST)) {
    36         if (log.isLoggable(PlatformLogger.FINEST)) {
    38             log.log(Level.FINEST, "value = " + value + ", names = " + names);
    37             log.finest("value = " + value + ", names = " + names);
    39         }
    38         }
    40         if (log.isLoggable(Level.FINER)) {
    39 
       
    40         if (log.isLoggable(PlatformLogger.FINER)) {
    41             if ((value < 0) || (names == null) || (value >= names.length)) {
    41             if ((value < 0) || (names == null) || (value >= names.length)) {
    42                 log.log(Level.FINER, "Assertion failed");
    42                 log.finer("Assertion failed");
    43             }
    43             }
    44         }
    44         }
    45         this.value = value;
    45         this.value = value;
    46         this.names = names;
    46         this.names = names;
    47     }
    47     }