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 | |
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')
-rw-r--r-- | src/com/vaadin/data/util/ObjectProperty.java | 8 | ||||
-rw-r--r-- | src/com/vaadin/data/util/PropertyFormatter.java | 8 | ||||
-rw-r--r-- | src/com/vaadin/data/util/TextFileProperty.java | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/com/vaadin/data/util/ObjectProperty.java b/src/com/vaadin/data/util/ObjectProperty.java index a155b52194..6724f1d40f 100644 --- a/src/com/vaadin/data/util/ObjectProperty.java +++ b/src/com/vaadin/data/util/ObjectProperty.java @@ -41,12 +41,12 @@ public class ObjectProperty<T> implements Property, /** * Internal list of registered value change listeners. */ - private LinkedList valueChangeListeners = null; + private LinkedList<ValueChangeListener> valueChangeListeners = null; /** * Internal list of registered read-only status change listeners. */ - private LinkedList readOnlyStatusChangeListeners = null; + private LinkedList<ReadOnlyStatusChangeListener> readOnlyStatusChangeListeners = null; /** * Creates a new instance of ObjectProperty with the given value. The type @@ -300,7 +300,7 @@ public class ObjectProperty<T> implements Property, */ public void addListener(Property.ValueChangeListener listener) { if (valueChangeListeners == null) { - valueChangeListeners = new LinkedList(); + valueChangeListeners = new LinkedList<ValueChangeListener>(); } valueChangeListeners.add(listener); } @@ -313,7 +313,7 @@ public class ObjectProperty<T> implements Property, */ public void addListener(Property.ReadOnlyStatusChangeListener listener) { if (readOnlyStatusChangeListeners == null) { - readOnlyStatusChangeListeners = new LinkedList(); + readOnlyStatusChangeListeners = new LinkedList<ReadOnlyStatusChangeListener>(); } readOnlyStatusChangeListeners.add(listener); } 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); } diff --git a/src/com/vaadin/data/util/TextFileProperty.java b/src/com/vaadin/data/util/TextFileProperty.java index 9d1c8b8737..8d99112338 100644 --- a/src/com/vaadin/data/util/TextFileProperty.java +++ b/src/com/vaadin/data/util/TextFileProperty.java @@ -206,7 +206,7 @@ public class TextFileProperty implements Property, Property.ValueChangeNotifier */
public void addListener(Property.ValueChangeListener listener) {
if (valueChangeListeners == null) {
- valueChangeListeners = new LinkedList();
+ valueChangeListeners = new LinkedList<Property.ValueChangeListener>();
}
valueChangeListeners.add(listener);
}
|