diff options
author | Henri Sara <henri.sara@itmill.com> | 2009-05-25 11:17:52 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2009-05-25 11:17:52 +0000 |
commit | 0f3e18635c4525538cfebc7dd8ef448be8a2f4c6 (patch) | |
tree | 8819e1c778cd3b2c8f02d132fd0883fec5235f75 /src/com/vaadin/demo/reservation/CalendarField.java | |
parent | 798d35b70d615bbb30a45b0280712ad0b528d2c1 (diff) | |
download | vaadin-framework-0f3e18635c4525538cfebc7dd8ef448be8a2f4c6.tar.gz vaadin-framework-0f3e18635c4525538cfebc7dd8ef448be8a2f4c6.zip |
#2643 more fixing of demo warnings
svn changeset:7987/svn branch:6.0
Diffstat (limited to 'src/com/vaadin/demo/reservation/CalendarField.java')
-rw-r--r-- | src/com/vaadin/demo/reservation/CalendarField.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/vaadin/demo/reservation/CalendarField.java b/src/com/vaadin/demo/reservation/CalendarField.java index f555c83228..2af0f1ed71 100644 --- a/src/com/vaadin/demo/reservation/CalendarField.java +++ b/src/com/vaadin/demo/reservation/CalendarField.java @@ -126,19 +126,19 @@ public class CalendarField extends DateField implements Container.Viewer { // Check old propertyIds
if (itemEndPropertyId != null) {
- final Class c = dataSource.getType(itemEndPropertyId);
+ final Class<?> c = dataSource.getType(itemEndPropertyId);
if (!Date.class.isAssignableFrom(c)) {
itemEndPropertyId = null;
}
}
if (itemNotimePropertyId != null) {
- final Class c = dataSource.getType(itemNotimePropertyId);
+ final Class<?> c = dataSource.getType(itemNotimePropertyId);
if (!Boolean.class.isAssignableFrom(c)) {
itemNotimePropertyId = null;
}
}
if (itemStartPropertyId != null) {
- final Class c = dataSource.getType(itemStartPropertyId);
+ final Class<?> c = dataSource.getType(itemStartPropertyId);
if (Date.class.isAssignableFrom(c)) {
// All we _really_ need is one date
return true;
@@ -147,10 +147,10 @@ public class CalendarField extends DateField implements Container.Viewer { }
}
// We need at least one Date
- final Collection ids = dataSource.getContainerPropertyIds();
- for (final Iterator it = ids.iterator(); it.hasNext();) {
+ final Collection<?> ids = dataSource.getContainerPropertyIds();
+ for (final Iterator<?> it = ids.iterator(); it.hasNext();) {
final Object id = it.next();
- final Class c = dataSource.getType(id);
+ final Class<?> c = dataSource.getType(id);
if (Date.class.isAssignableFrom(c)) {
itemStartPropertyId = id;
return true;
@@ -257,7 +257,7 @@ public class CalendarField extends DateField implements Container.Viewer { month = ((Date) value).getMonth();
}
- for (final Iterator it = dataSource.getItemIds().iterator(); it
+ for (final Iterator<?> it = dataSource.getItemIds().iterator(); it
.hasNext();) {
final Object itemId = it.next();
final Item item = dataSource.getItem(itemId);
|