Skip to content

Commit

Permalink
Minor clean up of LabelSet
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusmelke committed Jan 2, 2018
1 parent 9510e68 commit efc10e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -34,11 +34,16 @@ public class Labels implements LabelSet
*/
private final long[] labels;

public Labels( long[] labels )
private Labels( long[] labels )
{
this.labels = labels;
}

static Labels from( long[] labels )
{
return new Labels( labels );
}

static Labels from( Collection<Integer> integers )
{
int size = integers.size();
Expand Down
Expand Up @@ -129,7 +129,7 @@ public LabelSet labels()
else
{
//Nothing in tx state, just read the data.
return new Labels( NodeLabelsField.get( this, labelCursor()) );
return Labels.from( NodeLabelsField.get( this, labelCursor()) );
}
}

Expand Down

0 comments on commit efc10e2

Please sign in to comment.