summaryrefslogtreecommitdiff
path: root/javax/swing/AbstractAction.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/AbstractAction.java')
-rw-r--r--javax/swing/AbstractAction.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/javax/swing/AbstractAction.java b/javax/swing/AbstractAction.java
index da65bdd1d..bd3167e1e 100644
--- a/javax/swing/AbstractAction.java
+++ b/javax/swing/AbstractAction.java
@@ -79,7 +79,7 @@ public abstract class AbstractAction
*/
public AbstractAction()
{
- this(""); // TODO: default name
+ this(null);
}
/**
@@ -90,7 +90,7 @@ public abstract class AbstractAction
*/
public AbstractAction(String name)
{
- this(name, null); // TODO: default icon??
+ this(name, null);
}
/**
@@ -174,7 +174,7 @@ public abstract class AbstractAction
public void putValue(String key, Object value)
{
Object old = getValue(key);
- if (old != value)
+ if (old == null || !old.equals(value))
{
store.put(key, value);
firePropertyChange(key, old, value);