Affects Version/s: None
Fix Version/s: 1.2
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.