diff options
author | Mikael Grankvist <mgrankvi@vaadin.com> | 2013-01-08 09:07:53 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-02-28 09:26:27 +0000 |
commit | aa42551d80088583a2063a596dc1099b669ee9cb (patch) | |
tree | ac864874fe645606dbbf9ea95793ea0da82b7e6e /server/src/com/vaadin/data/util/AbstractProperty.java | |
parent | 51fcdd88c1928c7c2537827e1a224fe171d492a9 (diff) | |
download | vaadin-framework-aa42551d80088583a2063a596dc1099b669ee9cb.tar.gz vaadin-framework-aa42551d80088583a2063a596dc1099b669ee9cb.zip |
(#10563) Logging now uses parameters.
Change-Id: Icc807cc2eb391fb0118800383fc93d1e23b04570
Diffstat (limited to 'server/src/com/vaadin/data/util/AbstractProperty.java')
-rw-r--r-- | server/src/com/vaadin/data/util/AbstractProperty.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/server/src/com/vaadin/data/util/AbstractProperty.java b/server/src/com/vaadin/data/util/AbstractProperty.java index 9eafca6051..499421a8b4 100644 --- a/server/src/com/vaadin/data/util/AbstractProperty.java +++ b/server/src/com/vaadin/data/util/AbstractProperty.java @@ -18,6 +18,7 @@ package com.vaadin.data.util; import java.util.Collection; import java.util.Collections; import java.util.LinkedList; +import java.util.logging.Level; import java.util.logging.Logger; import com.vaadin.data.Property; @@ -81,11 +82,11 @@ public abstract class AbstractProperty<T> implements Property<T>, @Override public String toString() { getLogger() - .warning( - "You are using Property.toString() instead of getValue() to get the value for a " - + getClass().getSimpleName() - + ". This will not be supported starting from Vaadin 7.1 " - + "(your debugger might call toString() and cause this message to appear)."); + .log(Level.WARNING, + "You are using Property.toString() instead of getValue() to get the value for a {0}." + + "This will not be supported starting from Vaadin 7.1 " + + "(your debugger might call toString() and cause this message to appear).", + getClass().getSimpleName()); T v = getValue(); if (v == null) { return null; |