Native Operating System and Hardware Information
This report summarizes scanner evidence for oshi/oshi, a Java project with 5,274 GitHub stars. SynthScan examined 190,069 lines of code across 1517 source files, recording 64 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 1.2 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 43 finding(s).
Are imports declared and package/API names verified? 19 finding(s).
Are wrappers, guards, and repeated structures necessary? 2 finding(s).
Which changes need focused human review? 64 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 64 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …i-common/src/main/java/oshi/util/driver/linux/Who.java | 60 | oshi.util.driver.unix.Who.matchUnix(whoList, s); | CODE |
| CRITICAL | …oshi/ffm/platform/windows/com/IWbemClassObjectFFM.java | 82 | MemorySegment wszName = oshi.ffm.platform.windows.WindowsForeignFunctions.toWideString(arena, propertyName); | CODE |
| CRITICAL | oshi-core-ffm/src/main/java/oshi/driver/mac/WhoFFM.java | 79 | return oshi.util.driver.unix.Who.queryWho(); | CODE |
| CRITICAL | oshi-core-ffm/src/main/java/oshi/driver/mac/WhoFFM.java | 83 | return oshi.util.driver.unix.Who.queryWho(); | CODE |
| CRITICAL | …ffm/src/main/java/oshi/driver/unix/freebsd/WhoFFM.java | 68 | return oshi.util.driver.unix.Who.queryWho(); | CODE |
| CRITICAL | …ffm/src/main/java/oshi/driver/unix/freebsd/WhoFFM.java | 72 | return oshi.util.driver.unix.Who.queryWho(); | CODE |
| CRITICAL | …ffm/src/main/java/oshi/driver/unix/solaris/WhoFFM.java | 68 | return oshi.util.driver.unix.Who.queryWho(); | CODE |
| CRITICAL | …ffm/src/main/java/oshi/driver/unix/solaris/WhoFFM.java | 72 | return oshi.util.driver.unix.Who.queryWho(); | CODE |
| CRITICAL | …i-core-ffm/src/main/java/oshi/driver/linux/WhoFFM.java | 83 | return oshi.util.driver.linux.Who.queryWho(); | CODE |
| CRITICAL | …i-core-ffm/src/main/java/oshi/driver/linux/WhoFFM.java | 90 | return oshi.util.driver.linux.Who.queryWho(); | CODE |
| CRITICAL | …va/oshi/software/os/linux/LinuxOperatingSystemFFM.java | 115 | return USE_WHO_COMMAND ? oshi.util.driver.linux.Who.queryWho() : WhoFFM.queryUtxent(); | CODE |
| CRITICAL | oshi-core/src/main/java/oshi/driver/mac/Who.java | 64 | return oshi.util.driver.unix.Who.queryWho(); | CODE |
| CRITICAL | …i-core/src/main/java/oshi/driver/unix/freebsd/Who.java | 65 | return oshi.util.driver.unix.Who.queryWho(); | CODE |
| CRITICAL | …i-core/src/main/java/oshi/driver/unix/solaris/Who.java | 65 | return oshi.util.driver.unix.Who.queryWho(); | CODE |
| CRITICAL | oshi-core/src/main/java/oshi/driver/linux/WhoJNA.java | 96 | return oshi.util.driver.linux.Who.queryWho(); | CODE |
| CRITICAL | …va/oshi/software/os/linux/LinuxOperatingSystemJNA.java | 109 | return USE_WHO_COMMAND ? oshi.util.driver.linux.Who.queryWho() : WhoJNA.queryUtxent(); | CODE |
| CRITICAL | …core/src/main/java/oshi/jna/platform/windows/Dxgi.java | 54 | private static final com.sun.jna.platform.win32.Guid.IID IID_IDXGI_FACTORY = new com.sun.jna.platform.win32.Guid.IID | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …e/common/platform/linux/LinuxCentralProcessorTest.java | 81 | String midr = LinuxCentralProcessor.createMIDR("0x41", "r1p3", "0xd07", "8"); | COMMENT |
| LOW | …ommon/platform/unix/solaris/SolarisComputerSystem.java | 121 | // 0 87 SMB_TYPE_BIOS (BIOS Information) | COMMENT |
| LOW | …ommon/platform/unix/solaris/SolarisComputerSystem.java | 141 | // Family: Parallels VM | COMMENT |
| LOW | …on/src/main/java/oshi/util/driver/linux/Dmidecode.java | 21 | public final class Dmidecode { | COMMENT |
| LOW | …on/src/main/java/oshi/util/driver/linux/Dmidecode.java | 41 | // PC Card (PCMCIA) is supported | COMMENT |
| LOW | …/java/oshi/driver/common/unix/solaris/disk/Iostat.java | 21 | public final class Iostat { | COMMENT |
| LOW | …shi/software/common/os/linux/LinuxOperatingSystem.java | 241 | return cgroupInfoSupplier.get(); | COMMENT |
| LOW | …rc/test/java/oshi/comparison/NativeComparisonTest.java | 541 | // the memoizer expiration to 0. The gap is unrelated to how long the process has been up, so the | COMMENT |
| LOW | scripts/upload-to-central.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/update-javadoc-io.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | .github/appveyor.yml | 61 | - appveyor-retry ./mvnw -B -DskipTests=true clean package | COMMENT |
| LOW | .github/workflows/pr.yaml | 21 | # so an unrelated PR doesn't spin up slow VMs. Generic shared source is covered by | COMMENT |
| LOW | .github/workflows/pr.yaml | 41 | # The include list this replaces looked for a `unix/` path segment plus the build inputs, which | COMMENT |
| LOW | .github/workflows/benchmarks.yaml | 1 | # Manual JMH benchmark capture across every platform OSHI runs JMH on. | COMMENT |
| LOW | .github/workflows/appveyor-dispatch.yaml | 1 | # Force an AppVeyor build for a pull request by adding the `full-coverage` label. | COMMENT |
| LOW | .github/workflows/cfarm.yaml | 21 | # (rather than prevent it with an on-box lock) each run, before building: | COMMENT |
| LOW | .github/workflows/cfarm.yaml | 41 | # Tests the triggering ref on Solaris 11.4 SPARC: master on push, or the | COMMENT |
| LOW | .github/workflows/unix.yaml | 121 | # 10 GB pool shared with every other workflow in the repo, so caching it evicts the | COMMENT |
| LOW | .github/workflows/unix.yaml | 141 | # them -- a ZFS ARC cap, mem, cpu, -Xmx, MaxMetaspaceSize, ReservedCodeCacheSize, | COMMENT |
| LOW | .github/workflows/unix.yaml | 161 | # in 25.0. CompressedClassSpaceSize=3g does push the reservation above 4 GB, but only | COMMENT |
| LOW | .github/ffm-audit/exceptions/linux.txt | 1 | # Symbols whose SDK declaration cannot be compared against a FunctionDescriptor. | COMMENT |
| LOW | .github/ffm-audit/exceptions/mac.txt | 1 | # Symbols whose SDK declaration cannot be compared against a FunctionDescriptor. | COMMENT |
| LOW | .github/ffm-audit/exceptions/windows.txt | 1 | # Symbols whose SDK declaration cannot be compared against a FunctionDescriptor. | COMMENT |
| LOW | .github/ffm-audit/structs/freebsd.txt | 1 | # Maps an FFM struct layout constant to the C type it mirrors, so the audit can compare its size | COMMENT |
| LOW | .github/ffm-audit/structs/dragonflybsd.txt | 1 | # Maps an FFM struct layout constant to the C type it mirrors, so the audit can compare its size | COMMENT |
| LOW | .github/ffm-audit/structs/aix.txt | 1 | # Maps an FFM struct layout constant to the C type it mirrors, so the audit can compare its size | COMMENT |
| LOW | .github/ffm-audit/structs/openbsd.txt | 1 | # Maps an FFM struct layout constant to the C type it mirrors, so the audit can compare its size | COMMENT |
| LOW | .github/ffm-audit/structs/netbsd.txt | 1 | # Maps an FFM struct layout constant to the C type it mirrors, so the audit can compare its size | COMMENT |
| LOW | .github/cfarm/remote.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | …c/main/java/oshi/ffm/platform/windows/IPHlpAPIFFM.java | 101 | JAVA_INT.withName("dwNoPorts"), JAVA_INT.withName("dwInErrors"), JAVA_INT.withName("dwOutDatagrams"), | COMMENT |
| LOW | …ava/oshi/ffm/platform/windows/com/IWbemLocatorFFM.java | 41 | MemorySegment iid = GuidFFM.IID_IWbemLocator(arena); | COMMENT |
| LOW | …-ffm/src/main/java/oshi/driver/mac/net/NetStatFFM.java | 41 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/pr.yaml | 498 | # harness runs this script under `set -e`. | COMMENT |
| MEDIUM | .github/workflows/unix.yaml | 166 | # dispatch harness, against 3 in 16 in the same harness without it. backend=mmap is the | COMMENT |
| MEDIUM | .github/workflows/unix.yaml | 188 | # harness runs this script under `set -e`. | COMMENT |
| MEDIUM | .github/ffm-audit/audit.py | 187 | # the harness itself is broken on this platform, and must not be mistaken for a clean run. Both | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .github/ffm-audit/extract.py | 97 | except ValueError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/upload-to-central.sh | 13 | # Usage: | COMMENT |
| LOW | scripts/update-javadoc-io.sh | 10 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …n/java/oshi/util/platform/windows/WmiQueryHandler.java | 223 | // Step 1: -------------------------------------------------- | COMMENT |
| LOW | …n/java/oshi/util/platform/windows/WmiQueryHandler.java | 234 | // Step 2: -------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ics/src/test/java/oshi/metrics/PrometheusDemoTest.java | 21 | @SuppressForbidden(reason = "Demo test uses com.sun.net.httpserver and System.out for demonstration purposes") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/ffm-audit/audit.py | 12 | CODE | |
| LOW | .github/ffm-audit/extract.py | 1 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/ffm-audit/gen.py | 185 | CODE | |
| LOW | .github/ffm-audit/extract.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/ffm-audit/gen.py | 141 | except Exception: | STRING |