From b1c8641a63a67e3c64d948f9e8dce5c01e11e2dd Mon Sep 17 00:00:00 2001 From: mcentner Date: Wed, 5 May 2010 15:29:01 +0000 Subject: Merged feature branch mocca-1.2.13-id@r724 back to trunk. git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@725 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- BKUViewer/src/main/java/at/gv/egiz/bku/text/TextValidator.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'BKUViewer/src/main/java/at/gv/egiz/bku/text') diff --git a/BKUViewer/src/main/java/at/gv/egiz/bku/text/TextValidator.java b/BKUViewer/src/main/java/at/gv/egiz/bku/text/TextValidator.java index dee8ff2e..5abaed11 100644 --- a/BKUViewer/src/main/java/at/gv/egiz/bku/text/TextValidator.java +++ b/BKUViewer/src/main/java/at/gv/egiz/bku/text/TextValidator.java @@ -25,8 +25,8 @@ import java.io.UnsupportedEncodingException; import java.nio.CharBuffer; import java.nio.charset.Charset; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import at.gv.egiz.bku.viewer.ValidationException; import at.gv.egiz.bku.viewer.Validator; @@ -37,7 +37,7 @@ public class TextValidator implements Validator { /** * Logging facility. */ - protected static Log log = LogFactory.getLog(TextValidator.class); + protected static Logger log = LoggerFactory.getLogger(TextValidator.class); protected Font viewerFont; @@ -46,7 +46,7 @@ public class TextValidator implements Validator { } private void invalid(char c) throws ValidationException { - log.info("Invalid character (0x" + Integer.toHexString(c) + ") found."); + log.info("Invalid character (0x{}) found.", Integer.toHexString(c)); // TODO: localize throw new ValidationException(); } @@ -60,7 +60,7 @@ public class TextValidator implements Validator { try { reader = new InputStreamReader(is, charset); } catch (UnsupportedEncodingException e) { - log.info("Charset '" + charset + "' not supported.", e); + log.info("Charset '{}' not supported.", charset, e); // TODO: localize throw new ValidationException(e); } -- cgit v1.2.3