xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acumis...@apache.org
Subject svn commit: r707112 - /xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/modca/AbstractNamedAFPObject.java
Date Wed, 22 Oct 2008 16:12:28 GMT
Author: acumiskey
Date: Wed Oct 22 09:12:28 2008
New Revision: 707112

URL: http://svn.apache.org/viewvc?rev=707112&view=rev
Log:
Improved name truncation warning.

Modified:
    xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/modca/AbstractNamedAFPObject.java

Modified: xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/modca/AbstractNamedAFPObject.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/modca/AbstractNamedAFPObject.java?rev=707112&r1=707111&r2=707112&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/modca/AbstractNamedAFPObject.java
(original)
+++ xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/modca/AbstractNamedAFPObject.java
Wed Oct 22 09:12:28 2008
@@ -71,8 +71,10 @@
         if (name.length() < nameLen) {
             name = (name + "       ").substring(0, nameLen);
         } else if (name.length() > nameLen) {
-            log.warn("Constructor:: name truncated to " + nameLen + " chars" + name);
-            name = name.substring(0, nameLen);
+            String truncatedName = name.substring(0, nameLen);
+            log.warn("Constructor:: name '" + name + "'"
+                    + " truncated to " + nameLen + " chars"
+                    + " ('" + truncatedName + "')");
         }
         byte[] nameBytes = null;
         try {



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message