Community
Participate
Working Groups
This bug lists implementation issues I have with the patch from bug 167325 (I already released the patch to HEAD because I wanted to have the API in place): The methods getRowBelow and getRowAbove are more complicated than they need to be, in particular, they (or the methods they call) use recursion where iteration would work just as well. findLastVisibleItem and findLowestLeaf seem to have the exact same implementation. ViewerCell implements equals(), it should also implement hashCode() in a way that is consistent with the equals implementation (any two objects that are equals() must return the same hash code!). This may not be important right now, but it is good practice to implement both equals() and hashCode() rather than just one of them. I would recommend using Source->Generate hashCode() and equals(). Select both fields and then rewrite the generated methods to use getItem() instead of row.
Created attachment 57208 [details] Patch to address the equals-problems
Created attachment 57209 [details] Updated to add contribution info
Rescheduling for M7
Created attachment 63964 [details] Remove code dups and use iteration is this all?
Looks better than what we have :)
Released > 20070417
Verified in I20070502-1800 by code inspection