Skip to content

[OPENJPA-2981] Remove dead access-type helper methods - #154

Open
rzo1 wants to merge 1 commit into
masterfrom
OPENJPA-2981
Open

[OPENJPA-2981] Remove dead access-type helper methods#154
rzo1 wants to merge 1 commit into
masterfrom
OPENJPA-2981

Conversation

@rzo1

@rzo1 rzo1 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Removes the three private access-type helpers in PersistenceMetaDataDefaults that never had a caller, plus the accessTypeFilter field and AccessTypeFilter class that were only reachable from them.

Remove the private helpers hasMixedAnnotations(Class, OpenJPAConfiguration),
hasFieldStrategyAnnotations(Class) and hasGetterStrategyAnnotations(Class) from
PersistenceMetaDataDefaults. All three were private and had no callers anywhere
in the code base.

They were added in b537665 ("[OPENJPA-2940] Allow mixed FIELD+PROPERTY
annotation placement without @access") as a draft shape of the mixed-annotation
access resolution; the version that actually shipped in that commit was written
inline in determineImplicitAccessType(...), so the helpers were unused from the
moment they were introduced. Commit 58ffe9c ("[OPENJPA-2940] Fix
AccessDefiningFilter for dual-annotated entities and mappedBy resolution") then
rewrote that inline logic and removed the last live uses of the
accessTypeFilter field, leaving its only remaining references inside the dead
helpers.

Consequently the accessTypeFilter field and the AccessTypeFilter nested filter
class, which after that rework are reachable only from the removed methods, are
dropped as well. No other member or import becomes unused.

Raised in review of PR 144.
@rzo1 rzo1 self-assigned this Aug 20, 2026
@rzo1
rzo1 requested a review from solomax August 20, 2026 10:38
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.

2 participants