summaryrefslogtreecommitdiffstats
path: root/compatibility-server
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-09-19 09:41:48 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-19 10:41:47 +0300
commit4a8195b59ef07c62a22e2f51cf49f1f2f9657638 (patch)
tree666b0eeacc411882af466eb15a5f5f59c47fe31b /compatibility-server
parent7425cef7bfbffc6cf7ba1f2142157c94273268a9 (diff)
downloadvaadin-framework-4a8195b59ef07c62a22e2f51cf49f1f2f9657638.tar.gz
vaadin-framework-4a8195b59ef07c62a22e2f51cf49f1f2f9657638.zip
Replace iterators with enhanced for loops (#10018)
This change also includes some other minor cleanup.
Diffstat (limited to 'compatibility-server')
-rw-r--r--compatibility-server/src/test/java/com/vaadin/v7/tests/VaadinClasses.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/compatibility-server/src/test/java/com/vaadin/v7/tests/VaadinClasses.java b/compatibility-server/src/test/java/com/vaadin/v7/tests/VaadinClasses.java
index fd2ae40cb5..f8667dda6f 100644
--- a/compatibility-server/src/test/java/com/vaadin/v7/tests/VaadinClasses.java
+++ b/compatibility-server/src/test/java/com/vaadin/v7/tests/VaadinClasses.java
@@ -19,7 +19,7 @@ public class VaadinClasses {
private static final Set<String> WHITE_LIST_FQNS = new HashSet<String>();
- public static List<Class<? extends Field>> getFields() {
+ public static List<Class<? extends Field<?>>> getFields() {
return getServerClasses(Field.class::isAssignableFrom)
.map(VaadinClasses::castFieldClass)
.collect(Collectors.toList());
@@ -50,8 +50,8 @@ public class VaadinClasses {
.collect(Collectors.toList());
}
- private static Class<? extends Field> castFieldClass(Class<?> clazz) {
- return (Class<? extends Field>) clazz;
+ private static Class<? extends Field<?>> castFieldClass(Class<?> clazz) {
+ return (Class<? extends Field<?>>) clazz;
}
private static Class<? extends Component> castComponentClass(