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
This commit is contained in:
parent
b5ccd57cd6
commit
0d7ef148b5
@ -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.)
|
* @return the list of pictures (a list of {@link HSSFPictureData} objects.)
|
||||||
*/
|
*/
|
||||||
public List<PictureData> getAllPictures()
|
public List<HSSFPictureData> getAllPictures()
|
||||||
{
|
{
|
||||||
// The drawing group record always exists at the top level, so we won't need to do this recursively.
|
// The drawing group record always exists at the top level, so we won't need to do this recursively.
|
||||||
List<PictureData> pictures = new ArrayList<PictureData>();
|
List<HSSFPictureData> pictures = new ArrayList<HSSFPictureData>();
|
||||||
Iterator<Record> recordIter = workbook.getRecords().iterator();
|
Iterator<Record> recordIter = workbook.getRecords().iterator();
|
||||||
while (recordIter.hasNext())
|
while (recordIter.hasNext())
|
||||||
{
|
{
|
||||||
@ -1593,7 +1593,7 @@ public final class HSSFWorkbook extends POIDocument implements org.apache.poi.ss
|
|||||||
* @param escherRecords the escher records.
|
* @param escherRecords the escher records.
|
||||||
* @param pictures the list to populate with the pictures.
|
* @param pictures the list to populate with the pictures.
|
||||||
*/
|
*/
|
||||||
private void searchForPictures(List escherRecords, List<PictureData> pictures)
|
private void searchForPictures(List escherRecords, List<HSSFPictureData> pictures)
|
||||||
{
|
{
|
||||||
Iterator recordIter = escherRecords.iterator();
|
Iterator recordIter = escherRecords.iterator();
|
||||||
while (recordIter.hasNext())
|
while (recordIter.hasNext())
|
||||||
|
@ -405,7 +405,7 @@ public interface Workbook {
|
|||||||
*
|
*
|
||||||
* @return the list of pictures (a list of {@link PictureData} objects.)
|
* @return the list of pictures (a list of {@link PictureData} objects.)
|
||||||
*/
|
*/
|
||||||
List<PictureData> getAllPictures();
|
List<? extends PictureData> getAllPictures();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an object that handles instantiating concrete
|
* Returns an object that handles instantiating concrete
|
||||||
|
Loading…
Reference in New Issue
Block a user