reschke commented on code in PR #57:
URL: 
https://github.com/apache/sling-org-apache-sling-api/pull/57#discussion_r2055247355


##########
src/main/java/org/apache/sling/api/resource/ResourceUtil.java:
##########
@@ -271,18 +271,25 @@ public static String getParent(final String path, final 
int level) {
      * @throws NullPointerException If <code>path</code> is <code>null</code>.
      */
     public static @NotNull String getName(@NotNull String path) {
+        //        if (path == null) {
+        //            throw new NullPointerException("provided path is null");
+        //        }

Review Comment:
   Maybe `Objects.requireNonNull` though?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to