equal
deleted
inserted
replaced
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 } |