catalinadumitruu commented on code in PR #10:
URL: 
https://github.com/apache/sling-org-apache-sling-testing-jcr-mock/pull/10#discussion_r1112052625


##########
src/main/java/org/apache/sling/testing/mock/jcr/MockNodeType.java:
##########
@@ -54,6 +54,12 @@ public boolean hasOrderableChildNodes() {
         // support only well-known built-in node type
         return StringUtils.equals(getName(), JcrConstants.NT_UNSTRUCTURED);
     }
+    
+        @Override
+    public boolean isMixin() {
+        // if it has at least 1 supertype -> isMixin
+       return (getDeclaredSupertypes().length > 0);

Review Comment:
   What is the desired approach here? 
   If method `isMixin` is not critical I can undo the changes or hardcode to 
always return true.
   Implementing `getDeclaredSupertypes` implies implementing at least 2 other 
methods `getDefinition` and `getDeclaredSupertypeNames` and maybe more



-- 
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: dev-unsubscr...@sling.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to