From 6299c25b80aa5b704c60c07a229dbb90ac8cc10d Mon Sep 17 00:00:00 2001 From: Yegor Kozlov Date: Sat, 11 Apr 2009 14:15:27 +0000 Subject: removed unused imports of deprecated classes, fixed javadoc errors git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@764203 13f79535-47bb-0310-9956-ffa450edef68 --- src/scratchpad/src/org/apache/poi/hslf/model/Shape.java | 2 +- .../src/org/apache/poi/hwpf/model/PicturesTable.java | 4 ++-- .../testcases/org/apache/poi/hslf/model/TestOleEmbedding.java | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/scratchpad') diff --git a/src/scratchpad/src/org/apache/poi/hslf/model/Shape.java b/src/scratchpad/src/org/apache/poi/hslf/model/Shape.java index ec6435d702..7ab1254370 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/model/Shape.java +++ b/src/scratchpad/src/org/apache/poi/hslf/model/Shape.java @@ -34,7 +34,7 @@ import java.awt.geom.Rectangle2D; *

*

* When you add a shape, you usually specify the dimensions of the shape and the position - * of the upper�left corner of the bounding box for the shape relative to the upper�left + * of the upper'left corner of the bounding box for the shape relative to the upper'left * corner of the page, worksheet, or slide. Distances in the drawing layer are measured * in points (72 points = 1 inch). *

diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/PicturesTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/PicturesTable.java index af9f5e8fb0..5aeb788e95 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/PicturesTable.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/PicturesTable.java @@ -35,8 +35,8 @@ import org.apache.poi.ddf.EscherRecordFactory; /** * Holds information about all pictures embedded in Word Document either via "Insert -> Picture -> From File" or via - * clipboard. Responsible for images extraction and determining whether some document�s piece contains embedded image. - * Analyzes raw data bytestream �Data� (where Word stores all embedded objects) provided by HWPFDocument. + * clipboard. Responsible for images extraction and determining whether some document's piece contains embedded image. + * Analyzes raw data bytestream 'Data' (where Word stores all embedded objects) provided by HWPFDocument. * * Word stores images as is within so called "Data stream" - the stream within a Word docfile containing various data * that hang off of characters in the main stream. For example, binary data describing in-line pictures and/or diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java b/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java index ae6f752ab2..9d0288c752 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java @@ -73,11 +73,11 @@ public final class TestOleEmbedding extends TestCase { HSSFWorkbook wb = new HSSFWorkbook(data.getData()); HSSFSheet sheet = wb.getSheetAt(0); //verify we can access the xls data - assertEquals(1, sheet.getRow(0).getCell((short)0).getNumericCellValue(), 0); - assertEquals(1, sheet.getRow(1).getCell((short)0).getNumericCellValue(), 0); - assertEquals(2, sheet.getRow(2).getCell((short)0).getNumericCellValue(), 0); - assertEquals(3, sheet.getRow(3).getCell((short)0).getNumericCellValue(), 0); - assertEquals(8, sheet.getRow(5).getCell((short)0).getNumericCellValue(), 0); + assertEquals(1, sheet.getRow(0).getCell(0).getNumericCellValue(), 0); + assertEquals(1, sheet.getRow(1).getCell(0).getNumericCellValue(), 0); + assertEquals(2, sheet.getRow(2).getCell(0).getNumericCellValue(), 0); + assertEquals(3, sheet.getRow(3).getCell(0).getNumericCellValue(), 0); + assertEquals(8, sheet.getRow(5).getCell(0).getNumericCellValue(), 0); } else if ("Document".equals(ole.getInstanceName())){ //creating a HWPF document HWPFDocument doc = new HWPFDocument(data.getData()); -- cgit v1.2.3