Skip to content

Commit

Permalink
Also accept whole numbers as serialized values for double flags
Browse files Browse the repository at this point in the history
  • Loading branch information
hakonhall committed Sep 4, 2024
1 parent 72bc683 commit 3e827ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public UnboundDoubleFlag(FlagId id, double defaultValue) {

public UnboundDoubleFlag(FlagId id, Double defaultValue, FetchVector defaultFetchVector) {
super(id, defaultValue, defaultFetchVector,
new SimpleFlagSerializer<>(DoubleNode::new, JsonNode::isFloatingPointNumber, JsonNode::asDouble),
new SimpleFlagSerializer<>(DoubleNode::new, JsonNode::isNumber, JsonNode::asDouble),
UnboundDoubleFlag::new, DoubleFlag::new);
}
}

0 comments on commit 3e827ba

Please sign in to comment.