@@ -99,6 +99,7 @@ public class TypeFactory // note: was final in 2.9, removed from 2.10
99
99
private final static Class <?> CLS_JSON_NODE = JsonNode .class ; // since 2.10
100
100
101
101
private final static Class <?> CLS_BOOL = Boolean .TYPE ;
102
+ private final static Class <?> CLS_DOUBLE = Double .TYPE ;
102
103
private final static Class <?> CLS_INT = Integer .TYPE ;
103
104
private final static Class <?> CLS_LONG = Long .TYPE ;
104
105
@@ -110,6 +111,7 @@ public class TypeFactory // note: was final in 2.9, removed from 2.10
110
111
111
112
// note: these are primitive, hence no super types
112
113
protected final static SimpleType CORE_TYPE_BOOL = new SimpleType (CLS_BOOL );
114
+ protected final static SimpleType CORE_TYPE_DOUBLE = new SimpleType (CLS_DOUBLE );
113
115
protected final static SimpleType CORE_TYPE_INT = new SimpleType (CLS_INT );
114
116
protected final static SimpleType CORE_TYPE_LONG = new SimpleType (CLS_LONG );
115
117
@@ -1401,6 +1403,7 @@ protected JavaType _findWellKnownSimple(Class<?> clz) {
1401
1403
if (clz == CLS_BOOL ) return CORE_TYPE_BOOL ;
1402
1404
if (clz == CLS_INT ) return CORE_TYPE_INT ;
1403
1405
if (clz == CLS_LONG ) return CORE_TYPE_LONG ;
1406
+ if (clz == CLS_DOUBLE ) return CORE_TYPE_DOUBLE ;
1404
1407
} else {
1405
1408
if (clz == CLS_STRING ) return CORE_TYPE_STRING ;
1406
1409
if (clz == CLS_OBJECT ) return CORE_TYPE_OBJECT ; // since 2.7
@@ -1621,13 +1624,13 @@ protected JavaType _fromWellKnownClass(ClassStack context, Class<?> rawType, Typ
1621
1624
if (BaseStream .class .isAssignableFrom (rawType )) {
1622
1625
if (DoubleStream .class .isAssignableFrom (rawType )) {
1623
1626
return _iterationType (rawType , bindings , superClass , superInterfaces ,
1624
- constructType ( Double . class ) );
1627
+ CORE_TYPE_DOUBLE );
1625
1628
} else if (IntStream .class .isAssignableFrom (rawType )) {
1626
1629
return _iterationType (rawType , bindings , superClass , superInterfaces ,
1627
- constructType ( Integer . class ) );
1630
+ CORE_TYPE_INT );
1628
1631
} else if (LongStream .class .isAssignableFrom (rawType )) {
1629
1632
return _iterationType (rawType , bindings , superClass , superInterfaces ,
1630
- constructType ( Long . class ) );
1633
+ CORE_TYPE_LONG );
1631
1634
}
1632
1635
}
1633
1636
return null ;
0 commit comments