aboutsummaryrefslogtreecommitdiffstats
path: root/compatibility-server
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-03-07 12:15:05 +0100
committerHenri Sara <henri.sara@gmail.com>2017-03-08 11:48:21 +0200
commit1290426ff3b3137a7afd586594d884228e9309fe (patch)
tree8c50eb2f518f3b8683d69f4ac5105ea6dd993f15 /compatibility-server
parentf467f3fa2fcfba3ade9e59b15aa28e8a76363d2c (diff)
downloadvaadin-framework-1290426ff3b3137a7afd586594d884228e9309fe.tar.gz
vaadin-framework-1290426ff3b3137a7afd586594d884228e9309fe.zip
Fix some generics warnings in Eclipse
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>();
}
}