poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1145375 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java
Date Mon, 11 Jul 2011 21:58:21 GMT
Author: sergey
Date: Mon Jul 11 21:58:21 2011
New Revision: 1145375

URL: http://svn.apache.org/viewvc?rev=1145375&view=rev
Log:
make Section.toString() look alike other toString()s

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java?rev=1145375&r1=1145374&r2=1145375&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java Mon Jul 11 21:58:21
2011
@@ -59,18 +59,7 @@ public final class Section
     @Override
     public String toString()
     {
-        return toString( true );
-    }
-
-    public String toString( boolean withProperties )
-    {
-        return "Section ("
-                + getStartOffset()
-                + "--"
-                + getEndOffset()
-                + ")"
-                + (withProperties ? "\n"
-                        + _props.toString().replaceAll( "\n", "\n\t" ) : "");
+        return "Section [" + getStartOffset() + "; " + getEndOffset() + ")";
     }
 
 }



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


Mime
View raw message