-
Notifications
You must be signed in to change notification settings - Fork 428
OAK-9819 : Improve Node.hasProperty/getProperty and Node.hasNode/getNode combinations #609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ode combinations
reschke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that equivalent methods already exist in JackrabbitSession. Maybe it would be better to just delegate there. In which case we might be able to do all of this in a default impl in the interface...
I'm also not convinced that getNodeOrNull can return null although the node exists (but is not a JackrabbitNode); maybe it would be better to change the return value to a "regular" node?
|
hi @reschke , thanks for looking into the PR.
not quite. Regarding:
if the node exists but is not accessible it would also return null. |
reschke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All ok; I misread the diffs and did not realize I was indeed looking at the default impl in the interface.
|
@mreutegg , unless you have any concerns i would go ahead a merge the improvement. |
mreutegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NodeImpl is currently defined as implements Node, JackrabbitNode. I think this could be simplified into just implements JackrabbitNode.
…ode combinations (review finding)
|
@mreutegg , good catch! i fixed it. |
|
@joerghoh , just wanted to see if i can invite you for reviews now.... :-) works. please approve or request changes.... or merge to give it a try.... |
@joerghoh , @reschke , @mreutegg , would you have time to take a look this improvement? thanks