diff options
author | David Gilbert <david.gilbert@object-refinery.com> | 2006-04-13 15:21:27 +0000 |
---|---|---|
committer | David Gilbert <david.gilbert@object-refinery.com> | 2006-04-13 15:21:27 +0000 |
commit | 9b4cd7a1ba5790784004c0242188da8fa471992e (patch) | |
tree | 1aa2f824207bd6f093da0552b0dee20881d15e73 /javax/swing/plaf/metal | |
parent | 76e547076b13959229e38b2ff749223c0e07adb0 (diff) | |
download | classpath-9b4cd7a1ba5790784004c0242188da8fa471992e.tar.gz |
2006-04-13 David Gilbert <david.gilbert@object-refinery.com>
* javax/swing/plaf/metal/MetalDesktopIconUI.java
(createUI): Return new instance rather than shared instance.
----------------------------------------------------------------------
Diffstat (limited to 'javax/swing/plaf/metal')
-rw-r--r-- | javax/swing/plaf/metal/MetalDesktopIconUI.java | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/javax/swing/plaf/metal/MetalDesktopIconUI.java b/javax/swing/plaf/metal/MetalDesktopIconUI.java index ecbb76e6e..0c1163a8e 100644 --- a/javax/swing/plaf/metal/MetalDesktopIconUI.java +++ b/javax/swing/plaf/metal/MetalDesktopIconUI.java @@ -1,5 +1,5 @@ /* MetalDesktopIconUI.java - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -50,10 +50,6 @@ public class MetalDesktopIconUI extends BasicDesktopIconUI { - // FIXME: maybe replace by a Map of instances when this becomes stateful - /** The shared UI instance for MetalDesktopIcons */ - private static MetalDesktopIconUI instance = null; - /** * Constructs a new instance of <code>MetalDesktopIconUI</code>. */ @@ -63,16 +59,14 @@ public class MetalDesktopIconUI } /** - * Returns a shared instance of <code>MetalDesktopIconUI</code>. + * Returns a new <code>MetalDesktopIconUI</code> instance. * - * @param component the component for which we return an UI instance + * @param component the component (ignored). * - * @return A shared instance of <code>MetalDesktopIconUI</code>. + * @return A new <code>MetalDesktopIconUI</code> instance. */ public static ComponentUI createUI(JComponent component) { - if (instance == null) - instance = new MetalDesktopIconUI(); - return instance; + return new MetalDesktopIconUI(); } } |