Skip to content
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

Surgical multi-relationship removal - Addresses FCREPO-1362 #744

Closed
wants to merge 6 commits into from

Conversation

whikloj
Copy link
Collaborator

@whikloj whikloj commented Mar 6, 2015

- Check each value of multi value in a reference or weak reference Property when deleting a node, remove only the node being deleted.

** Node comparison incorrect **
@@ -257,7 +260,22 @@ public void delete() {
final Iterator<Property> inboundProperties = Iterators.concat(references, weakReferences);

while (inboundProperties.hasNext()) {
inboundProperties.next().remove();
final Property prop = inboundProperties.next();
final List<Value> newVals = new ArrayList<Value>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the diamond operator: new ArrayList<>().

@awoods
Copy link

awoods commented Mar 13, 2015

Resolved with: 4a77e57

@awoods awoods closed this Mar 13, 2015
@whikloj whikloj deleted the FCREPO-1362 branch October 22, 2016 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants