You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/08/13 05:50:53 UTC

[Bug 57893] [PATCH] XSSFSheet.getMergedRegion(int) takes O(n^2) time

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

--- Comment #7 from Javen ONeal <ja...@gmail.com> ---
If there are no merged regions on a sheet, HSSF returns an empty List while
XSSF raises an IllegalStateException. I would assume that both would behave the
same: return an empty list and let the calling code check for empty list. No
merged regions doesn't seem exceptional, and asking a user to check if
numMergedRegions before all getMergedRegions seems unnecessary. My 2 cents.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org