The design of the Fraction class requires the object to be immutable.
Fraction
The simplest thing that could possibly work:
public Fraction square() { return Fraction.ONE_QUARTER; }