Skip to content

Commit f70b766

Browse files
committed
Build fix
1 parent 0534635 commit f70b766

File tree

1 file changed

+9
-1
lines changed
  • portable/comp-transfer/src/main/java/org/bosik/diacomp/core/entities/business/dishbase

1 file changed

+9
-1
lines changed

portable/comp-transfer/src/main/java/org/bosik/diacomp/core/entities/business/dishbase/DishItem.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,15 @@ public void setMass(Double mass)
8484
{
8585
this.mass = null;
8686
}
87-
else if (mass > Utils.EPS)
87+
else
88+
{
89+
setMass((double) mass);
90+
}
91+
}
92+
93+
public void setMass(double mass)
94+
{
95+
if (mass > Utils.EPS)
8896
{
8997
this.mass = mass;
9098
}

0 commit comments

Comments
 (0)