summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/event
diff options
context:
space:
mode:
authorAnna Koskinen <anna@vaadin.com>2013-01-31 17:29:25 +0200
committerAnna Koskinen <anna@vaadin.com>2013-02-05 15:57:45 +0200
commit515d3c39e3a02e4dc266cac7fd6919748a10e243 (patch)
treea8c5ca2a6e2d2fe813f7827d26bc6cf7e67f6977 /server/src/com/vaadin/event
parentd597fe70a98ae356414c27d1372005023053f44c (diff)
downloadvaadin-framework-515d3c39e3a02e4dc266cac7fd6919748a10e243.tar.gz
vaadin-framework-515d3c39e3a02e4dc266cac7fd6919748a10e243.zip
Merge of (#10563) to Vaadin 7.
Use template strings and log level checks to improve performance when logging is disabled. Change-Id: I48d370f523c6361ce8704afc7a0903412b31b2a0
Diffstat (limited to 'server/src/com/vaadin/event')
-rw-r--r--server/src/com/vaadin/event/ListenerMethod.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/com/vaadin/event/ListenerMethod.java b/server/src/com/vaadin/event/ListenerMethod.java
index 16a8121901..a0ecdc4769 100644
--- a/server/src/com/vaadin/event/ListenerMethod.java
+++ b/server/src/com/vaadin/event/ListenerMethod.java
@@ -91,10 +91,10 @@ public class ListenerMethod implements EventListener, Serializable {
out.writeObject(name);
out.writeObject(paramTypes);
} catch (NotSerializableException e) {
- getLogger().warning(
- "Error in serialization of the application: Class "
- + target.getClass().getName()
- + " must implement serialization.");
+ getLogger()
+ .log(Level.WARNING,
+ "Error in serialization of the application: Class {0} must implement serialization.",
+ target.getClass().getName());
throw e;
}