src/share/classes/sun/font/FontDesignMetrics.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -168,14 +168,14 @@
* and FRC. A lot of callers use only the font so although there's code
* duplication, we allow just a font to be a key implying a default FRC.
* Also we put the references on a queue so that if they do get nulled
* out we can clear the keys from the table.
*/
- private static class KeyReference extends SoftReference
+ private static class KeyReference extends SoftReference<Object>
implements DisposerRecord, Disposer.PollDisposable {
- static ReferenceQueue queue = Disposer.getQueue();
+ static ReferenceQueue<Object> queue = Disposer.getQueue();
Object key;
KeyReference(Object key, Object value) {
super(value, queue);