diff options
author | Henri Sara <henri.sara@itmill.com> | 2010-10-01 13:15:07 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2010-10-01 13:15:07 +0000 |
commit | 3920a67152b4e6ccaa61c4556a2c9207b2161d9f (patch) | |
tree | de75b1cc981cdfc5f8a3a2c592b2207ce1c0f859 /src/com/vaadin/data/util/PropertyFormatter.java | |
parent | 98ef22cc78d3da53b2a3cc81069896c7e0b931d4 (diff) | |
download | vaadin-framework-3920a67152b4e6ccaa61c4556a2c9207b2161d9f.tar.gz vaadin-framework-3920a67152b4e6ccaa61c4556a2c9207b2161d9f.zip |
#5692 Generics and warnings cleanup : listener lists in some data utility classes
svn changeset:15297/svn branch:6.5
Diffstat (limited to 'src/com/vaadin/data/util/PropertyFormatter.java')
-rw-r--r-- | src/com/vaadin/data/util/PropertyFormatter.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/vaadin/data/util/PropertyFormatter.java b/src/com/vaadin/data/util/PropertyFormatter.java index df2a2e47f3..5277473665 100644 --- a/src/com/vaadin/data/util/PropertyFormatter.java +++ b/src/com/vaadin/data/util/PropertyFormatter.java @@ -43,12 +43,12 @@ public abstract class PropertyFormatter implements Property, /** * Internal list of registered value change listeners. */ - private LinkedList valueChangeListeners = null; + private LinkedList<Property.ValueChangeListener> valueChangeListeners = null; /** * Internal list of registered read-only status change listeners. */ - private LinkedList readOnlyStatusChangeListeners = null; + private LinkedList<Property.ReadOnlyStatusChangeListener> readOnlyStatusChangeListeners = null; /** Datasource that stores the actual value. */ Property dataSource; @@ -316,7 +316,7 @@ public abstract class PropertyFormatter implements Property, */ public void addListener(Property.ValueChangeListener listener) { if (valueChangeListeners == null) { - valueChangeListeners = new LinkedList(); + valueChangeListeners = new LinkedList<Property.ValueChangeListener>(); } valueChangeListeners.add(listener); } @@ -329,7 +329,7 @@ public abstract class PropertyFormatter implements Property, */ public void addListener(Property.ReadOnlyStatusChangeListener listener) { if (readOnlyStatusChangeListeners == null) { - readOnlyStatusChangeListeners = new LinkedList(); + readOnlyStatusChangeListeners = new LinkedList<Property.ReadOnlyStatusChangeListener>(); } readOnlyStatusChangeListeners.add(listener); } |