Repository navigation
Free up EDGE_TYPE=-5 for EDGE_GROUP_TYPE - #393
Merged
Merged
Conversation
IMMUTABLE_INDEXED_EDGE_TYPE occupied -5, colliding with the online EdgeRecordType.EDGE_GROUP(-5). Move it to an unused code (-100) and add EDGE_GROUP_TYPE(-5) as a new entry, matching core. Also drop the dead IMMUTABLE_INDEXED_EDGE_TYPE constant/branches that had no live callers. No behavior change.
eazyhozy
marked this pull request as ready for review
July 7, 2026 02:30
Member
Author
|
Offline review feedback from @em3s:
Agreed — will remove |
Per review feedback on #393: since IMMUTABLE_INDEXED_EDGE_TYPE was already being dropped from all branching logic, moving it to an unused code (-100) just kept dead code around under a new code point. Remove the enum entry entirely instead. No behavior change — this entry had no remaining references.
Contributor
|
Optimistic Merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Splits off the
-5rename tweak from #389, per @zipdoki's review comment.EncodedEdgeType.IMMUTABLE_INDEXED_EDGE_TYPEoccupied-5but was never wired to any live encoder/decoder path. Renaming it in place toEDGE_GROUP_TYPEwould have implied-5had always meant EDGE_GROUP, which isn't historically true. Instead:IMMUTABLE_INDEXED_EDGE_TYPEto an unused code (-100).EDGE_GROUP_TYPE(-5)as a new entry, matching core'sEdgeRecordType.EDGE_GROUP(-5).-5references inAbstractEdgeEncoder/DecodedEdge.No behavior change.
Ref #389
Changes
EncodedEdgeType.java: moveIMMUTABLE_INDEXED_EDGE_TYPEto-100, addEDGE_GROUP_TYPE(-5).AbstractEdgeEncoder.java: drop the deadIMMUTABLE_INDEXED_EDGE_TYPEconstant (no callers referenced it).DecodedEdge.java: drop the deadIMMUTABLE_INDEXED_EDGE_TYPEdecode branches (L98-99, L164).BulkEdgeEncoderencodesLabelType.IMMUTABLE_INDEXEDlabels using theINDEXED_EDGE_TYPEtag, notIMMUTABLE_INDEXED_EDGE_TYPE, so no encoded byte stream ever carried this type code and the branch was unreachable.IMMUTABLE_INDEXED_EDGE_TYPEis being moved off-5anyway, leaving the branch in place (just comparing against-100instead) would keep dead code around under a new code point rather than actually cleaning it up as the review comment asked.grep -rn "IMMUTABLE_INDEXED_EDGE_TYPE"acrosscodec-java: the only references were this decode branch and the unusedAbstractEdgeEncoderconstant.How to Test
All existing tests pass; no behavior change.
AI Assistance