Skip to content

Commit

Permalink
NodeState returns read-only relationships set
Browse files Browse the repository at this point in the history
  • Loading branch information
akowal authored and Andrei Koval committed May 8, 2018
1 parent 58f81c9 commit 5a33307
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -20,7 +20,7 @@
package org.neo4j.kernel.impl.api.state;

import org.eclipse.collections.api.iterator.LongIterator;
import org.eclipse.collections.api.set.primitive.MutableIntSet;
import org.eclipse.collections.api.set.primitive.IntSet;
import org.eclipse.collections.impl.iterator.ImmutableEmptyLongIterator;
import org.eclipse.collections.impl.set.mutable.primitive.IntHashSet;

Expand Down Expand Up @@ -111,7 +111,7 @@ public void accept( NodeState.Visitor visitor )
}

@Override
public MutableIntSet relationshipTypes()
public IntSet relationshipTypes()
{
return new IntHashSet();
}
Expand Down Expand Up @@ -323,7 +323,7 @@ private boolean hasRemovedRelationships()
}

@Override
public MutableIntSet relationshipTypes()
public IntSet relationshipTypes()
{
if ( hasAddedRelationships() )
{
Expand Down
Expand Up @@ -20,7 +20,7 @@
package org.neo4j.storageengine.api.txstate;

import org.eclipse.collections.api.iterator.LongIterator;
import org.eclipse.collections.api.set.primitive.MutableIntSet;
import org.eclipse.collections.api.set.primitive.IntSet;

import java.util.Set;

Expand Down Expand Up @@ -59,7 +59,7 @@ void visitLabelChanges( long nodeId, Set<Integer> added, Set<Integer> removed )

void accept( NodeState.Visitor visitor ) throws ConstraintValidationException;

MutableIntSet relationshipTypes();
IntSet relationshipTypes();

long getId();

Expand Down

0 comments on commit 5a33307

Please sign in to comment.