Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
Updated F64 JSON constructor to be able to accept integer-like inputs…
Browse files Browse the repository at this point in the history
… (from 'invalid' clients)
  • Loading branch information
adamkewley committed Oct 6, 2018
1 parent ee42b3f commit 0a36d33
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,18 @@ public final class F64Input implements JobInput {
@NotNull
private final double value;


@JsonCreator
public F64Input(long value) {
this.value = value;
}

@JsonCreator
public F64Input(double value) {
this.value = value;
}

@JsonCreator
public F64Input(String value) {
// The API may have to accept 64-bit doubles in string format because
// javascript clients can't handle 64-bit binary decimals without losing
Expand Down

0 comments on commit 0a36d33

Please sign in to comment.