jdk/src/share/classes/sun/font/FontDesignMetrics.java
changeset 4252 0e645080f74b
parent 3928 be186a33df9b
child 5506 202f599c92aa
equal deleted inserted replaced
4251:7d3154406018 4252:0e645080f74b
   169      * duplication, we allow just a font to be a key implying a default FRC.
   169      * duplication, we allow just a font to be a key implying a default FRC.
   170      * Also we put the references on a queue so that if they do get nulled
   170      * Also we put the references on a queue so that if they do get nulled
   171      * out we can clear the keys from the table.
   171      * out we can clear the keys from the table.
   172      */
   172      */
   173     private static class KeyReference extends SoftReference
   173     private static class KeyReference extends SoftReference
   174         implements DisposerRecord {
   174         implements DisposerRecord, Disposer.PollDisposable {
   175 
   175 
   176         static ReferenceQueue queue = Disposer.getQueue();
   176         static ReferenceQueue queue = Disposer.getQueue();
   177 
   177 
   178         Object key;
   178         Object key;
   179 
   179