From 7d6a1faa18ee90fbfab33827c166de2a1fcf48d9 Mon Sep 17 00:00:00 2001 From: Glen Stampoultzis Date: Thu, 26 Aug 2004 03:26:33 +0000 Subject: [PATCH] Minor formatting git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353590 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/model/TextPiece.java | 3 --- .../org/apache/poi/hwpf/model/TextPieceTable.java | 14 ++++++-------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/TextPiece.java b/src/scratchpad/src/org/apache/poi/hwpf/model/TextPiece.java index d833072a1..a09d9eabc 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/TextPiece.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/TextPiece.java @@ -35,9 +35,6 @@ public class TextPiece extends PropertyNode implements Comparable /** * @param start Offset in main document stream. - * @param length The total length of the text in bytes. Note: 1 character - * does not necessarily refer to 1 byte. - * @param unicode true if this text is unicode. */ public TextPiece(int start, int end, byte[] text, PieceDescriptor pd, int cpStart) throws UnsupportedEncodingException diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/TextPieceTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/TextPieceTable.java index cb1364546..ad8e4fe11 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/TextPieceTable.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/TextPieceTable.java @@ -18,15 +18,13 @@ package org.apache.poi.hwpf.model; -import java.io.UnsupportedEncodingException; -import java.io.IOException; - -import java.util.List; -import java.util.ArrayList; - +import org.apache.poi.hwpf.model.io.HWPFOutputStream; import org.apache.poi.poifs.common.POIFSConstants; -import org.apache.poi.hwpf.model.io.*; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.util.ArrayList; +import java.util.List; /** * @author Ryan Ackley @@ -66,7 +64,7 @@ public class TextPieceTable } int firstPieceFilePosition = pieces[0].getFilePosition(); - _cpMin = firstPieceFilePosition - fcMin; + _cpMin = firstPieceFilePosition - fcMin; // using the PieceDescriptors, build our list of TextPieces. for (int x = 0; x < pieces.length; x++)