From 25fe73b2eb66d571b58d53b1daf26e27168d435b Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 11 Jul 2011 21:58:21 +0000 Subject: [PATCH] make Section.toString() look alike other toString()s git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145375 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/usermodel/Section.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java index 8ce3787a18..7bd528c3e9 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java @@ -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() + ")"; } } -- 2.39.5