]> source.dussan.org Git - vaadin-framework.git/commitdiff
Don't warn when same connector resource is used in multiple tabs (#9205)
authorLeif Åstrand <leif@vaadin.com>
Fri, 3 Aug 2012 07:26:09 +0000 (10:26 +0300)
committerLeif Åstrand <leif@vaadin.com>
Fri, 3 Aug 2012 07:26:09 +0000 (10:26 +0300)
src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java

index 9a1a2f9c16c5959e71cd562e8ebc1fb50edaa928..ba1b3cadb6e60a124e1ce3b6f0b7c8daf5989759 100644 (file)
@@ -1275,10 +1275,12 @@ public abstract class AbstractCommunicationManager implements Serializable {
             // Add to map of names accepted by serveConnectorResource
             if (connectorResourceContexts.containsKey(name)) {
                 Class<?> oldContext = connectorResourceContexts.get(name);
-                getLogger().warning(
-                        "Resource " + name + " defined by both " + context
-                                + " and " + oldContext + ". Resource from "
-                                + oldContext + " will be used.");
+                if (oldContext != context) {
+                    getLogger().warning(
+                            "Resource " + name + " defined by both " + context
+                                    + " and " + oldContext + ". Resource from "
+                                    + oldContext + " will be used.");
+                }
             } else {
                 connectorResourceContexts.put(name, context);
             }