From 0d7ef148b521c6c4cdb629bc7291e7e653949ae3 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Wed, 13 Jan 2010 14:25:31 +0000 Subject: [PATCH] Tweak the generics definition on workbook so that method signatures on hssf and xssf won't need to change git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@898769 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java | 6 +++--- src/java/org/apache/poi/ss/usermodel/Workbook.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java b/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java index d71d62dbd..5c8c30eed 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java @@ -1569,10 +1569,10 @@ public final class HSSFWorkbook extends POIDocument implements org.apache.poi.ss * * @return the list of pictures (a list of {@link HSSFPictureData} objects.) */ - public List getAllPictures() + public List getAllPictures() { // The drawing group record always exists at the top level, so we won't need to do this recursively. - List pictures = new ArrayList(); + List pictures = new ArrayList(); Iterator recordIter = workbook.getRecords().iterator(); while (recordIter.hasNext()) { @@ -1593,7 +1593,7 @@ public final class HSSFWorkbook extends POIDocument implements org.apache.poi.ss * @param escherRecords the escher records. * @param pictures the list to populate with the pictures. */ - private void searchForPictures(List escherRecords, List pictures) + private void searchForPictures(List escherRecords, List pictures) { Iterator recordIter = escherRecords.iterator(); while (recordIter.hasNext()) diff --git a/src/java/org/apache/poi/ss/usermodel/Workbook.java b/src/java/org/apache/poi/ss/usermodel/Workbook.java index 53ddb8fa5..5967d8ded 100644 --- a/src/java/org/apache/poi/ss/usermodel/Workbook.java +++ b/src/java/org/apache/poi/ss/usermodel/Workbook.java @@ -405,7 +405,7 @@ public interface Workbook { * * @return the list of pictures (a list of {@link PictureData} objects.) */ - List getAllPictures(); + List getAllPictures(); /** * Returns an object that handles instantiating concrete