Repository navigation
JAVA-7343 Exclude enum types from value-based types - #6549
Conversation
Code Review ✅ Approved 🟡 Medium riskExempting enums from value-based type detection changes identity and lock diagnostics, potentially suppressing findings for enum usages. Excludes enum types from value-based type detection in Verification Rules 2/2 met Repos 5 inspected · PRs 1 inspectedFunctional validation No results Rules 2 passed 2 not applicable
Broader impact Repos 5 inspected PRs 1 inspectedCross-repo 5 repositories inspected 0 open impacts
Cross-PR 1 PR inspected 0 open impacts
Auto-approval Not enabledFor more verification details, comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|
david-schroeter
left a comment
There was a problem hiding this comment.
This PR looks good to me.
Should we maybe mention that exception in the RSPEC? Since for now we say all the classes in the java.time package and its sub-packages, except Clock. But that only exclude Clock maybe a mention to enum would clarify the rule. What do you think?
Yes, good point. I'll open another PR in RSPEC to update the description 👍 |




Summary by Gitar
TypeUtils.isValueBasedTypeTypeUtilsTestcase covering enums such asMonth,DayOfWeek, andTimeUnitValueBasedObjectIdentityCheckSampleandValueBasedObjectUsedForLockCheckcases for enum comparison and lockingThis will update automatically on new commits.