]> source.dussan.org Git - vaadin-framework.git/commitdiff
Use cache when reading declarative format (#16572)
authorArtur Signell <artur@vaadin.com>
Wed, 4 Feb 2015 12:54:48 +0000 (14:54 +0200)
committerArtur Signell <artur@vaadin.com>
Wed, 4 Feb 2015 20:23:35 +0000 (20:23 +0000)
Change-Id: I313ff4e88e13a9c160a4717a40cb13352a30bd6b

server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java

index 57a54cb9d8209dfb6637542a775079c6ff02bdf9..215afd50412e5029c82f074aab211de4e331b7ae 100644 (file)
@@ -154,7 +154,7 @@ public class DesignAttributeHandler implements Serializable {
         if (clazz == null) {
             throw new IllegalArgumentException("The clazz can not be null");
         }
-        if (cache.containsKey(clazz.getCanonicalName())) {
+        if (cache.containsKey(clazz)) {
             // NO-OP
             return;
         }
@@ -427,4 +427,4 @@ public class DesignAttributeHandler implements Serializable {
         }
     }
 
-}
\ No newline at end of file
+}