equal
deleted
inserted
replaced
23 * have any questions. |
23 * have any questions. |
24 */ |
24 */ |
25 |
25 |
26 package sun.awt.X11; |
26 package sun.awt.X11; |
27 |
27 |
28 import java.util.logging.*; |
28 import sun.util.logging.PlatformLogger; |
29 |
29 |
30 import java.util.*; |
30 import java.util.*; |
31 |
31 |
32 class XProtocol { |
32 class XProtocol { |
33 private final static Logger log = Logger.getLogger("sun.awt.X11.XProtocol"); |
33 private final static PlatformLogger log = PlatformLogger.getLogger("sun.awt.X11.XProtocol"); |
34 |
34 |
35 private Map<XAtom, XAtomList> atomToList = new HashMap<XAtom, XAtomList>(); |
35 private Map<XAtom, XAtomList> atomToList = new HashMap<XAtom, XAtomList>(); |
36 private Map<XAtom, Long> atomToAnchor = new HashMap<XAtom, Long>(); |
36 private Map<XAtom, Long> atomToAnchor = new HashMap<XAtom, Long>(); |
37 |
37 |
38 volatile boolean firstCheck = true; |
38 volatile boolean firstCheck = true; |
52 try { |
52 try { |
53 return protocols.contains(protocol); |
53 return protocols.contains(protocol); |
54 } finally { |
54 } finally { |
55 if (firstCheck) { |
55 if (firstCheck) { |
56 firstCheck = false; |
56 firstCheck = false; |
57 log.log(Level.FINE, "{0}:{1} supports {2}", new Object[] {this, listName, protocols}); |
57 log.fine("{0}:{1} supports {2}", this, listName, protocols); |
58 } |
58 } |
59 } |
59 } |
60 } |
60 } |
61 |
61 |
62 /* |
62 /* |