[ https://issues.apache.org/jira/browse/MATH-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phil Steitz resolved MATH-188. ------------------------------ Resolution: Fixed Patch and Complex deprecation applied in r 620373. Thanks! > Make Complex and Fraction classes immutable and thus thread-safe > ---------------------------------------------------------------- > > Key: MATH-188 > URL: https://issues.apache.org/jira/browse/MATH-188 > Project: Commons Math > Issue Type: Improvement > Reporter: Sebb > Fix For: 1.2 > > Attachments: Fraction.patch > > > There are many classes with instance fields that could be made final. > Two in particular seem like ideal candidates: > Complex - fields: real, imaginary > Fraction - fields: numerator, denominator (the private reduce() method also > needs to be inlined) > As far as I can tell, making the above changes makes the classes immutable > and therefore threadsafe. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.