diff --git a/core/src/main/java/org/springframework/security/core/userdetails/UserDetails.java b/core/src/main/java/org/springframework/security/core/userdetails/UserDetails.java
index a91e43335a..643706e3cf 100644
--- a/core/src/main/java/org/springframework/security/core/userdetails/UserDetails.java
+++ b/core/src/main/java/org/springframework/security/core/userdetails/UserDetails.java
@@ -55,7 +55,7 @@ public interface UserDetails extends Serializable {
/**
* Returns the password used to authenticate the user. Cannot return null
.
*
- * @return the password (never null
)
+ * @return the password
*/
String getPassword();