0

Class: org.hl7.fhir.instance.model.DateAndTime method: setFraction(int fraction)

fails when fraction is 000. I see in the code

public void setFraction(int fraction) throws Exception {
    this.fraction = fraction;
    if (this.fraction == 0)
        throw new Exception("set 'fractions' before setting 'fraction'");
}

Is check "if (this.fraction == 0)" a mistake and should it be "if (this.fractions == 0)"?

arora
  • 5
  • 1

1 Answers1

0

Definitely an error - meant to be this.fractions. Thanks

Committed now, posted to web soon

Grahame Grieve
  • 3,538
  • 3
  • 15
  • 17