AuthRequest: Fix Javadoc for return values

The methods' javadocs state that the return is 'null', but this was
changed some time ago to be Optional.empty().

Change-Id: I8f883cf7d79efb848d70043d23ecc707cfcdf1d0
This commit is contained in:
David Pursehouse
2019-08-12 14:47:18 +09:00
parent 8450917187
commit bc228f5e3d

View File

@@ -31,7 +31,7 @@ public abstract class AuthRequest {
/**
* Returns the username to be authenticated.
*
* @return username for authentication or null for anonymous access.
* @return username for authentication or {@code empty} for anonymous access.
*/
public final Optional<String> getUsername() {
return username;
@@ -40,7 +40,7 @@ public abstract class AuthRequest {
/**
* Returns the user's credentials
*
* @return user's credentials or null
* @return user's credentials or {@code empty}.
*/
public final Optional<String> getPassword() {
return password;