Skip to content

Extract Solaris hardware common abstract bases (JNA/FFM parity, part 2) - #3368

Merged
dbwiddis merged 6 commits into
oshi:masterfrom
dbwiddis:solaris-hw-common-base
Jun 11, 2026
Merged

dbwiddis merged 6 commits into
oshi:masterfrom
dbwiddis:solaris-hw-common-base

Conversation

@dbwiddis

@dbwiddis dbwiddis commented Jun 11, 2026 •

Copy link
Copy Markdown
Member

Part 2 of 2 of the Solaris JNA/FFM parity cleanup, following #3367 (which did the software.os classes). This gives the Solaris hardware classes the same common-base treatment, matching the AIX/FreeBSD structure. A small part 3 (PowerSource) remains — see below.

What changed

  • HWDiskStore — new abstract SolarisHWDiskStore base in oshi-common holding the disk enumeration (getDisks/createStore, which call the common iostat/lshal/prtvtoc drivers) and the updateAttributes field assignment. The enumeration builds each store through a factory so it is single-sourced; the kstat per-disk I/O read is fetched by the subclasses into a DiskStats POJO.
  • NetworkIF — new abstract SolarisNetworkIF base: shared getNetworks enumeration (via factory) and updateAttributes, with an IfStats POJO for the kstat read.
  • CentralProcessor — new abstract SolarisCentralProcessor base: NUMA mapping, processor-ID feature flags, dmesg physical-processor parsing (via an abstract queryLogicalProcessors hook), the averaged tick rollup, and the kstat -p context-switch/interrupt fallbacks. The kstat-chain queries stay native in the subclasses.
  • GlobalMemory — renamed the JNA concrete to SolarisGlobalMemoryJNA (the common base already existed), dropping the fully-qualified extends on both sides.
  • HAL — renamed the JNA HAL to SolarisHardwareAbstractionLayerJNA to pair with the FFM HAL. As on AIX, the HAL itself stays split (it's a thin factory).

Concrete <Os>FooJNA (oshi-core) and <Os>FooFFM (oshi-core-ffm) subclasses extend each base, so the codebase follows one rulebook across platforms.

Kstat2 stays JNA-only (intentional)

As in part 1: HAS_KSTAT2 and the Kstat2 dual-paths live in the JNA subclasses; FFM uses the legacy kstat chain only, since kstat2 exists only on the JDK 17-capped latest Solaris and illumos forked before it. The JNA CPU overrides queryContextSwitches/queryInterrupts to add the Kstat2 path and delegates to the base for the shared command fallback.

Not in this PR

PowerSource is deferred to a small follow-up — it's static-factory/value-object shaped (the JNA/FFM divergence is interleaved native kstat null-checks inside one static method), so the base+JNA/FFM instance pattern doesn't map cleanly. Left as SolarisPowerSource/SolarisPowerSourceFFM.

Full clean reactor build plus spotless/checkstyle/forbiddenapis/javadoc all pass locally.

Summary by CodeRabbit

  • Refactor
    • Introduced shared Solaris base implementations for CPU, disk, and network to improve reuse across backends.
    • Unified and simplified disk/network/CPU handling so statistics collection is more consistent.
    • Switched Solaris hardware to prefer JNA-backed implementations, improving telemetry accuracy on modern Solaris while retaining legacy fallbacks.

dbwiddis added 5 commits June 10, 2026 19:27
The common abstract SolarisGlobalMemory base already exists; the JNA
concrete shared its simple name and used a fully-qualified extends. Rename
it to SolarisGlobalMemoryJNA (matching the AIX convention) and switch the
FFM concrete to an import so neither needs the fully-qualified name.
Move the disk enumeration (getDisks/createStore, which call the common
iostat/lshal/prtvtoc drivers) and the updateAttributes field assignment
into an abstract SolarisHWDiskStore base in oshi-common. The enumeration
builds each store through a factory so it is shared rather than duplicated;
the kstat per-disk I/O read is fetched by the subclasses into a DiskStats
POJO. SolarisHWDiskStoreJNA keeps the Kstat2 dual-path; the FFM concrete
uses the legacy kstat chain only.
Move the interface enumeration (getNetworks, via a factory) and the
updateAttributes field assignment into an abstract SolarisNetworkIF base in
oshi-common; subclasses fetch the kstat stats into an IfStats POJO.
SolarisNetworkIFJNA keeps the Kstat2 dual-path; the FFM concrete uses the
legacy kstat chain only.
Move the command-based logic into an abstract SolarisCentralProcessor base
in oshi-common: NUMA mapping, processor-ID feature flags, the dmesg
physical-processor parsing (via an abstract queryLogicalProcessors hook),
the averaged tick rollup, and the kstat -p context-switch/interrupt
fallbacks. The kstat-chain queries stay in the subclasses;
SolarisCentralProcessorJNA overrides queryContextSwitches/queryInterrupts to
add the Kstat2 path and delegates to super for the command fallback.
Rename SolarisHardwareAbstractionLayer to SolarisHardwareAbstractionLayerJNA
to pair with the FFM HAL (matching the AIX convention; the HAL itself stays
split, as on AIX) and point its factories at the renamed JNA components.
Update the JNA SystemInfo reference and suppress VisibilityModifier on the
new SolarisHWDiskStore/SolarisNetworkIF public stats POJOs.
@coderabbitai

coderabbitai Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: cb82cc16-73a3-4cb1-bdd4-3575ffd634c5

📥 Commits

Reviewing files that changed from the base of the PR and between f9060c0 and 5028d8c.

📒 Files selected for processing (1)
  • oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisCentralProcessor.java
🚧 Files skipped from review as they are similar to previous changes (1)
  • oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisCentralProcessor.java
📜 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). (15)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: Test JDK 25, windows-latest (+ JNA==FFM)
  • GitHub Check: Analyze (java)
  • GitHub Check: Test JDK 25, macos-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 21, macos-latest
  • GitHub Check: Test JDK 26, macos-latest
  • GitHub Check: Test JDK 26, windows-latest
  • GitHub Check: Test JDK 25, ubuntu-latest (+ JNA==FFM)
  • GitHub Check: JMH Benchmarks, ubuntu-latest
  • GitHub Check: JMH Benchmarks, macos-latest
  • GitHub Check: JMH Benchmarks, windows-latest
  • GitHub Check: Test JDK 25, FreeBSD (+ JNA==FFM)
  • GitHub Check: Lint (Spotless, Checkstyle, ForbiddenAPIs, Javadoc)
  • GitHub Check: Test JDK 25, OpenIndiana (+ JNA==FFM)
  • GitHub Check: Test JDK 25, OpenBSD (+ JNA==FFM)

