Skip to content

Commit 95a6425

Browse files
committed
Use correct type
1 parent 609c28f commit 95a6425

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/maxmind/geoip2/model/IpRiskResponse.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
public class IpRiskResponse extends IpBaseResponse {
1515

16-
private final float ipRisk;
16+
private final double ipRisk;
1717

1818
public IpRiskResponse (
1919
@JacksonInject("ip_address") @JsonProperty("ip_address") String ipAddress,
@@ -24,7 +24,7 @@ public IpRiskResponse (
2424
@JsonProperty("is_residential_proxy") boolean isResidentialProxy,
2525
@JsonProperty("is_tor_exit_node") boolean isTorExitNode,
2626
@JacksonInject("network") @JsonProperty("network") @JsonDeserialize(using = NetworkDeserializer.class) Network network,
27-
@JsonProperty("ip_risk") float ipRisk
27+
@JsonProperty("ip_risk") double ipRisk
2828
) {
2929
super(ipAddress, isAnonymous, isAnonymousVpn, isHostingProvider, isPublicProxy, isResidentialProxy, isTorExitNode, network);
3030
this.ipRisk = ipRisk;
@@ -40,7 +40,7 @@ public IpRiskResponse(
4040
@MaxMindDbParameter(name = "is_residential_proxy") Boolean isResidentialProxy,
4141
@MaxMindDbParameter(name = "is_tor_exit_node") Boolean isTorExitNode,
4242
@MaxMindDbParameter(name = "network") Network network,
43-
@MaxMindDbParameter(name = "ip_risk") float ipRisk
43+
@MaxMindDbParameter(name = "ip_risk") double ipRisk
4444

4545
) {
4646
this(
@@ -79,7 +79,7 @@ public IpRiskResponse(
7979
* @return The IP risk of a model.
8080
*/
8181
@JsonProperty("ip_risk")
82-
public float getIPRisk(){
82+
public double getIPRisk(){
8383
return this.ipRisk;
8484
}
8585
}

0 commit comments

Comments
 (0)