reschke commented on code in PR #1797:
URL: https://github.com/apache/jackrabbit-oak/pull/1797#discussion_r1801045709
##########
oak-jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitSession.java:
##########
@@ -268,6 +268,9 @@ public interface JackrabbitSession extends Session {
*/
@Nullable
default Node getParentOrNull(@NotNull Item item) throws
RepositoryException {
+ if (item instanceof JackrabbitNode) {
+ return ((JackrabbitNode) item).getParentOrNull();
+ }
Review Comment:
I'd put an "else" here (I don't like unbalanced "return"s, but that's
probably just a matter of taste.
--
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]