On 16 August 2012 21:58, Gilles Sadowski <gil...@harfang.homelinux.org> wrote: > Hello. > > In classes "HarmonicFitter" and "GaussianFitter" (in package > "o.a.c.m.optimization.fitting"), there is an inner class "ParameterGuesser". > All the necessary input for the guessing procedure is passed to the > constructor; I thus propose that the guessing is performed at object > construction rather than at the call to the "guess()" method. This will > allow to declare all the fields "final". Moreover, all that can go wrong > will be located in the constructor, turning the "guess" method into a mere > accessor.
On the face of it, it sounds like the class does not even need to be instantiated. Could the guess method be turned into a static utility method to which the parameters are passed? Why bother creating an instance only to return the guess later? > OK? > If so, do I need to file a JIRA ticket for this change? > > > Regards, > Gilles > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org