summaryrefslogtreecommitdiffstats
path: root/client-compiler
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-09-28 10:39:17 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-28 11:39:17 +0300
commit7065740d6d02954c3483e2f24db36ad1af45c62e (patch)
treedb3a0f0cabb8cc3ce4a4d2636aff9bf1716fcd8b /client-compiler
parent1827ccb5ed99c9b2deeea38e239527420711f5d1 (diff)
downloadvaadin-framework-7065740d6d02954c3483e2f24db36ad1af45c62e.tar.gz
vaadin-framework-7065740d6d02954c3483e2f24db36ad1af45c62e.zip
Use interface instead of implementation (#10073)
Diffstat (limited to 'client-compiler')
-rw-r--r--client-compiler/src/main/java/com/vaadin/server/widgetsetutils/ConnectorBundleLoaderFactory.java2
-rw-r--r--client-compiler/src/main/java/com/vaadin/server/widgetsetutils/metadata/FieldProperty.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/client-compiler/src/main/java/com/vaadin/server/widgetsetutils/ConnectorBundleLoaderFactory.java b/client-compiler/src/main/java/com/vaadin/server/widgetsetutils/ConnectorBundleLoaderFactory.java
index 8ac6e8e4e7..ba27ef32da 100644
--- a/client-compiler/src/main/java/com/vaadin/server/widgetsetutils/ConnectorBundleLoaderFactory.java
+++ b/client-compiler/src/main/java/com/vaadin/server/widgetsetutils/ConnectorBundleLoaderFactory.java
@@ -538,7 +538,7 @@ public class ConnectorBundleLoaderFactory extends Generator {
+ connector.getName());
// Build map to speed up error checking
- HashMap<String, Property> stateProperties = new HashMap<>();
+ Map<String, Property> stateProperties = new HashMap<>();
JClassType stateType = ConnectorBundle
.findInheritedMethod(connector, "getState").getReturnType()
.isClassOrInterface();
diff --git a/client-compiler/src/main/java/com/vaadin/server/widgetsetutils/metadata/FieldProperty.java b/client-compiler/src/main/java/com/vaadin/server/widgetsetutils/metadata/FieldProperty.java
index a001f591c1..4099832990 100644
--- a/client-compiler/src/main/java/com/vaadin/server/widgetsetutils/metadata/FieldProperty.java
+++ b/client-compiler/src/main/java/com/vaadin/server/widgetsetutils/metadata/FieldProperty.java
@@ -73,7 +73,7 @@ public class FieldProperty extends Property {
private static List<JField> getPublicFields(JClassType type) {
Set<String> names = new HashSet<>();
- ArrayList<JField> fields = new ArrayList<>();
+ List<JField> fields = new ArrayList<>();
for (JClassType subType : type.getFlattenedSupertypeHierarchy()) {
JField[] subFields = subType.getFields();
for (JField field : subFields) {