Repository navigation
Deprecate Display.getEdid(); remove unreleased Display.isEdidSynthetic() - #3438
Conversation
Consolidate display data access under Display.getDisplayInfo(): - Deprecate Display.getEdid() (javadoc points to getDisplayInfo().getEdid(); scheduled for removal in the next major version). Java 8 target, so plain @deprecated with the since/removal intent documented in the @deprecated tag. - Remove Display.isEdidSynthetic(). It was added in #3415 during this (still unreleased) 7.4.0 cycle, so removing it now avoids shipping then deprecating a redundant method; DisplayInfo.isEdidSynthetic() remains the accessor. - Migrate internal consumers (DisplayTest, OsHwTextPanel demo) to getDisplayInfo().getEdid(); AbstractDisplayTest keeps getEdid() coverage via @SuppressWarnings until removal. - CHANGELOG: correct the #3415 entry and add the deprecation note.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📜 Recent review details⏰ Context from checks skipped due to timeout. (14)
🧰 Additional context used🧠 Learnings (2)📚 Learning: 2026-07-06T19:25:59.225ZApplied to files:
📚 Learning: 2026-04-12T19:22:09.716ZApplied to files:
🔇 Additional comments (6)
📝 WalkthroughWalkthroughThis PR deprecates ChangesEDID API consolidation under DisplayInfo
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3438 +/- ##
============================================
- Coverage 74.45% 74.38% -0.07%
Complexity 76 76
============================================
Files 580 580
Lines 21980 21979 -1
Branches 3670 3670
============================================
- Hits 16365 16350 -15
- Misses 3580 3590 +10
- Partials 2035 2039 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Consolidates all display data access under
Display.getDisplayInfo(), soDisplayInfois the single accessor going forward.Changes
Display.getEdid()in favor ofgetDisplayInfo().getEdid(). The@deprecatedjavadoc documents "as of 7.4.0" and "scheduled for removal in the next major version" (oshi-common targets Java 8, so plain@Deprecated— nosince/forRemovalelements).Display.isEdidSynthetic(). It was introduced in Add DisplayInfo and EDID encoding to expose display attributes without a raw EDID #3415 during this still-unreleased 7.4.0 cycle, so removing it now avoids shipping-then-deprecating a redundant method.DisplayInfo.isEdidSynthetic()remains the accessor.DisplayTest,OsHwTextPaneldemo) togetDisplayInfo().getEdid();AbstractDisplayTestkeepsgetEdid()coverage via@SuppressWarnings("deprecation")until removal.Displayjavadoc example to lead withgetDisplayInfo().Display.isEdidSynthetic()) and add the deprecation note.Why now
The API surface should be settled before 7.4.0 ships.
isEdidSynthetic()is unreleased, so this is the last free window to drop it without a deprecation cycle; deprecatinggetEdid()in the same release gives consumers a clean pointer to the richerDisplayInfoAPI (including synthetic-EDID displays, currently macOS built-in Retina).Summary by CodeRabbit