From 8144d5e1aefcc8549b8f741b8577be45d806335b Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Mon, 23 May 2011 19:25:30 +0000 Subject: [PATCH] Avoid a System.out call, replace with logging git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1126674 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/record/HyperlinkRecord.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java b/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java index ed7fee1fd..18355b31d 100644 --- a/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java +++ b/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java @@ -27,6 +27,8 @@ import org.apache.poi.util.HexRead; import org.apache.poi.util.LittleEndianByteArrayInputStream; import org.apache.poi.util.LittleEndianInput; import org.apache.poi.util.LittleEndianOutput; +import org.apache.poi.util.POILogFactory; +import org.apache.poi.util.POILogger; import org.apache.poi.util.StringUtil; /** @@ -39,6 +41,7 @@ import org.apache.poi.util.StringUtil; */ public final class HyperlinkRecord extends StandardRecord { public final static short sid = 0x01B8; + private POILogger logger = POILogFactory.getLogger(getClass()); static final class GUID { /* @@ -525,7 +528,10 @@ public final class HyperlinkRecord extends StandardRecord { } if (in.remaining() > 0) { - System.out.println(HexDump.toHex(in.readRemainder())); + logger.log(POILogger.WARN, + "Hyperlink data remains: " + in.remaining() + + " : " +HexDump.toHex(in.readRemainder()) + ); } }