Last active
December 12, 2019 16:00
-
-
Save danielezonca/f7a82bde4bbcdbc3c2a7547027954faf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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