Skip to content

Commit 3088448

Browse files
committed
Add branch for java.lang.Double to getPrimitiveValue
This fixes the inability to deserialize collections of Doubles
1 parent 300c3af commit 3088448

File tree

1 file changed

+2
-0
lines changed
  • components/serialization/json/src/main/java/com/microsoft/kiota/serialization

1 file changed

+2
-0
lines changed

components/serialization/json/src/main/java/com/microsoft/kiota/serialization/JsonParseNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ public JsonParseNode(@Nonnull final JsonElement node) {
146146
return (T) itemNode.getIntegerValue();
147147
} else if (targetClass == Float.class) {
148148
return (T) itemNode.getFloatValue();
149+
} else if (targetClass == Double.class) {
150+
return (T) itemNode.getDoubleValue();
149151
} else if (targetClass == Long.class) {
150152
return (T) itemNode.getLongValue();
151153
} else if (targetClass == UUID.class) {

0 commit comments

Comments
 (0)