From 406c50ad6cbe537ce709b8958272f93c919e9653 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Fri, 3 Aug 2012 10:26:09 +0300 Subject: [PATCH] Don't warn when same connector resource is used in multiple tabs (#9205) --- .../gwt/server/AbstractCommunicationManager.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java index 9a1a2f9c16..ba1b3cadb6 100644 --- a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java +++ b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java @@ -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); } -- 2.39.5