diff options
author | Anna Koskinen <anna@vaadin.com> | 2013-01-31 17:29:25 +0200 |
---|---|---|
committer | Anna Koskinen <anna@vaadin.com> | 2013-02-05 15:57:45 +0200 |
commit | 515d3c39e3a02e4dc266cac7fd6919748a10e243 (patch) | |
tree | a8c5ca2a6e2d2fe813f7827d26bc6cf7e67f6977 /server/src/com/vaadin/event | |
parent | d597fe70a98ae356414c27d1372005023053f44c (diff) | |
download | vaadin-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.java | 8 |
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; } |