Skip to content

Commit f7317ff

Browse files
committed
Fixed issue with Boolean mapping
1 parent 4b18bc5 commit f7317ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/javawebstack/abstractdata/mapper/DefaultMappers.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ private PrimitiveMapper() {}
9090
public AbstractElement toAbstract(MapperContext context, Object value) throws MapperException {
9191
if(value instanceof String)
9292
return new AbstractPrimitive((String) value);
93+
if(value instanceof Boolean)
94+
return new AbstractPrimitive((Boolean) value);
9395
return new AbstractPrimitive((Number) value);
9496
}
9597

0 commit comments

Comments
 (0)