📝 Walkthrough

Walkthrough

This PR refactors Solaris hardware support in OSHI by introducing a shared abstraction layer. Three new abstract base classes (SolarisCentralProcessor, SolarisHWDiskStore, SolarisNetworkIF) in oshi-common define common query and enumeration logic, while JNA and FFM implementations in oshi-core and oshi-core-ffm extend these bases with platform-specific kstat/kstat2 reads. SystemInfo now routes Solaris platforms through the renamed JNA-backed hardware abstraction layer.

Changes

Solaris HAL Abstraction and Implementations

Layer / File(s) Summary
Abstract Solaris HAL base classes
config/checkstyle-suppressions.xml, oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisCentralProcessor.java, oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisHWDiskStore.java, oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisNetworkIF.java
Three new abstract Solaris hardware classes define shared CPU/disk/network query contracts and enumeration logic. SolarisCentralProcessor implements context switch and interrupt kstat parsing, NUMA mapping, and processor ID extraction, declaring queryLogicalProcessors() for subclass implementation. SolarisHWDiskStore provides attribute mapping from a queryStats() POJO and shared disk discovery via mount/major correlation. SolarisNetworkIF maps interface stats snapshots to standard attributes with shared enumeration. Checkstyle suppressions are added for visibility modifier rules on these classes.
JNA-backed Solaris implementations
oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisCentralProcessorJNA.java, oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisGlobalMemoryJNA.java, oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisHWDiskStoreJNA.java, oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisNetworkIFJNA.java
JNA implementations extend abstract bases. SolarisCentralProcessorJNA delegates to queryLogicalProcessors() with Kstat2-first selection or legacy kstat fallback. SolarisHWDiskStoreJNA and SolarisNetworkIFJNA provide queryStats() implementations that read from kstat/kstat2 with appropriate unit conversions (nanoseconds to milliseconds). Old oshi-core disk and network IF implementations are removed, replaced by the new abstraction pattern.
FFM-backed Solaris implementations
oshi-core-ffm/src/main/java/oshi/hardware/platform/unix/solaris/SolarisCentralProcessorFFM.java, oshi-core-ffm/src/main/java/oshi/hardware/platform/unix/solaris/SolarisGlobalMemoryFFM.java, oshi-core-ffm/src/main/java/oshi/hardware/platform/unix/solaris/SolarisHWDiskStoreFFM.java, oshi-core-ffm/src/main/java/oshi/hardware/platform/unix/solaris/SolarisNetworkIFFFM.java
FFM implementations refactored to extend abstract bases. SolarisCentralProcessorFFM simplifies queryLogicalProcessors() to return only the logical processor list (removed prior dmesg parsing and Quartet construction). SolarisHWDiskStoreFFM and SolarisNetworkIFFFM delegate enumeration to superclass helpers and override queryStats() to read FFM kstat data. SolarisGlobalMemoryFFM imports the abstract base explicitly.
Hardware abstraction layer wiring
oshi-core/src/main/java/oshi/SystemInfo.java, oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisHardwareAbstractionLayerJNA.java
SolarisHardwareAbstractionLayerJNA (renamed from the generic name) serves as the primary Solaris HAL factory, instantiating JNA-backed CPU, memory, disk, and network hardware components. SystemInfo.createHardware() updates the Solaris case to use the renamed JNA-backed HAL, ensuring platforms activate the new abstraction pattern with JNA-specific query paths.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

  • oshi/oshi#3351: Related Solaris disk helper relocation used by the new disk enumeration logic.

