Skip to content

Commit e5a921f

Browse files
authored
Fix cast
1 parent ae7f52e commit e5a921f

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)