File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments