diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-09-28 10:39:17 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-28 11:39:17 +0300 |
commit | 7065740d6d02954c3483e2f24db36ad1af45c62e (patch) | |
tree | db3a0f0cabb8cc3ce4a4d2636aff9bf1716fcd8b /testbench-api/src/main/java | |
parent | 1827ccb5ed99c9b2deeea38e239527420711f5d1 (diff) | |
download | vaadin-framework-7065740d6d02954c3483e2f24db36ad1af45c62e.tar.gz vaadin-framework-7065740d6d02954c3483e2f24db36ad1af45c62e.zip |
Use interface instead of implementation (#10073)
Diffstat (limited to 'testbench-api/src/main/java')
-rw-r--r-- | testbench-api/src/main/java/com/vaadin/testbench/elements/NotificationElement.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testbench-api/src/main/java/com/vaadin/testbench/elements/NotificationElement.java b/testbench-api/src/main/java/com/vaadin/testbench/elements/NotificationElement.java index e624c94623..6ba2a0f339 100644 --- a/testbench-api/src/main/java/com/vaadin/testbench/elements/NotificationElement.java +++ b/testbench-api/src/main/java/com/vaadin/testbench/elements/NotificationElement.java @@ -77,7 +77,7 @@ public class NotificationElement extends AbstractElement { // the notification // To get type we search for css rules which represent notification type // This map maps css style rule to type of a notification - HashMap<String, String> styleToTypeMap = initStyleToTypeMap(); + Map<String, String> styleToTypeMap = initStyleToTypeMap(); for (Map.Entry<String, String> entry : styleToTypeMap.entrySet()) { String notifType = entry.getKey(); // Check notification has css style which describes notification @@ -89,8 +89,8 @@ public class NotificationElement extends AbstractElement { return ""; } - private HashMap<String, String> initStyleToTypeMap() { - HashMap<String, String> styleToType = new HashMap<String, String>(); + private Map<String, String> initStyleToTypeMap() { + Map<String, String> styleToType = new HashMap<String, String>(); styleToType.put("v-Notification-error", "error"); styleToType.put("v-Notification-warning", "warning"); styleToType.put("v-Notification-humanized", "humanized"); |