Skip to content

Fix Site Build - #3116

Merged
dbwiddis merged 1 commit into
oshi:masterfrom
dbwiddis:fix-site
Apr 4, 2026
Merged

dbwiddis merged 1 commit into
oshi:masterfrom
dbwiddis:fix-site

Conversation

@dbwiddis

@dbwiddis dbwiddis commented Apr 4, 2026 •

Copy link
Copy Markdown
Member

Failing on oshi-core-java11 with a fully qualified link to a non-published page.

Also tuned up javadoc links to dependencies and isolated the eclipse import into its own profile.

Cherry-picked from 6ae37f0 which was just used to successfully publish the site.

@hazendaz FYI.

Summary by CodeRabbit

  • Documentation

    • Improved and standardized Javadoc formatting across hardware abstraction classes.
  • Chores

    • Updated Maven Javadoc plugin configuration to explicitly configure external documentation links for dependencies.
    • Added Eclipse IDE Maven lifecycle mapping profile for improved IDE integration.

@coderabbitai

coderabbitai Bot commented Apr 4, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d1595d7a-6ff6-43df-883c-3aa2e3bd0c58

📥 Commits

Reviewing files that changed from the base of the PR and between 764ac88 and 1254855.

📒 Files selected for processing (11)
  • oshi-core/src/main/java/oshi/driver/windows/DxgiAdapterInfo.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxGraphicsCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxSoundCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/mac/MacGraphicsCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/mac/MacSoundCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/freebsd/FreeBsdGraphicsCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/openbsd/OpenBsdGraphicsCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisGraphicsCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsGraphicsCard.java
  • oshi-core/src/main/java/oshi/software/os/OperatingSystem.java
  • pom.xml
📜 Recent review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: Test JDK 25, windows-latest
  • GitHub Check: Test JDK 25, macos-latest
  • GitHub Check: Test JDK 11, windows-latest
  • GitHub Check: Test JDK 21, macos-latest
  • GitHub Check: Test JDK 21, windows-latest
  • GitHub Check: Test JDK 25, ubuntu-latest
  • GitHub Check: Test JDK 11, macos-latest
  • GitHub Check: Analyze (java)
🧰 Additional context used
🧠 Learnings (4)
📚 Learning: 2026-03-29T20:01:06.452Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3014
File: oshi-core-java11/src/main/java/module-info.java:10-17
Timestamp: 2026-03-29T20:01:06.452Z
Learning: In the oshi project, `oshi-core-java25/src/main/java/module-info.java` intentionally does NOT export `oshi.util.platform.unix.freebsd`, `oshi.util.platform.unix.openbsd`, or `oshi.util.platform.unix.solaris`, because the FFM (Foreign Function & Memory) implementation only supports Windows, macOS, and Linux. This differs from `oshi-core-java11/src/main/java/module-info.java` which exports all Unix platform packages. The asymmetry is by design.

Applied to files:

  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisGraphicsCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxSoundCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/mac/MacSoundCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/freebsd/FreeBsdGraphicsCard.java
📚 Learning: 2026-04-03T18:44:46.910Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3112
File: oshi-core/src/main/java/oshi/PlatformEnum.java:63-66
Timestamp: 2026-04-03T18:44:46.910Z
Learning: In oshi/oshi PlatformEnum.java, the DRAGONFLYBSD enum constant is intentionally added for platform detection only (no implementation classes exist yet). It allows UnsupportedOperationException messages to say "DragonFly BSD" rather than "Unknown". Full DragonFly BSD support is tracked in issue `#2583`. Do not flag the missing switch-case implementations as a bug.

Applied to files:

  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisGraphicsCard.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/freebsd/FreeBsdGraphicsCard.java
📚 Learning: 2026-04-03T02:07:47.621Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3110
File: oshi-core-java25/src/main/java/oshi/hardware/platform/mac/MacHWDiskStoreFFM.java:119-121
Timestamp: 2026-04-03T02:07:47.621Z
Learning: In `oshi-core-java25/src/main/java/oshi/hardware/platform/mac/MacHWDiskStoreFFM.java` (and similar FFM/API implementations in OSHI), the `updateAttributes()` method intentionally uses `catch (Throwable e) { return false; }` without logging. This is by design: `updateAttributes()` is a public API method whose contract is to return `false` on failure; callers consume the boolean and would never see log output, so adding a log statement is not desired.

Applied to files:

  • oshi-core/src/main/java/oshi/hardware/platform/mac/MacSoundCard.java
📚 Learning: 2026-04-03T18:43:50.370Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3112
File: oshi-core/src/main/java/oshi/PlatformEnum.java:99-100
Timestamp: 2026-04-03T18:43:50.370Z
Learning: In oshi/oshi PlatformEnum.java, the DragonFly BSD detection uses `osName.equalsIgnoreCase("dragonflybsd")` intentionally, mirroring the exact same check in JNA's `Platform.java` source. Java's `os.name` property on DragonFly BSD is "dragonflybsd" (no space), so `startsWith("DragonFly")` is NOT the correct pattern here. Do not suggest changing it to `startsWith`.

Applied to files:

  • oshi-core/src/main/java/oshi/hardware/platform/unix/freebsd/FreeBsdGraphicsCard.java
🔇 Additional comments (14)
oshi-core/src/main/java/oshi/software/os/OperatingSystem.java (1)

343-345: Javadoc update looks correct and safe.

This wording/link-style change is consistent with the site-build fix intent and does not affect behavior.

pom.xml (2)

363-368: Good Javadoc link configuration hardening.

Disabling auto-detection and providing explicit external links should make site/javadoc generation more deterministic.


913-951: Nice isolation of Eclipse-specific lifecycle mapping.

Moving m2e metadata into its own profile keeps standard Maven builds cleaner while preserving IDE behavior when activated.

