public class TestNumberConversionInSetter {
    private double d;

    public void init() {
        setD(1);
    }

    public double getD() {
        return d;
    }

    public void setD(double d) {
        this.d = d;
    }
}