UnivariateRealSolverUtils.factory is a mutable static field which is not initialised safely.
Suggest using IODH (init on demand holder) idiom for this, else use synchronized getInstance().
Description
UnivariateRealSolverUtils.factory is a mutable static field which is not initialised safely.
Suggest using IODH (init on demand holder) idiom for this, else use synchronized getInstance().
Luc Maisonobe added a comment - 05/Apr/09 03:18 PM fixed in subversion repository as of r762102
thanks for the report and the suggestion. IODH is a pattern I really appreciate, it is neat and elegant.
thanks for the report and the suggestion. IODH is a pattern I really appreciate, it is neat and elegant.