Skip to content

Commit 19484e9

Browse files
authored
Merge pull request #363 from jochenberger/patch-3
Fix cast
2 parents ae7f52e + e5a921f commit 19484e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public Integer convert(Object src) {
116116
if(Integer.class.isAssignableFrom(src.getClass())){
117117
return (Integer) src;
118118
} else if (Long.class.isAssignableFrom(src.getClass())) {
119-
return ((Integer) src).intValue();
119+
return ((Long) src).intValue();
120120
} else if (Double.class.isAssignableFrom(src.getClass())) {
121121
return ((Double) src).intValue();
122122
} else if (BigDecimal.class.isAssignableFrom(src.getClass())) {

0 commit comments

Comments
 (0)