https://bz.apache.org/bugzilla/show_bug.cgi?id=58245

--- Comment #4 from Nick Burch <[email protected]> ---
I don't think we can do the Workbook<T> trick. I had a play with that quite
recently. The killer is that Eclipse (+friends) all start complaining when you
write something like "Workbook wb = WorkbookFactory.create(file)", claiming
that you should be giving it a generics type. We don't want to do that, as it
defeats the whole point of telling everyone to use the SS interfaces!

We certainly could do 
Workbook:  Iterator<? extends Sheet> getSheetIterator();
HSSFWorkbook:  Iterator<HSSFSheet> getSheetIterator();

That works fine, and mirrors what we have for rows and cells. It's the iterable
version that I think will have to remain "Workbook implements Iterable<Sheet>"
and "HSSFWorkbook implements Workbook, Iterable<Sheet>", unless someone can
come up with a cunning workaround!

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to