Skip to content

Commit c2971a4

Browse files
oschwaldclaude
andcommitted
Remove deprecation notices from IP Risk database support
The IP Risk database is being rebuilt and will continue to be maintained. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 1f237fc commit c2971a4

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGELOG
22
=========
33

4+
5.0.0
5+
------------------
6+
7+
* The deprecation notices for IP Risk database support have been removed.
8+
IP Risk database support will continue to be maintained.
9+
410
4.4.0
511
------------------
612

src/main/java/com/maxmind/geoip2/DatabaseProvider.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ Optional<AnonymousPlusResponse> tryAnonymousPlus(InetAddress ipAddress) throws I
8989
* @return an IpRiskResponse for the requested IP address.
9090
* @throws com.maxmind.geoip2.exception.GeoIp2Exception if there is an error looking up the IP
9191
* @throws java.io.IOException if there is an IO error
92-
* @deprecated This database has been discontinued.
9392
*/
94-
@Deprecated
9593
IpRiskResponse ipRisk(InetAddress ipAddress) throws IOException,
9694
GeoIp2Exception;
9795

@@ -102,9 +100,7 @@ IpRiskResponse ipRisk(InetAddress ipAddress) throws IOException,
102100
* @return an IPRiskResponse for the requested IP address or empty if it is not in the DB.
103101
* @throws com.maxmind.geoip2.exception.GeoIp2Exception if there is an error looking up the IP
104102
* @throws java.io.IOException if there is an IO error
105-
* @deprecated This database has been discontinued.
106103
*/
107-
@Deprecated
108104
Optional<IpRiskResponse> tryIpRisk(InetAddress ipAddress) throws IOException,
109105
GeoIp2Exception;
110106

src/main/java/com/maxmind/geoip2/DatabaseReader.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,7 @@ private Optional<AnonymousPlusResponse> getAnonymousPlus(
487487
* @return a IPRiskResponse for the requested IP address.
488488
* @throws GeoIp2Exception if there is an error looking up the IP
489489
* @throws IOException if there is an IO error
490-
* @deprecated This database has been discontinued.
491490
*/
492-
@Deprecated
493491
@Override
494492
public IpRiskResponse ipRisk(InetAddress ipAddress) throws IOException,
495493
GeoIp2Exception {
@@ -501,14 +499,12 @@ public IpRiskResponse ipRisk(InetAddress ipAddress) throws IOException,
501499
return r.get();
502500
}
503501

504-
@Deprecated
505502
@Override
506503
public Optional<IpRiskResponse> tryIpRisk(InetAddress ipAddress) throws IOException,
507504
GeoIp2Exception {
508505
return getIpRisk(ipAddress);
509506
}
510507

511-
@Deprecated
512508
private Optional<IpRiskResponse> getIpRisk(InetAddress ipAddress) throws IOException,
513509
GeoIp2Exception {
514510
LookupResult<IpRiskResponse> result = this.get(

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
/**
1212
* This class provides the GeoIP2 IP Risk model.
1313
*
14-
* @deprecated This database has been discontinued.
1514
*/
16-
@Deprecated
1715
public class IpRiskResponse extends IpBaseResponse {
1816

1917
private final double ipRisk;

0 commit comments

Comments
 (0)