Skip to content

Dedup NetworkIF native stats/model and test the Windows Vista legacy path - #3458

Merged
dbwiddis merged 2 commits into
oshi:masterfrom
dbwiddis:dedup-networkif-native
Jul 13, 2026
Merged

dbwiddis merged 2 commits into
oshi:masterfrom
dbwiddis:dedup-networkif-native

Conversation

@dbwiddis

@dbwiddis dbwiddis commented Jul 13, 2026 •

Copy link
Copy Markdown
Member

Summary

Finishes the NetworkIF half of Item 6 — the per-platform native updateAttributes/model dedup that the enumeration-loop hoist (#3455) left behind.

Changes

  • Mac: updateNetworkStats(Map<Integer,IFdata>) was byte-identical across the JNA and FFM twins (both map the shared IFdata POJO to fields). Hoist it and updateAttributes into MacNetworkIF with a queryIFdata(int) hook; the twins keep only their native display-name lookup.
  • Linux: the vendor/model formatting ("vendor model" / "model" / fallback) was triplicated across both udev twins and the sysfs reader. Extract a shared formatModel(vendor, model, fallback) helper into LinuxNetworkIF.
  • Windows: introduce a WindowsNetworkIF base with an IfStats carrier and a queryStats() hook (the Solaris/AIX pattern), hoisting the five interface-detail getters, fields, and updateAttributes out of both twins. The JNA MIB_IFROW2 (Vista+) vs pre-Vista MIB_IFROW selection becomes an overridable isVistaOrGreater() seam, and WindowsNetworkIfJNA is no longer final so a test can force the legacy path.
  • Added WindowsNetworkIF's public IfStats POJO to the checkstyle VisibilityModifier suppressions (same as Solaris/AIX IfStats).

Vista legacy test

WindowsNetworkIfLegacyTest (Windows-only) forces isVistaOrGreater() off and runs the real GetIfEntry (MIB_IFROW) query against every interface, asserting the pre-Vista path succeeds for at least one and reports the same ifType as the modern MIB_IFROW2 path. Only ifType is compared — the byte/packet counters legitimately differ (pre-Vista uses unsigned 32-bit counters that wrap) and physical-medium/alias/oper-status aren't in the legacy struct. This is the #3454 pattern applied to a branch that's been dead on CI for ~15 years; a red result here means we found a real bug in that path.

Behavior

No user-facing change. Net raw LOC is up (+120) because the new Windows base scaffolding + the 65-line legacy test are additions; the duplication (Mac stats ×2, Linux format ×3, Windows getters/updateAttributes ×2) is collapsed to single-source.

Testing

  • spotless / checkstyle / forbiddenapis / javadoc: clean
  • Clean full-reactor install: BUILD SUCCESS, 0 tests failed
  • NativeComparisonTest.networkIfUpdateAttributes() JNA==FFM: passes on macOS
  • The pre-Vista Windows path is validated by the Windows CI runners here

Summary by CodeRabbit

  • New Features

    • Enhanced Windows network interface reporting with shared stats handling across modern and legacy querying paths.
  • Bug Fixes

    • Improved vendor/model network interface display name formatting with consistent handling of blank values and fallbacks (Linux and FFM/JNA variants).
    • Refined macOS network statistics refresh so interface stats are populated consistently from shared per-interface data.
    • Updated Windows JNA/FFM network attribute collection to use the unified stats mechanism for more consistent results.
  • Tests

    • Added legacy Windows network interface statistics coverage to validate legacy querying behavior.

…path

Finishes the per-platform NetworkIF dedup begun with the enumeration hoist.

Mac: updateNetworkStats was byte-identical across JNA and FFM (both map the
shared IFdata POJO); hoist it and updateAttributes into MacNetworkIF with a
queryIFdata(int) hook, leaving only the native display-name lookup in the twins.

Linux: the vendor/model formatting was triplicated (both udev twins plus the
sysfs reader); extract a formatModel(vendor, model, fallback) helper.

Windows: introduce a WindowsNetworkIF base with an IfStats carrier and a
queryStats() hook (the Solaris/AIX pattern), hoisting the five interface-detail
getters, fields, and updateAttributes out of both twins. The JNA MIB_IFROW2 vs
pre-Vista MIB_IFROW selection becomes an overridable isVistaOrGreater() seam,
and WindowsNetworkIfJNA is no longer final so a test can force the legacy path.

Add WindowsNetworkIfLegacyTest (Windows-only): it runs the real GetIfEntry
(MIB_IFROW) query with the version gate forced off and asserts the pre-Vista
path succeeds and reports the same ifType as the modern path -- catching a
rotted legacy path that is otherwise dead on CI (runners are all Vista+).

No user-facing change; NetworkIF JNA==FFM comparison passes.
@coderabbitai

coderabbitai Bot commented Jul 13, 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: e03e60e2-dc88-4378-a360-c03aca7be13f

📥 Commits

Reviewing files that changed from the base of the PR and between 423e1f4 and fb254ba.

📒 Files selected for processing (3)
  • oshi-common/src/main/java/oshi/hardware/common/platform/windows/WindowsNetworkIF.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfFFM.java
  • oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfJNA.java
💤 Files with no reviewable changes (2)
  • oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfJNA.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfFFM.java
🚧 Files skipped from review as they are similar to previous changes (1)
  • oshi-common/src/main/java/oshi/hardware/common/platform/windows/WindowsNetworkIF.java
📜 Recent review details
⏰ Context from checks skipped due to timeout. (13)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: Test JDK 26, windows-latest
  • GitHub Check: Test JDK 21, windows-latest
  • GitHub Check: Test JDK 25, windows-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 25, ubuntu-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 26, macos-latest
  • GitHub Check: Test JDK 21, macos-latest
  • GitHub Check: Test JDK 25, macos-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 25, FreeBSD (+ JNA==FFM)
  • GitHub Check: Test JDK 25, OpenIndiana (+ JNA==FFM)
  • GitHub Check: Lint (Spotless, Checkstyle, ForbiddenAPIs, Javadoc)
  • GitHub Check: Test JDK 25, OpenBSD (+ JNA==FFM)
  • GitHub Check: Analyze (java)

📝 Walkthrough

Walkthrough

The PR centralizes Linux model formatting, moves macOS statistics mapping into a shared base flow, and adds a Windows statistics base used by JNA and FFM implementations, including legacy-path coverage.

Changes

Network interface refactor

Layer / File(s) Summary
Shared Linux model formatting
oshi-common/.../LinuxNetworkIF.java, oshi-core*/.../LinuxNetworkIF*.java
Linux implementations use formatModel for consistent vendor/model display-string formatting and fallback behavior.
Shared macOS statistics mapping
oshi-common/.../MacNetworkIF.java, oshi-core*/.../MacNetworkIf*.java
MacNetworkIF maps queried IFdata values into interface statistics while JNA and FFM subclasses provide the data map.
Windows statistics base and backends
oshi-common/.../WindowsNetworkIF.java, oshi-core*/.../WindowsNetworkIf*.java, oshi-core/src/test/.../WindowsNetworkIfLegacyTest.java, config/checkstyle-suppressions.xml
WindowsNetworkIF maps IfStats values from native queries; JNA supports Vista and legacy paths, FFM maps GetIfEntry2, and a test exercises legacy behavior.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant WindowsNetworkIF
  participant WindowsNetworkIfJNA
  participant WindowsNetworkIfFFM
  participant IPHelperAPI
  WindowsNetworkIF->>WindowsNetworkIfJNA: queryStats()
  WindowsNetworkIfJNA->>IPHelperAPI: Query Vista or legacy interface statistics
  IPHelperAPI-->>WindowsNetworkIfJNA: IfStats values
  WindowsNetworkIF->>WindowsNetworkIfFFM: queryStats()
  WindowsNetworkIfFFM->>IPHelperAPI: GetIfEntry2
  IPHelperAPI-->>WindowsNetworkIfFFM: IfStats values
  WindowsNetworkIF->>WindowsNetworkIF: update interface fields
Loading

Possibly related PRs

  • oshi/oshi#3176: Both changes cover the shared Windows network base and FFM migration.
  • oshi/oshi#3275: Both changes consolidate network-stat fields and backend update flows into shared base classes.
  • oshi/oshi#3391: Both changes use direct assignment in shared network-statistics update paths.

Poem

A rabbit sees counters hop in line,
JNA and FFM now share one design.
Mac maps its data, Linux finds its name,
Windows queries old and new paths the same.
Tests nibble legacy bugs with care—
Clean stats and carrots everywhere! 🐇

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.00% 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 summarizes the main deduplication work and the added Windows legacy-path test.
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.
✨ 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.

@codecov

codecov Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.74%. Comparing base (59553d4) to head (fb254ba).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...hardware/platform/windows/WindowsNetworkIfJNA.java 79.06% 7 Missing and 2 partials ⚠️
...ware/common/platform/windows/WindowsNetworkIF.java 90.62% 2 Missing and 1 partial ⚠️
...shi/hardware/common/platform/mac/MacNetworkIF.java 88.23% 1 Missing and 1 partial ⚠️
...hardware/platform/windows/WindowsNetworkIfFFM.java 94.44% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3458      +/-   ##
============================================
+ Coverage     74.70%   74.74%   +0.03%     
- Complexity       76     2589    +2513     
============================================
  Files           586      587       +1     
  Lines         21838    21830       -8     
  Branches       3663     3656       -7     
============================================
+ Hits          16315    16316       +1     
+ Misses         3488     3475      -13     
- Partials       2035     2039       +4     
Flag Coverage Δ
freebsd 26.95% <5.00%> (-0.02%) ⬇️
linux 31.58% <6.66%> (+0.01%) ⬆️
macos 31.99% <19.16%> (-0.12%) ⬇️
openbsd 26.42% <5.00%> (+<0.01%) ⬆️
solaris 28.45% <5.00%> (-0.04%) ⬇️
windows 40.07% <71.66%> (+0.15%) ⬆️

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 (2)
oshi-core-ffm/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfFFM.java (1)

32-32: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Hoist CONNECTOR_PRESENT_BIT to WindowsNetworkIF instead of duplicating it here and in WindowsNetworkIfJNA.

Both backends define the identical bit mask for the same native flag; this PR's stated goal is consolidating shared Windows stats logic into the common base.

♻️ Proposed refactor
-    private static final byte CONNECTOR_PRESENT_BIT = 0b00000100;
-
     public WindowsNetworkIfFFM(NetworkInterface netint) throws InstantiationException {

Add the constant once in WindowsNetworkIF (e.g. protected static final byte CONNECTOR_PRESENT_BIT = 0b00000100;) and reference it from both WindowsNetworkIfJNA and WindowsNetworkIfFFM, removing their local copies.

🤖 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-core-ffm/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfFFM.java`
at line 32, Move CONNECTOR_PRESENT_BIT into the shared WindowsNetworkIF class as
a protected constant, then update WindowsNetworkIfJNA and WindowsNetworkIfFFM to
reference that inherited constant and remove their duplicate declarations.
oshi-common/src/main/java/oshi/hardware/common/platform/windows/WindowsNetworkIF.java (1)

37-53: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

IfStats as a mutable public-field carrier.

Fine as an internal transfer object between backend query and base-class mapping; consider final fields set via a constructor for stronger invariants if this carrier grows further.

🤖 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/windows/WindowsNetworkIF.java`
around lines 37 - 53, Update the WindowsNetworkIF.IfStats transfer object to use
final fields initialized through a constructor instead of mutable public fields.
Ensure the constructor accepts and assigns every existing statistic, alias, and
operational-status value, and update its creation sites accordingly while
preserving the current backend-to-base-class mapping.
🤖 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/windows/WindowsNetworkIF.java`:
- Around line 37-53: Update the WindowsNetworkIF.IfStats transfer object to use
final fields initialized through a constructor instead of mutable public fields.
Ensure the constructor accepts and assigns every existing statistic, alias, and
operational-status value, and update its creation sites accordingly while
preserving the current backend-to-base-class mapping.

In
`@oshi-core-ffm/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfFFM.java`:
- Line 32: Move CONNECTOR_PRESENT_BIT into the shared WindowsNetworkIF class as
a protected constant, then update WindowsNetworkIfJNA and WindowsNetworkIfFFM to
reference that inherited constant and remove their duplicate declarations.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 4edfe35d-545b-4583-90a0-2acae092be93

📥 Commits

Reviewing files that changed from the base of the PR and between 59553d4 and 423e1f4.

📒 Files selected for processing (11)
  • config/checkstyle-suppressions.xml
  • oshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxNetworkIF.java
  • oshi-common/src/main/java/oshi/hardware/common/platform/mac/MacNetworkIF.java
  • oshi-common/src/main/java/oshi/hardware/common/platform/windows/WindowsNetworkIF.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/linux/LinuxNetworkIFFFM.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/mac/MacNetworkIfFFM.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfFFM.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxNetworkIFJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/mac/MacNetworkIfJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfJNA.java
  • oshi-core/src/test/java/oshi/hardware/platform/windows/WindowsNetworkIfLegacyTest.java
📜 Review details
⏰ Context from checks skipped due to timeout. (13)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: Test JDK 26, windows-latest
  • GitHub Check: Test JDK 26, macos-latest
  • GitHub Check: Test JDK 25, windows-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 25, macos-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 25, ubuntu-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 21, windows-latest
  • GitHub Check: Test JDK 21, macos-latest
  • GitHub Check: Test JDK 25, FreeBSD (+ JNA==FFM)
  • GitHub Check: Test JDK 25, OpenIndiana (+ JNA==FFM)
  • GitHub Check: Test JDK 25, OpenBSD (+ JNA==FFM)
  • GitHub Check: Lint (Spotless, Checkstyle, ForbiddenAPIs, Javadoc)
  • GitHub Check: Analyze (java)
🧰 Additional context used
🧠 Learnings (3)
📚 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/linux/LinuxNetworkIF.java
  • oshi-common/src/main/java/oshi/hardware/common/platform/windows/WindowsNetworkIF.java
  • oshi-common/src/main/java/oshi/hardware/common/platform/mac/MacNetworkIF.java
📚 Learning: 2026-07-06T19:25:59.225Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3432
File: oshi-common/src/main/java/oshi/util/ExceptionUtil.java:26-56
Timestamp: 2026-07-06T19:25:59.225Z
Learning: In this repo’s SLF4J 1.x-compatible logging code, do not flag cases where a logger call uses SLF4J 1.6+ implicit-cause handling—e.g., `log.error("...{}", value, t)` (or similar with a single `{}` placeholder) where `t` is passed as the final/trailing argument. SLF4J will attach `t` as the log event’s cause with the full stack trace; this is equivalent to SLF4J 2.x’s fluent `atLevel(...).setCause(t).log(...)` and is intentionally used to preserve SLF4J 1.x runtime compatibility.

Applied to files:

  • oshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxNetworkIF.java
  • oshi-common/src/main/java/oshi/hardware/common/platform/windows/WindowsNetworkIF.java
  • oshi-core/src/main/java/oshi/hardware/platform/linux/LinuxNetworkIFJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/mac/MacNetworkIfJNA.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/mac/MacNetworkIfFFM.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/linux/LinuxNetworkIFFFM.java
  • oshi-core-ffm/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfFFM.java
  • oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfJNA.java
  • oshi-common/src/main/java/oshi/hardware/common/platform/mac/MacNetworkIF.java
📚 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/linux/LinuxNetworkIFJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/mac/MacNetworkIfJNA.java
  • oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfJNA.java
🔇 Additional comments (13)
oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsNetworkIfJNA.java (3)

36-36: 📐 Maintainability & Code Quality

CONNECTOR_PRESENT_BIT is duplicated in WindowsNetworkIfFFM.

See the comment on WindowsNetworkIfFFM.java line 32 — this constant is redeclared identically there. Given this PR's goal of hoisting shared Windows stats fields into WindowsNetworkIF, consider moving it to the base class.


19-31: LGTM!


52-117: Vista/legacy field mapping verified correct.

Cross-checked against the pre-refactor merged WindowsNetworkIF implementation; field mappings, unsigned-widening, and "closest proxy" semantics for collisions/inDrops are preserved unchanged.

oshi-common/src/main/java/oshi/hardware/common/platform/linux/LinuxNetworkIF.java (1)

50-71: LGTM!

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

31-44: LGTM!

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

37-55: LGTM!

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

48-83: LGTM!

config/checkstyle-suppressions.xml (1)

93-96: LGTM!

oshi-common/src/main/java/oshi/hardware/common/platform/mac/MacNetworkIF.java (1)

8-76: LGTM!

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

68-71: LGTM!

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

72-75: LGTM!

oshi-core/src/test/java/oshi/hardware/platform/windows/WindowsNetworkIfLegacyTest.java (1)

1-65: LGTM!

oshi-common/src/main/java/oshi/hardware/common/platform/windows/WindowsNetworkIF.java (1)

32-35: 🩺 Stability & Availability

No change needed: constructor initialization is safe here
updateAttributes() is called from the base constructor, but WindowsNetworkIfJNA.queryStats() and WindowsNetworkIfFFM.queryStats() don’t depend on subclass instance state, and the test-only LegacyNetworkIf override only flips a version gate. No action needed.

			> Likely an incorrect or invalid review comment.

The connector-present flag bit was declared identically in both the JNA and
FFM Windows NetworkIF subclasses. Move it to the shared WindowsNetworkIF base
as a protected constant and reference the inherited value.
@dbwiddis
dbwiddis merged commit 6f656a8 into oshi:master Jul 13, 2026
32 of 33 checks passed
@dbwiddis
dbwiddis deleted the dedup-networkif-native branch July 13, 2026 03:34
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