diff --git a/src/java.base/share/classes/java/net/Authenticator.java b/src/java.base/share/classes/java/net/Authenticator.java index 9ac504f9a62..fb33596feed 100644 --- a/src/java.base/share/classes/java/net/Authenticator.java +++ b/src/java.base/share/classes/java/net/Authenticator.java @@ -426,12 +426,12 @@ class Authenticator { } /** - * Returns the URL that resulted in this - * request for authentication. + * Returns the URL that resulted in this request for authentication. + * If the corresponding request does not specify a URL, this method returns null. * * @since 1.5 * - * @return the requesting URL + * @return the requesting URL, or null if not available. * */ protected URL getRequestingURL () {