From a54fbd1ada484697960711920aae73f279a42cf6 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Sat, 16 Jul 2011 08:17:34 +0000 Subject: [PATCH] format and sort members git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147379 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hwpf/usermodel/Section.java | 36 +++++++++---------- 1 file changed, 16 insertions(+), 20 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 7bd528c3e..101f84705 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Section.java @@ -20,11 +20,9 @@ package org.apache.poi.hwpf.usermodel; import org.apache.poi.hwpf.HWPFOldDocument; import org.apache.poi.hwpf.model.SEPX; -public final class Section - extends Range +public final class Section extends Range { - - private SectionProperties _props; + private SectionProperties _props; public Section( SEPX sepx, Range parent ) { @@ -38,23 +36,17 @@ public final class Section _props = sepx.getSectionProperties(); } - public int type() - { - return TYPE_SECTION; - } + public Object clone() throws CloneNotSupportedException + { + Section s = (Section) super.clone(); + s._props = (SectionProperties) _props.clone(); + return s; + } - public int getNumColumns() - { - return _props.getCcolM1() + 1; - } - - public Object clone() - throws CloneNotSupportedException - { - Section s = (Section)super.clone(); - s._props = (SectionProperties)_props.clone(); - return s; - } + public int getNumColumns() + { + return _props.getCcolM1() + 1; + } @Override public String toString() @@ -62,4 +54,8 @@ public final class Section return "Section [" + getStartOffset() + "; " + getEndOffset() + ")"; } + public int type() + { + return TYPE_SECTION; + } }