We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9726067 commit 4b587ddCopy full SHA for 4b587dd
src/main/java/ru/mystamps/web/support/spring/mvc/BigDecimalConverter.java
@@ -36,6 +36,10 @@ public BigDecimal convert(String source) {
36
return null;
37
}
38
39
+ return valueOf(source);
40
+ }
41
+
42
+ public static BigDecimal valueOf(String source) {
43
String value = source;
44
if (source.indexOf(',') >= 0) {
45
// "10,5" => "10.5"
src/main/java/ru/mystamps/web/support/spring/mvc/PatchRequest.java
@@ -59,7 +59,7 @@ public Integer integerValue() {
59
60
61
public BigDecimal bigDecimalValue() {
62
- return new BigDecimal(value);
+ return BigDecimalConverter.valueOf(value);
63
64
65
0 commit comments