pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1707567 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java
Date Thu, 08 Oct 2015 15:18:01 GMT
Author: tilman
Date: Thu Oct  8 15:18:00 2015
New Revision: 1707567

URL: http://svn.apache.org/viewvc?rev=1707567&view=rev
Log:
PDFBOX-2852: show actual type in toString(), this allows to know see difference between COSStream
and COSDictionary in logging

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java?rev=1707567&r1=1707566&r2=1707567&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java Thu Oct  8
15:18:00 2015
@@ -1436,7 +1436,8 @@ public class COSDictionary extends COSBa
     @Override
     public String toString()
     {
-        StringBuilder retVal = new StringBuilder("COSDictionary{");
+        StringBuilder retVal = new StringBuilder(getClass().getSimpleName());
+        retVal.append("{");
         for (COSName key : items.keySet())
         {
             retVal.append("(");



Mime
View raw message