summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/data/util/converter
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2011-12-08 14:23:38 +0200
committerHenri Sara <hesara@vaadin.com>2011-12-09 10:00:00 +0200
commitdd6b138a9b457b040f93a86c71275689e2696a0f (patch)
treee3dacbe759ab2732fe155e7105399c75bdbcf729 /src/com/vaadin/data/util/converter
parent8854676a4ab9326da4d47913320c7a0e84a515ed (diff)
downloadvaadin-framework-dd6b138a9b457b040f93a86c71275689e2696a0f.tar.gz
vaadin-framework-dd6b138a9b457b040f93a86c71275689e2696a0f.zip
Use Logger for debug messages in DefaultConverterFactory.
Diffstat (limited to 'src/com/vaadin/data/util/converter')
-rw-r--r--src/com/vaadin/data/util/converter/DefaultConverterFactory.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/com/vaadin/data/util/converter/DefaultConverterFactory.java b/src/com/vaadin/data/util/converter/DefaultConverterFactory.java
index 8ddd35a2d8..f08361eec7 100644
--- a/src/com/vaadin/data/util/converter/DefaultConverterFactory.java
+++ b/src/com/vaadin/data/util/converter/DefaultConverterFactory.java
@@ -1,15 +1,19 @@
package com.vaadin.data.util.converter;
import java.util.Date;
+import java.util.logging.Logger;
public class DefaultConverterFactory implements ConverterFactory {
+ private final static Logger log = Logger
+ .getLogger(DefaultConverterFactory.class.getName());
+
public <SOURCE, TARGET> Converter<SOURCE, TARGET> createConverter(
Class<SOURCE> sourceType, Class<TARGET> targetType) {
Converter<SOURCE, TARGET> converter = findConverter(sourceType,
targetType);
if (converter != null) {
- System.out.println(getClass().getName() + " created a "
+ log.finest(getClass().getName() + " created a "
+ converter.getClass());
return converter;
}
@@ -18,14 +22,14 @@ public class DefaultConverterFactory implements ConverterFactory {
Converter<TARGET, SOURCE> reverseConverter = findConverter(targetType,
sourceType);
if (reverseConverter != null) {
- System.out.println(getClass().getName() + " created a reverse "
+ log.finest(getClass().getName() + " created a reverse "
+ reverseConverter.getClass());
return new ReverseConverter<SOURCE, TARGET>(reverseConverter);
}
- System.out.println(getClass().getName()
- + " could not find a converter for " + sourceType.getName()
- + " to " + targetType.getName() + " conversion");
+ log.finest(getClass().getName() + " could not find a converter for "
+ + sourceType.getName() + " to " + targetType.getName()
+ + " conversion");
return null;
}