Skip to content

Commit 91fa87b

Browse files
correct comment
1 parent 0d65209 commit 91fa87b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/GeoIpTestUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public record SimpleCity(String cityName) implements GeoIpCache.CacheableValue {
7373
* A static city-specific responseProvider for use with {@link IpDatabase#getResponse(String, CheckedBiFunction)} in
7474
* tests.
7575
* <p>
76-
* Like this: {@code CacheableCityResponse city = loader.getResponse("some.ip.address", GeoIpTestUtils::getCity);}
76+
* Like this: {@code SimpleCity city = loader.getResponse("some.ip.address", GeoIpTestUtils::getCity);}
7777
*/
7878
public static SimpleCity getCity(Reader reader, String ip) throws IOException {
7979
DatabaseRecord<CityResponse> record = reader.getRecord(InetAddresses.forString(ip), CityResponse.class);
@@ -87,7 +87,7 @@ public record SimpleCountry(String countryName) implements GeoIpCache.CacheableV
8787
* A static country-specific responseProvider for use with {@link IpDatabase#getResponse(String, CheckedBiFunction)} in
8888
* tests.
8989
* <p>
90-
* Like this: {@code CacheableCountryResponse country = loader.getResponse("some.ip.address", GeoIpTestUtils::getCountry);}
90+
* Like this: {@code SimpleCountry country = loader.getResponse("some.ip.address", GeoIpTestUtils::getCountry);}
9191
*/
9292
public static SimpleCountry getCountry(Reader reader, String ip) throws IOException {
9393
DatabaseRecord<CountryResponse> record = reader.getRecord(InetAddresses.forString(ip), CountryResponse.class);

0 commit comments

Comments
 (0)