| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Signed-off-by: Tobias Ibounig <tobias.ibounig@dynatrace.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 6b74093e-23bb-4991-978e-ef8eeec1ea7a 📥 CommitsReviewing files that changed from the base of the PR and between cc837b1 and d8d3088. 📒 Files selected for processing (2)
📝 Walkthrough WalkthroughImmutableMetadata.asUnmodifiableMap() now returns Collections.emptyMap() for empty metadata, and ImmutableMetadataBuilder.build() short-circuits to the ImmutableMetadata.EMPTY singleton when the builder holds no entries. Two new tests verify singleton identity and that the empty map rejects mutation. ChangesImmutableMetadata empty-singleton optimization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment @coderabbitai help to get the list of available commands and usage tips. |
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #1971 +/- ##
============================================
+ Coverage 92.11% 93.11% +0.99%
- Complexity 660 664 +4
============================================
Files 59 59
Lines 1624 1626 +2
Branches 182 183 +1
============================================
+ Hits 1496 1514 +18
+ Misses 80 66 -14
+ Partials 48 46 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR
Related Issues
None
Notes
ImmutableMetadata.builder().build() is the @Builder.Default for ProviderEvaluation.flagMetadata, so every flag evaluation without explicit metadata allocated a throwaway ImmutableMetadata backed by an empty HashMap. Returning EMPTY is safe — ImmutableMetadata has no mutation methods.
asUnmodifiableMap() now returns the JDK Collections.emptyMap() singleton for empty metadata, avoiding the UnmodifiableMap wrapper allocation.
Follow-up Tasks
Summary by CodeRabbit
Bug Fixes
Tests