Skip to content

Commit ab7a272

Browse files
committed
Use correct case
The IP Risk model has not been released yet so this won't impact anyone.
1 parent 966f559 commit ab7a272

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public IpRiskResponse(
8181
* @return The IP risk of a model.
8282
*/
8383
@JsonProperty("ip_risk")
84-
public double getIPRisk() {
84+
public double getIpRisk() {
8585
return this.ipRisk;
8686
}
8787
}

src/test/java/com/maxmind/geoip2/DatabaseReaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public void testIPRisk() throws Exception {
243243
assertFalse(response.isResidentialProxy());
244244
assertFalse(response.isTorExitNode());
245245
assertEquals(ipAddress.getHostAddress(), response.getIpAddress());
246-
assertEquals(0.1, response.getIPRisk(), 0.0001);
246+
assertEquals(0.1, response.getIpRisk(), 0.0001);
247247
assertEquals("0:0:0:0:0:0:d602:300/126", response.getNetwork().toString());
248248
IpRiskResponse tryResponse = reader.tryIpRisk(ipAddress).get();
249249
assertEquals(response.toJson(), tryResponse.toJson());

0 commit comments

Comments
 (0)