2013-12-16 41 views
0

类:org.hl7.fhir.instance.model.DateAndTime 方法:setFraction当分数为000。我在代码java.text.ParseException:日期'2013-12-11T14:45:00.000-04:00'不是有效日期时间格式

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

看到的是检查(INT分数)

失败“如果(this.fraction == 0)”一个错误,它应该是:“如果(这一点。分数== 0)“?

回答

0

绝对是一个错误 - 意思是this.fractions。谢谢

承诺现在,很快发布到网上