Browse Source

Merge pull request #363 from jochenberger/patch-3

Fix cast
pull/367/head
kallestenflo 7 years ago committed by GitHub
parent
commit
19484e9716
  1. 2
      json-path/src/main/java/com/jayway/jsonpath/spi/mapper/JsonSmartMappingProvider.java

2
json-path/src/main/java/com/jayway/jsonpath/spi/mapper/JsonSmartMappingProvider.java

@ -116,7 +116,7 @@ public class JsonSmartMappingProvider implements MappingProvider {
if(Integer.class.isAssignableFrom(src.getClass())){
return (Integer) src;
} else if (Long.class.isAssignableFrom(src.getClass())) {
return ((Integer) src).intValue();
return ((Long) src).intValue();
} else if (Double.class.isAssignableFrom(src.getClass())) {
return ((Double) src).intValue();
} else if (BigDecimal.class.isAssignableFrom(src.getClass())) {

Loading…
Cancel
Save