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

--- Comment #2 from PJ Fanning <[email protected]> ---
I would suggest creating some new class with a name like CellStyleContext which
maintains a map that maps style instances to EnumMap instances.

Keep all the existing setCellStyleProperties methods with their existing
signatures for compatibility reasons but a new overload could have the
CellStyleContext as an extra input param. And the setCellStyleProperties would
then call a method on the CellStyleContext instance to get the EnumMap for the
style - which is cached by the CellStyleContext if it has already been
evaluated.

Something simple to start with. We can worry about more complicated issues like
invalidating cache entries in a future PR.

-- 
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