Skip to content

Commit 51c2fd8

Browse files
committed
Fixed JavaDocs
1 parent c074dfe commit 51c2fd8

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class DatabaseReader implements GeoIp2Provider, Closeable {
5555
* be a valid GeoIP2 database file.
5656
*
5757
* <code>Builder</code> creates instances of
58-
* <code>DatabaseReader</client> from values set by the methods.
58+
* <code>DatabaseReader</code> from values set by the methods.
5959
*
6060
* Only the values set in the <code>Builder</code> constructor are
6161
* required.

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public interface GeoIp2Provider {
1515
* @param ipAddress
1616
* IPv4 or IPv6 address to lookup.
1717
* @return A Country model for the requested IP address.
18-
* @throws GeoIp2Exception
19-
* @throws IOException
18+
* @throws GeoIp2Exception if there is an error looking up the IP
19+
* @throws IOException if there is an IO error
2020
*/
2121
public CountryResponse country(InetAddress ipAddress) throws IOException,
2222
GeoIp2Exception;
@@ -25,8 +25,8 @@ public CountryResponse country(InetAddress ipAddress) throws IOException,
2525
* @param ipAddress
2626
* IPv4 or IPv6 address to lookup.
2727
* @return A City model for the requested IP address.
28-
* @throws GeoIp2Exception
29-
* @throws IOException
28+
* @throws GeoIp2Exception if there is an error looking up the IP
29+
* @throws IOException if there is an IO error
3030
*/
3131
public CityResponse city(InetAddress ipAddress) throws IOException,
3232
GeoIp2Exception;
@@ -35,8 +35,8 @@ public CityResponse city(InetAddress ipAddress) throws IOException,
3535
* @param ipAddress
3636
* IPv4 or IPv6 address to lookup.
3737
* @return A CityIspOrg model for the requested IP address.
38-
* @throws GeoIp2Exception
39-
* @throws IOException
38+
* @throws GeoIp2Exception if there is an error looking up the IP
39+
* @throws IOException if there is an IO error
4040
*/
4141
public CityIspOrgResponse cityIspOrg(InetAddress ipAddress)
4242
throws IOException, GeoIp2Exception;
@@ -45,8 +45,8 @@ public CityIspOrgResponse cityIspOrg(InetAddress ipAddress)
4545
* @param ipAddress
4646
* IPv4 or IPv6 address to lookup.
4747
* @return An Omni model for the requested IP address.
48-
* @throws GeoIp2Exception
49-
* @throws IOException
48+
* @throws GeoIp2Exception if there is an error looking up the IP
49+
* @throws IOException if there is an IO error
5050
*/
5151
public OmniResponse omni(InetAddress ipAddress) throws IOException,
5252
GeoIp2Exception;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class WebServiceClient implements GeoIp2Provider {
119119

120120
/**
121121
* <code>Builder</code> creates instances of
122-
* <code>WebServiceClient</client> from values set by the methods.
122+
* <code>WebServiceClient</code> from values set by the methods.
123123
*
124124
* This example shows how to create a <code>WebServiceClient</code> object
125125
* with the <code>Builder</code>:
@@ -198,8 +198,8 @@ public WebServiceClient build() {
198198

199199
/**
200200
* @return A Country model for the requesting IP address
201-
* @throws GeoIp2Exception
202-
* @throws IOException
201+
* @throws GeoIp2Exception if there is an error from the web service
202+
* @throws IOException if an IO error happens during the request
203203
*/
204204
public CountryResponse country() throws IOException, GeoIp2Exception {
205205
return this.country(null);
@@ -213,8 +213,8 @@ public CountryResponse country(InetAddress ipAddress) throws IOException,
213213

214214
/**
215215
* @return A City model for the requesting IP address
216-
* @throws GeoIp2Exception
217-
* @throws IOException
216+
* @throws GeoIp2Exception if there is an error from the web service
217+
* @throws IOException if an IO error happens during the request
218218
*/
219219
public CityResponse city() throws IOException, GeoIp2Exception {
220220
return this.city(null);
@@ -228,8 +228,8 @@ public CityResponse city(InetAddress ipAddress) throws IOException,
228228

229229
/**
230230
* @return A City/ISP/Org model for the requesting IP address
231-
* @throws GeoIp2Exception
232-
* @throws IOException
231+
* @throws GeoIp2Exception if there is an error from the web service
232+
* @throws IOException if an IO error happens during the request
233233
*/
234234
public CityIspOrgResponse cityIspOrg() throws IOException, GeoIp2Exception {
235235
return this.cityIspOrg(null);
@@ -244,8 +244,8 @@ public CityIspOrgResponse cityIspOrg(InetAddress ipAddress)
244244

245245
/**
246246
* @return An Omni model for the requesting IP address
247-
* @throws GeoIp2Exception
248-
* @throws IOException
247+
* @throws GeoIp2Exception if there is an error from the web service
248+
* @throws IOException if an IO error happens during the request
249249
*/
250250
public OmniResponse omni() throws IOException, GeoIp2Exception {
251251
return this.omni(null);

0 commit comments

Comments
 (0)