Skip to content

Commit a910e6d

Browse files
committed
Consistently use the @deprecated annotation
1 parent a737487 commit a910e6d

File tree

8 files changed

+20
-2
lines changed

8 files changed

+20
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ public class AnonymousIpResponse extends AbstractResponse {
3131
/**
3232
* @deprecated This constructor exists for backwards compatibility. Will be
3333
* removed in the next major release.
34-
*/ public AnonymousIpResponse(
34+
*/
35+
@Deprecated
36+
public AnonymousIpResponse(
3537
String ipAddress,
3638
boolean isAnonymous,
3739
boolean isAnonymousVpn,
@@ -45,7 +47,9 @@ public class AnonymousIpResponse extends AbstractResponse {
4547
/**
4648
* @deprecated This constructor exists for backwards compatibility. Will be
4749
* removed in the next major release.
48-
*/ public AnonymousIpResponse(
50+
*/
51+
@Deprecated
52+
public AnonymousIpResponse(
4953
String ipAddress,
5054
boolean isAnonymous,
5155
boolean isAnonymousVpn,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class AsnResponse extends AbstractResponse {
2828
* @deprecated This constructor exists for backwards compatibility. Will be
2929
* removed in the next major release.
3030
*/
31+
@Deprecated
3132
public AsnResponse(
3233
Integer autonomousSystemNumber,
3334
String autonomousSystemOrganization,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public static ConnectionType fromString(String s) {
7272
* @deprecated This constructor exists for backwards compatibility. Will be
7373
* removed in the next major release.
7474
*/
75+
@Deprecated
7576
public ConnectionTypeResponse(
7677
ConnectionType connectionType,
7778
String ipAddress

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public class DomainResponse extends AbstractResponse {
2727
* @deprecated This constructor exists for backwards compatibility. Will be
2828
* removed in the next major release.
2929
*/
30+
@Deprecated
3031
public DomainResponse(
3132
String domain,
3233
String ipAddress

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class IspResponse extends AsnResponse {
2626
* @deprecated This constructor exists for backwards compatibility. Will be
2727
* removed in the next major release.
2828
*/
29+
@Deprecated
2930
public IspResponse(
3031
Integer autonomousSystemNumber,
3132
String autonomousSystemOrganization,
@@ -40,6 +41,7 @@ public IspResponse(
4041
* @deprecated This constructor exists for backwards compatibility. Will be
4142
* removed in the next major release.
4243
*/
44+
@Deprecated
4345
public IspResponse(
4446
Integer autonomousSystemNumber,
4547
String autonomousSystemOrganization,
@@ -55,6 +57,7 @@ public IspResponse(
5557
* @deprecated This constructor exists for backwards compatibility. Will be
5658
* removed in the next major release.
5759
*/
60+
@Deprecated
5861
public IspResponse(
5962
Long autonomousSystemNumber,
6063
String autonomousSystemOrganization,

src/main/java/com/maxmind/geoip2/record/Country.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public Country() {
3434
* @deprecated This constructor exists for backwards compatibility. Will be
3535
* removed in the next major release.
3636
*/
37+
@Deprecated
3738
public Country(
3839
List<String> locales,
3940
Integer confidence,

src/main/java/com/maxmind/geoip2/record/RepresentedCountry.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public RepresentedCountry() {
3434
* @deprecated This constructor exists for backwards compatibility. Will be
3535
* removed in the next major release.
3636
*/
37+
@Deprecated
3738
public RepresentedCountry(
3839
List<String> locales,
3940
Integer confidence,

src/main/java/com/maxmind/geoip2/record/Traits.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public Traits(String ipAddress, Network network) {
6363
* @deprecated This constructor exists for backwards compatibility. Will be
6464
* removed in the next major release.
6565
*/
66+
@Deprecated
6667
public Traits(
6768
Integer autonomousSystemNumber,
6869
String autonomousSystemOrganization,
@@ -83,6 +84,7 @@ public Traits(
8384
* @deprecated This constructor exists for backwards compatibility. Will be
8485
* removed in the next major release.
8586
*/
87+
@Deprecated
8688
public Traits(
8789
Integer autonomousSystemNumber,
8890
String autonomousSystemOrganization,
@@ -105,6 +107,7 @@ public Traits(
105107
* @deprecated This constructor exists for backwards compatibility. Will be
106108
* removed in the next major release.
107109
*/
110+
@Deprecated
108111
public Traits(
109112
Integer autonomousSystemNumber,
110113
String autonomousSystemOrganization,
@@ -133,6 +136,7 @@ public Traits(
133136
* @deprecated This constructor exists for backwards compatibility. Will be
134137
* removed in the next major release.
135138
*/
139+
@Deprecated
136140
public Traits(
137141
Integer autonomousSystemNumber,
138142
String autonomousSystemOrganization,
@@ -166,6 +170,7 @@ public Traits(
166170
* @deprecated This constructor exists for backwards compatibility. Will be
167171
* removed in the next major release.
168172
*/
173+
@Deprecated
169174
public Traits(
170175
Integer autonomousSystemNumber,
171176
String autonomousSystemOrganization,
@@ -200,6 +205,7 @@ public Traits(
200205
* @deprecated This constructor exists for backwards compatibility. Will be
201206
* removed in the next major release.
202207
*/
208+
@Deprecated
203209
public Traits(
204210
Long autonomousSystemNumber,
205211
String autonomousSystemOrganization,

0 commit comments

Comments
 (0)