Skip to content

Commit

Permalink
static relationship reference encoding values
Browse files Browse the repository at this point in the history
  • Loading branch information
fickludd committed Mar 1, 2018
1 parent 0a11d48 commit bb00809
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -44,6 +44,7 @@ enum RelationshipReferenceEncoding
/** @see #encodeNoLoopRels(int) */
NO_LOOP_OF_TYPE( 6 );

private static final RelationshipReferenceEncoding[] ENCODINGS = RelationshipReferenceEncoding.values();
final long id;
final long bits;

Expand All @@ -59,7 +60,7 @@ static RelationshipReferenceEncoding parseEncoding( long reference )
{
return NONE;
}
return RelationshipReferenceEncoding.values()[encodingId( reference )];
return ENCODINGS[encodingId( reference )];
}

private static int encodingId( long reference )
Expand Down

0 comments on commit bb00809

Please sign in to comment.