"I'm a rabbit writing code with care,
Solaris bases sprout everywhere,
JNA and FFM hop in tune,
Shared helpers under the moon,
Bugs beware — we patched with flair!"

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 17.95% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically summarizes the main change: extracting common abstract base classes for Solaris hardware to improve JNA/FFM parity.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

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

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 Jun 11, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.50199% with 64 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.13%. Comparing base (6e7edc8) to head (5028d8c).

Files with missing lines Patch % Lines
...e/platform/unix/solaris/SolarisHWDiskStoreJNA.java 36.36% 25 Missing and 3 partials ⚠️
...are/platform/unix/solaris/SolarisNetworkIFJNA.java 50.00% 17 Missing and 3 partials ⚠️
...platform/unix/solaris/SolarisCentralProcessor.java 89.28% 2 Missing and 4 partials ⚠️
...common/platform/unix/solaris/SolarisNetworkIF.java 85.18% 3 Missing and 1 partial ⚠️
...tform/unix/solaris/SolarisCentralProcessorJNA.java 81.25% 2 Missing and 1 partial ⚠️
...mmon/platform/unix/solaris/SolarisHWDiskStore.java 96.87% 0 Missing and 1 partial ⚠️
...e/platform/unix/solaris/SolarisHWDiskStoreFFM.java 91.66% 1 Missing ⚠️
...are/platform/unix/solaris/SolarisNetworkIFFFM.java 92.85% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3368      +/-   ##
============================================
+ Coverage     75.09%   75.13%   +0.03%     
  Complexity       76       76              
============================================
  Files           561      564       +3     
  Lines         22416    22374      -42     
  Branches       3701     3681      -20     
