]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Minor tweak: avoid using standard toString() for detailed diagnostics purposes
authorAndreas L. Delmelle <adelmelle@apache.org>
Thu, 9 Jul 2015 18:37:31 +0000 (18:37 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Thu, 9 Jul 2015 18:37:31 +0000 (18:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1690138 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fonts/FontInfo.java

index cea7e5107b432f2e1a60355ccf5b87c4ab4d6f3b..617b5a4a7423119d448985b94136642f9ded8801 100644 (file)
@@ -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<String> entries = new TreeSet<String>();
         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());
     }
 }