Call existing constructor in DateWrapper.

This commit is contained in:
Isira Seneviratne 2020-11-02 09:15:55 +05:30
parent fe31a90cb3
commit 9cf9e7e980
1 changed files with 1 additions and 2 deletions

View File

@ -28,8 +28,7 @@ public class DateWrapper implements Serializable {
*/
@Deprecated
public DateWrapper(@NonNull Calendar calendar, boolean isApproximation) {
offsetDateTime = OffsetDateTime.ofInstant(calendar.toInstant(), ZoneOffset.UTC);
this.isApproximation = isApproximation;
this(OffsetDateTime.ofInstant(calendar.toInstant(), ZoneOffset.UTC), isApproximation);
}
public DateWrapper(@NonNull OffsetDateTime offsetDateTime) {