diff options
author | Henri Sara <hesara@vaadin.com> | 2011-11-11 13:11:01 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2011-11-11 13:11:01 +0200 |
commit | 59ae905a8a9bb1a17617070e79400461a8ac466d (patch) | |
tree | 1771707716decca7bf5ec4273dc0f805930c0c96 /src/com/vaadin/data/util/AbstractBeanContainer.java | |
parent | 0c8614963b26ab055762e930a6338426b3087015 (diff) | |
download | vaadin-framework-59ae905a8a9bb1a17617070e79400461a8ac466d.tar.gz vaadin-framework-59ae905a8a9bb1a17617070e79400461a8ac466d.zip |
Eliminate more Field and Property related raw type warnings.
Eliminate some more warnings for use of raw types (Field, Property,
Class), mostly by changing API method return types.
Diffstat (limited to 'src/com/vaadin/data/util/AbstractBeanContainer.java')
-rw-r--r-- | src/com/vaadin/data/util/AbstractBeanContainer.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/vaadin/data/util/AbstractBeanContainer.java b/src/com/vaadin/data/util/AbstractBeanContainer.java index 4e5cb182b2..a562edf8a6 100644 --- a/src/com/vaadin/data/util/AbstractBeanContainer.java +++ b/src/com/vaadin/data/util/AbstractBeanContainer.java @@ -104,7 +104,8 @@ public abstract class AbstractBeanContainer<IDTYPE, BEANTYPE> extends + " not found"); } try { - Property<IDTYPE> property = pd.createProperty(bean); + Property<IDTYPE> property = (Property<IDTYPE>) pd + .createProperty(bean); return property.getValue(); } catch (MethodException e) { throw new IllegalArgumentException(e); @@ -256,7 +257,7 @@ public abstract class AbstractBeanContainer<IDTYPE, BEANTYPE> extends * @see com.vaadin.data.Container#getContainerProperty(java.lang.Object, * java.lang.Object) */ - public Property getContainerProperty(Object itemId, Object propertyId) { + public Property<?> getContainerProperty(Object itemId, Object propertyId) { Item item = getItem(itemId); if (item == null) { return null; @@ -371,7 +372,7 @@ public abstract class AbstractBeanContainer<IDTYPE, BEANTYPE> extends * The id of the property */ private void addValueChangeListener(Item item, Object propertyId) { - Property property = item.getItemProperty(propertyId); + Property<?> property = item.getItemProperty(propertyId); if (property instanceof ValueChangeNotifier) { // avoid multiple notifications for the same property if // multiple filters are in use @@ -390,7 +391,7 @@ public abstract class AbstractBeanContainer<IDTYPE, BEANTYPE> extends * The id of the property */ private void removeValueChangeListener(Item item, Object propertyId) { - Property property = item.getItemProperty(propertyId); + Property<?> property = item.getItemProperty(propertyId); if (property instanceof ValueChangeNotifier) { ((ValueChangeNotifier) property).removeListener(this); } |