Skip to content

Commit d56d6ba

Browse files
oschwaldclaude
andcommitted
Add missing optional-return note to tryIsp Javadoc
tryIsp returns Optional<IspResponse>, so its @return should note the empty case like the other try* methods. The phrase had been misplaced on the @param tag. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 18371ee commit d56d6ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ IspResponse isp(InetAddress ipAddress) throws IOException,
209209
* Look up an IP address in a GeoIP ISP database.
210210
*
211211
* @param ipAddress IPv4 or IPv6 address to look up.
212-
* @return an IspResponse for the requested IP address.
212+
* @return an IspResponse for the requested IP address or empty if it is not in the DB.
213213
* @throws com.maxmind.geoip2.exception.GeoIp2Exception if there is an error looking up the IP
214214
* @throws java.io.IOException if there is an IO error
215215
*/

0 commit comments

Comments
 (0)