Skip to content

Instantly share code, notes, and snippets.

@danielezonca
Last active December 12, 2019 16:00
Show Gist options
  • Save danielezonca/f7a82bde4bbcdbc3c2a7547027954faf to your computer and use it in GitHub Desktop.
Save danielezonca/f7a82bde4bbcdbc3c2a7547027954faf to your computer and use it in GitHub Desktop.
public class BigDecimalClass {
private java.math.BigDecimal myBigDecimal;
public java.math.BigDecimal getMyBigDecimal() {
return myBigDecimal;
}
public void setMyBigDecimal(java.math.BigDecimal myBigDecimal) {
this.myBigDecimal = myBigDecimal;
}
}
public class TestBigDecimalWorkaround extends BigDecimalClass {
private double myDouble;
public double getMyDouble() {
return myDouble;
}
public void setMyDouble(double myDouble) {
setMyBigDecimal(java.math.BigDecimal.valueOf(myDouble));
this.myDouble = myDouble;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment