diff options
author | Artur Signell <artur.signell@itmill.com> | 2009-12-15 09:06:05 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2009-12-15 09:06:05 +0000 |
commit | 4299e0e07c2f6e84e7c0071d1e4e7a0eea86fb46 (patch) | |
tree | b86effed6261cd73092fd40fc1c9843cc1162832 /src/com/vaadin/data/util | |
parent | a49a419ed21071d32836212f06f79ccedabc78ae (diff) | |
download | vaadin-framework-4299e0e07c2f6e84e7c0071d1e4e7a0eea86fb46.tar.gz vaadin-framework-4299e0e07c2f6e84e7c0071d1e4e7a0eea86fb46.zip |
Added generics from Container interface
svn changeset:10302/svn branch:6.2
Diffstat (limited to 'src/com/vaadin/data/util')
6 files changed, 10 insertions, 16 deletions
diff --git a/src/com/vaadin/data/util/BeanItemContainer.java b/src/com/vaadin/data/util/BeanItemContainer.java index 10d3525581..7848de5eed 100644 --- a/src/com/vaadin/data/util/BeanItemContainer.java +++ b/src/com/vaadin/data/util/BeanItemContainer.java @@ -251,8 +251,7 @@ public class BeanItemContainer<BT> implements Indexed, Sortable, Filterable, } } - @SuppressWarnings("unchecked") - public boolean addContainerProperty(Object propertyId, Class type, + public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException { throw new UnsupportedOperationException(); } diff --git a/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java b/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java index 4188591014..e0c1324553 100644 --- a/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java +++ b/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java @@ -510,7 +510,7 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical, * @throws UnsupportedOperationException * if the addContainerProperty is not supported. */ - public boolean addContainerProperty(Object propertyId, Class type, + public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException { return container.addContainerProperty(propertyId, type, defaultValue); diff --git a/src/com/vaadin/data/util/ContainerOrderedWrapper.java b/src/com/vaadin/data/util/ContainerOrderedWrapper.java index 0d4600caab..44bd6a8653 100644 --- a/src/com/vaadin/data/util/ContainerOrderedWrapper.java +++ b/src/com/vaadin/data/util/ContainerOrderedWrapper.java @@ -299,7 +299,7 @@ public class ContainerOrderedWrapper implements Container.Ordered, * @return <code>true</code> if the operation succeeded, <code>false</code> * if not */ - public boolean addContainerProperty(Object propertyId, Class type, + public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException { return container.addContainerProperty(propertyId, type, defaultValue); @@ -511,8 +511,7 @@ public class ContainerOrderedWrapper implements Container.Ordered, /* * (non-Javadoc) * - * @see - * com.vaadin.data.Container.Ordered#addItemAfter(java.lang.Object, + * @see com.vaadin.data.Container.Ordered#addItemAfter(java.lang.Object, * java.lang.Object) */ public Item addItemAfter(Object previousItemId, Object newItemId) @@ -537,8 +536,7 @@ public class ContainerOrderedWrapper implements Container.Ordered, /* * (non-Javadoc) * - * @see - * com.vaadin.data.Container.Ordered#addItemAfter(java.lang.Object) + * @see com.vaadin.data.Container.Ordered#addItemAfter(java.lang.Object) */ public Object addItemAfter(Object previousItemId) throws UnsupportedOperationException { diff --git a/src/com/vaadin/data/util/FilesystemContainer.java b/src/com/vaadin/data/util/FilesystemContainer.java index 3c8fcac92f..126e2237dd 100644 --- a/src/com/vaadin/data/util/FilesystemContainer.java +++ b/src/com/vaadin/data/util/FilesystemContainer.java @@ -828,11 +828,10 @@ public class FilesystemContainer implements Container.Hierarchical { /* * (non-Javadoc) * - * @see - * com.vaadin.data.Container#addContainerProperty(java.lang.Object, + * @see com.vaadin.data.Container#addContainerProperty(java.lang.Object, * java.lang.Class, java.lang.Object) */ - public boolean addContainerProperty(Object propertyId, Class type, + public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException { throw new UnsupportedOperationException( "File system container does not support this operation"); @@ -882,9 +881,7 @@ public class FilesystemContainer implements Container.Hierarchical { /* * (non-Javadoc) * - * @see - * com.vaadin.data.Container#removeContainerProperty(java.lang.Object - * ) + * @see com.vaadin.data.Container#removeContainerProperty(java.lang.Object ) */ public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException { diff --git a/src/com/vaadin/data/util/IndexedContainer.java b/src/com/vaadin/data/util/IndexedContainer.java index 609f488938..c61b16bada 100644 --- a/src/com/vaadin/data/util/IndexedContainer.java +++ b/src/com/vaadin/data/util/IndexedContainer.java @@ -235,7 +235,7 @@ public class IndexedContainer implements Container.Indexed, * @see com.vaadin.data.Container#addContainerProperty(java.lang.Object, * java.lang.Class, java.lang.Object) */ - public boolean addContainerProperty(Object propertyId, Class type, + public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) { // Fails, if nulls are given diff --git a/src/com/vaadin/data/util/QueryContainer.java b/src/com/vaadin/data/util/QueryContainer.java index 1598d28ed8..96788947a9 100644 --- a/src/com/vaadin/data/util/QueryContainer.java +++ b/src/com/vaadin/data/util/QueryContainer.java @@ -341,7 +341,7 @@ public class QueryContainer implements Container, Container.Ordered, * @throws UnsupportedOperationException * if the addContainerProperty method is not supported. */ - public boolean addContainerProperty(Object propertyId, Class type, + public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException { throw new UnsupportedOperationException(); } |