]> source.dussan.org Git - poi.git/commitdiff
make Section.toString() look alike other toString()s
authorSergey Vladimirov <sergey@apache.org>
Mon, 11 Jul 2011 21:58:21 +0000 (21:58 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 11 Jul 2011 21:58:21 +0000 (21:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145375 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java

index 8ce3787a18013b0d0deb58addf1c17f9dd053839..7bd528c3e96b49748e279e43bdc005c3de5bbde2 100644 (file)
@@ -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() + ")";
     }
 
 }