From: Andreas L. Delmelle Date: Thu, 9 Jul 2015 18:37:31 +0000 (+0000) Subject: Minor tweak: avoid using standard toString() for detailed diagnostics purposes X-Git-Tag: fop-2_1~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6bd5f26e528912fdcf42255286e9d5af4905bed7;p=xmlgraphics-fop.git Minor tweak: avoid using standard toString() for detailed diagnostics purposes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1690138 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fonts/FontInfo.java b/src/java/org/apache/fop/fonts/FontInfo.java index cea7e5107..617b5a4a7 100644 --- a/src/java/org/apache/fop/fonts/FontInfo.java +++ b/src/java/org/apache/fop/fonts/FontInfo.java @@ -644,14 +644,6 @@ public class FontInfo { * Diagnostic method for logging all registered fonts to System.out. */ public void dumpAllTripletsToSystemOut() { - System.out.print(toString()); - } - - /** - * {@inheritDoc} - */ - @Override - public String toString() { SortedSet entries = new TreeSet(); for (FontTriplet triplet : this.triplets.keySet()) { String key = getInternalFontKey(triplet); @@ -662,6 +654,6 @@ public class FontInfo { for (String str : entries) { stringBuffer.append(str); } - return stringBuffer.toString(); + System.out.println(stringBuffer.toString()); } }