============================================
- Hits          16834    16810      -24     
+ Misses         3508     3496      -12     
+ Partials       2074     2068       -6     
Flag Coverage Δ
freebsd 26.21% <0.00%> (+0.04%) ⬆️
linux 29.61% <0.00%> (+0.05%) ⬆️
macos 30.29% <0.00%> (+0.05%) ⬆️
openbsd 25.64% <0.00%> (+0.03%) ⬆️
solaris 26.77% <74.50%> (-0.08%) ⬇️
windows 38.04% <0.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisCentralProcessor.java (1)

31-34: ⚡ Quick win

Avoid mutating the subclass-returned list directly.

initProcessorCounts() currently mutates the list returned by queryLogicalProcessors(). Since the abstract contract allows any List implementation, this can fail with immutable lists at runtime. Copy into a mutable list before fallback insertion.

Proposed fix
-        List<LogicalProcessor> logProcs = queryLogicalProcessors();
+        List<LogicalProcessor> logProcs = new java.util.ArrayList<>(queryLogicalProcessors());
         if (logProcs.isEmpty()) {
             logProcs.add(new LogicalProcessor(0, 0, 0));
         }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisCentralProcessor.java`
around lines 31 - 34, The code mutates the List returned by
queryLogicalProcessors() which may be immutable; in initProcessorCounts() first
copy the result into a mutable list (e.g., new
ArrayList<>(queryLogicalProcessors())) and operate on that copy, then perform
the empty-check and add the fallback LogicalProcessor(0,0,0) to the mutable
copy; ensure any subsequent uses reference this mutable list rather than the
original returned list.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In
`@oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisCentralProcessor.java`:
- Around line 31-34: The code mutates the List returned by
queryLogicalProcessors() which may be immutable; in initProcessorCounts() first
copy the result into a mutable list (e.g., new
ArrayList<>(queryLogicalProcessors())) and operate on that copy, then perform
the empty-check and add the fallback LogicalProcessor(0,0,0) to the mutable
copy; ensure any subsequent uses reference this mutable list rather than the
original returned list.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 4550d937-b130-4139-9383-0d669e7dcca0

📥 Commits

Reviewing files that changed from the base of the PR and between 6e7edc8 and f9060c0.

📒 Files selected for processing (16)
  • config/checkstyle-suppressions.xml
  • oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisCentralProcessor.java
  • oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisHWDiskStore.java
  • oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisNetworkIF.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/unix/solaris/SolarisCentralProcessorFFM.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/unix/solaris/SolarisGlobalMemoryFFM.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/unix/solaris/SolarisHWDiskStoreFFM.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/unix/solaris/SolarisNetworkIFFFM.java
  • oshi-core/src/main/java/oshi/SystemInfo.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisCentralProcessorJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisGlobalMemoryJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisHWDiskStore.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisHWDiskStoreJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisHardwareAbstractionLayerJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisNetworkIF.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisNetworkIFJNA.java
💤 Files with no reviewable changes (2)
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisHWDiskStore.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisNetworkIF.java
📜 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). (14)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: Test JDK 26, macos-latest
  • GitHub Check: JMH Benchmarks, ubuntu-latest
  • GitHub Check: Test JDK 25, macos-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 21, macos-latest
  • GitHub Check: JMH Benchmarks, windows-latest
  • GitHub Check: Test JDK 25, OpenIndiana (+ JNA==FFM)
  • GitHub Check: Test JDK 26, windows-latest
  • GitHub Check: Test JDK 25, windows-latest (+ JNA==FFM)
  • GitHub Check: Analyze (java)
  • GitHub Check: JMH Benchmarks, macos-latest
  • GitHub Check: Test JDK 25, OpenBSD (+ JNA==FFM)
  • GitHub Check: Test JDK 25, FreeBSD (+ JNA==FFM)
  • GitHub Check: Lint (Spotless, Checkstyle, ForbiddenAPIs, Javadoc)
🧰 Additional context used
🧠 Learnings (3)
📚 Learning: 2026-04-06T04:45:47.644Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3121
File: oshi-core/src/main/java/oshi/software/os/linux/LinuxOperatingSystem.java:53-53
Timestamp: 2026-04-06T04:45:47.644Z
Learning: In the oshi/oshi project, only interfaces and classes in the root packages `oshi`, `oshi.hardware`, and `oshi.software.os` are considered the public API. Code in subpackages that represent specific implementations/platforms (e.g., `oshi.software.os.linux`, `oshi.hardware.platform.linux`, and similar subpackages) is implementation detail. When reviewing, do not treat changes to classes in these platform-specific subpackages as public API breaks (for example: making `LinuxOperatingSystem` abstract, narrowing constructor visibility, or adding/removing abstract methods should not be flagged as breaking public API).

Applied to files:

  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisHWDiskStoreJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisGlobalMemoryJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisHardwareAbstractionLayerJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisNetworkIFJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/unix/solaris/SolarisCentralProcessorJNA.java
📚 Learning: 2026-04-12T19:22:09.716Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3149
File: oshi-common/src/main/java/oshi/hardware/common/platform/mac/MacCentralProcessor.java:159-163
Timestamp: 2026-04-12T19:22:09.716Z
Learning: When reviewing OSHI hardware platform code that uses or implements `CentralProcessor`/`PhysicalProcessor.getEfficiency()`, remember the API’s counterintuitive semantics: a *higher* efficiency-class value indicates *greater performance* (lower efficiency). P-cores/“performance cores” should therefore have higher values (e.g., 1) than E-cores/“efficiency cores” (e.g., 0), as documented in the `CentralProcessor` Javadoc. Do not flag code as incorrect solely because ARM_P_CORES or Intel P-cores are assigned higher efficiency values.

Applied to files:

  • oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisNetworkIF.java
  • oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisCentralProcessor.java
  • oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisHWDiskStore.java
📚 Learning: 2026-04-12T19:34:56.879Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3149
File: oshi-common/src/main/java/oshi/hardware/common/platform/mac/MacCentralProcessor.java:159-163
Timestamp: 2026-04-12T19:34:56.879Z
Learning: In OSHI’s Java platform implementations, `PhysicalProcessor.getEfficiency()` / `EfficiencyClass` follow the same convention as Windows `PROCESSOR_RELATIONSHIP.EfficiencyClass`: a *higher* numeric efficiency class value represents *greater performance* and *less efficiency* (typically P-cores higher than E-cores). When reviewing, do not treat cases where P-cores are assigned higher efficiency/class values as a bug—this is intentional cross-platform consistency.

Applied to files:

  • oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisCentralProcessor.java
🔇 Additional comments (14)
oshi-core-ffm/src/main/java/oshi/hardware/platform/unix/solaris/SolarisGlobalMemoryFFM.java (1)

14-18: LGTM!

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

22-31: LGTM!

Also applies to: 64-79

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

15-22: LGTM!

Also applies to: 28-58

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

16-23: LGTM!

Also applies to: 30-62

oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisCentralProcessor.java (1)

40-53: LGTM!

Also applies to: 56-88, 102-145

config/checkstyle-suppressions.xml (1)

65-67: LGTM!

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

17-17: LGTM!

Also applies to: 25-25, 28-28, 90-110, 119-119, 260-260, 279-279

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

14-14: LGTM!

Also applies to: 17-21

oshi-core/src/main/java/oshi/SystemInfo.java (1)

20-20: LGTM!

Also applies to: 157-157

oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisHWDiskStore.java (1)

1-115: LGTM!

oshi-common/src/main/java/oshi/hardware/common/platform/unix/solaris/SolarisNetworkIF.java (1)

1-97: LGTM!

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

1-94: LGTM!

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

1-90: LGTM!

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

31-75: LGTM!

initProcessorCounts() appends a fallback LogicalProcessor when the subclass
returns an empty list, so copy the result into a mutable ArrayList rather
than assuming the abstract queryLogicalProcessors() returned a mutable one.
@dbwiddis
dbwiddis merged commit 49441fd into oshi:master Jun 11, 2026
36 of 38 checks passed
@dbwiddis
dbwiddis deleted the solaris-hw-common-base branch June 11, 2026 03:18
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