Skip to content

Commit

Permalink
fix: Fix dsl when get boolean (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: Romuald Rousseau <[email protected]>
  • Loading branch information
RomualdRousseau and Romuald Rousseau authored Oct 20, 2024
1 parent caff7f7 commit d65dcfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public <T> Optional<T> get(final String k) {
object = (T) Integer.valueOf(node.intValue());
} else if (node.isFloat()) {
object = (T) Float.valueOf(node.floatValue());
} else if (node.isBoolean()) {
object = (T) Boolean.valueOf(node.booleanValue());
} else {
object = (T) node.textValue();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public <T> Optional<T> get(final String k) {
object = (T) Integer.valueOf(node.intValue());
} else if (node.isFloat()) {
object = (T) Float.valueOf(node.floatValue());
} else if (node.isBoolean()) {
object = (T) Boolean.valueOf(node.booleanValue());
} else {
object = (T) node.textValue();
}
Expand Down

0 comments on commit d65dcfd

Please sign in to comment.