oshi-core/src/main/java/oshi/driver/windows/DxgiAdapterInfo.java (1)

14-14: Doc reference simplification is fine here.

No functional impact, and it matches the broader Javadoc normalization in this PR.

oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxGraphicsCard.java (1)

66-68: Javadoc cleanup looks good.

The updated inline/reference style is consistent and does not change behavior.

oshi-core/src/main/java/oshi/hardware/platform/mac/MacGraphicsCard.java (1)

47-49: Looks good — doc references are now consistent.

No concerns with this Javadoc-only adjustment.

oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisGraphicsCard.java (1)

2-2: All good on these non-functional updates.

Copyright range and Javadoc reference cleanups are consistent with the rest of the PR.

Also applies to: 39-41

oshi-core/src/main/java/oshi/hardware/platform/mac/MacSoundCard.java (1)

2-2: Non-functional cleanup looks correct.

No issues with these header/Javadoc adjustments.

Also applies to: 36-38

oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsGraphicsCard.java (1)

130-130: Javadoc adjustments are clean and consistent.

No functional concerns on this change.

Also applies to: 136-136

oshi-core/src/main/java/oshi/hardware/platform/unix/openbsd/OpenBsdGraphicsCard.java (1)

42-44: LGTM! Javadoc link fix resolves the build issue.

The change from {@link} to {@code} for AbstractHardwareAbstractionLayer correctly addresses the "fully qualified link to a non-published page" issue mentioned in the PR description. The @return tag appropriately uses {@link} for the published OpenBsdGraphicsCard class.

oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxSoundCard.java (2)

2-2: LGTM! Copyright year updated appropriately.

The copyright year range has been updated to 2018-2026, reflecting the current year.


140-142: LGTM! Javadoc link fix is consistent with the PR objective.

The Javadoc changes match the pattern applied across all platform-specific hardware classes, replacing {@link} with {@code} for AbstractHardwareAbstractionLayer to resolve the non-published page link issue.

oshi-core/src/main/java/oshi/hardware/platform/unix/freebsd/FreeBsdGraphicsCard.java (2)

2-2: LGTM! Copyright year updated appropriately.

The copyright year range has been updated to 2020-2026, reflecting the current year.


40-42: LGTM! Javadoc changes are consistent and correct.

The Javadoc modifications follow the same pattern applied across all platform-specific hardware classes in this PR, appropriately using {@code} for the non-published AbstractHardwareAbstractionLayer reference while maintaining {@link} for the published return type.


📝 Walkthrough

Walkthrough

This PR updates Javadoc references across multiple platform-specific hardware classes, simplifying fully-qualified class names to unqualified forms and converting certain {@link} tags to {@code} tags. Maven build configuration is also updated to explicitly manage Javadoc external links and reorganize the lifecycle-mapping plugin into a conditional m2e profile.

Changes

Cohort / File(s) Summary
Platform-specific GraphicsCard Javadoc updates
oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxGraphicsCard.java, oshi-core/src/main/java/oshi/hardware/platform/mac/MacGraphicsCard.java, oshi-core/src/main/java/oshi/hardware/platform/unix/freebsd/FreeBsdGraphicsCard.java, oshi-core/src/main/java/oshi/hardware/platform/unix/openbsd/OpenBsdGraphicsCard.java, oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisGraphicsCard.java, oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsGraphicsCard.java
Simplified Javadoc references for getGraphicsCards() by converting fully-qualified class names to unqualified forms and replacing {@link} with {@code} for AbstractHardwareAbstractionLayer.
Platform-specific SoundCard Javadoc updates
oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxSoundCard.java, oshi-core/src/main/java/oshi/hardware/platform/mac/MacSoundCard.java
Updated Javadoc for getSoundCards() to remove fully-qualified references and simplify class name links. MacSoundCard copyright year also updated from 2018-2022 to 2018-2026.
Other hardware/OS Javadoc updates
oshi-core/src/main/java/oshi/driver/windows/DxgiAdapterInfo.java, oshi-core/src/main/java/oshi/software/os/OperatingSystem.java
Simplified Javadoc references: converted {@link} tags to {@code} for class references and changed fully-qualified to unqualified class names.
Maven build configuration
pom.xml
Disabled automatic Javadoc link detection (detectLinks: true → false) and explicitly configured external links for JNA, JUnit Jupiter API, and Hamcrest. Moved Eclipse lifecycle-mapping plugin from main pluginManagement into a conditional m2e profile activated by the m2e.version property.
FreeBsd copyright update
oshi-core/src/main/java/oshi/hardware/platform/unix/freebsd/FreeBsdGraphicsCard.java
Copyright year extended from 2020-2022 to 2020-2026.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Javadoc links now trim their names,
From qualified to simple frames,
Maven config's dance rearranged,
In m2e's profile, safely staged!
Hop along to cleaner docs! 🌿

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Fix Site Build' is vague and generic. While related to the changeset, it does not clearly convey what the actual problem is or how it was fixed. Consider a more descriptive title such as 'Fix Javadoc links and Maven configuration for site build' to better communicate the specific changes made.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed Docstring coverage is 81.25% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
✨ Simplify code
  • Create PR with simplified code

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Apr 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.72%. Comparing base (764ac88) to head (1254855).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3116      +/-   ##
==========================================
+ Coverage   66.53%   67.72%   +1.18%     
==========================================
  Files          37       37              
  Lines        2023     2023              
  Branches      336      336              
==========================================
+ Hits         1346     1370      +24     
+ Misses        562      536      -26     
- Partials      115      117       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbwiddis
dbwiddis merged commit d6d7614 into oshi:master Apr 4, 2026
14 checks passed
@dbwiddis
dbwiddis deleted the fix-site branch April 12, 2026 18:07
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.

1 participant