mirror of https://github.com/apache/poi.git
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
This commit is contained in:
parent
159a99b6c0
commit
25fe73b2eb
|
@ -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() + ")";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue