summaryrefslogtreecommitdiffstats
path: root/compatibility-server
diff options
context:
space:
mode:
Diffstat (limited to 'compatibility-server')
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/data/util/converter/StringToCollectionConverter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/data/util/converter/StringToCollectionConverter.java b/compatibility-server/src/main/java/com/vaadin/v7/data/util/converter/StringToCollectionConverter.java
index 96a35b25ab..ff4ec95b4d 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/data/util/converter/StringToCollectionConverter.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/data/util/converter/StringToCollectionConverter.java
@@ -210,9 +210,9 @@ public class StringToCollectionConverter
public Collection<?> createCollection(
Class<? extends Collection> type) {
if (type.isAssignableFrom(ArrayList.class)) {
- return new ArrayList();
+ return new ArrayList<Object>();
} else if (type.isAssignableFrom(HashSet.class)) {
- return new HashSet();
+ return new HashSet<Object>();
} else if (!type.isInterface()
&& !Modifier.isAbstract(type.getModifiers())) {
try {
@@ -221,7 +221,7 @@ public class StringToCollectionConverter
} catch (IllegalAccessException ignore) {
}
}
- return new ArrayList();
+ return new ArrayList<Object>();
}
}