Good point, I updated them
https://github.com/apache/sling-org-apache-sling-api/commit/b76ab7e07c79dab4cd89eb25784848c2f5ad2732
Regards
Carsten
On 20.07.2023 15:22, Robert Munteanu wrote:
+ /**
+ * Returns a <code>java.security.Principal</code> object
containing
+ * the name of the current authenticated user.
+ *
+ * <p><strong>Note: </strong> This method deviates from the parent
interface and never returns <code>null</code>,
+ * even whenthe user is not authenticated.</p>
+ *
+ * @return a <code>java.security.Principal</code>
containing
+ * the name of the user making this request;
never
+ * <code>null</code>
+ */
+ @NotNull
+ Principal getUserPrincipal();
--
Carsten Ziegeler
Adobe
cziege...@apache.org