The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is medium
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread public/protected field: oshi.software.os.linux.Libc$Sysinfo.loads | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 35 | Medium |
Unused public or protected field: oshi.software.os.linux.Libc$Sysinfo.bufferram | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.linux.Libc$Sysinfo.freehigh | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.linux.Libc$Sysinfo.freeram | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.linux.Libc$Sysinfo.freeswap | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.linux.Libc$Sysinfo.procs | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.linux.Libc$Sysinfo.sharedram | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.linux.Libc$Sysinfo.totalhigh | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.linux.Libc$Sysinfo.totalswap | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.linux.Libc$Sysinfo.uptime | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unwritten public or protected field: oshi.software.os.linux.Libc$Sysinfo.totalram | STYLE | UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD | 88 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
oshi.software.os.linux.LinuxHardwareAbstractionLayer.getProcessors() may expose internal representation by returning LinuxHardwareAbstractionLayer._processors | MALICIOUS_CODE | EI_EXPOSE_REP | 120 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in oshi.software.os.linux.LinuxOperatingSystem.getFamily(): new java.io.FileReader(String) | I18N | DM_DEFAULT_ENCODING | 41 | High |
oshi.software.os.linux.LinuxOperatingSystem.getFamily() may fail to clean up java.io.Reader | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 41 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Write to static field oshi.software.os.linux.proc.CentralProcessor.tickTime from instance method oshi.software.os.linux.proc.CentralProcessor.getSystemCpuLoadBetweenTicks() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 328 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Boxing/unboxing to parse a primitive oshi.software.os.linux.proc.GlobalMemory.parseMeminfo(String[]) | PERFORMANCE | DM_BOXED_PRIMITIVE_FOR_PARSING | 97 | High |
oshi.software.os.linux.proc.GlobalMemory.parseMeminfo(String[]) invokes inefficient new Long(String) constructor; use Long.valueOf(String) instead | PERFORMANCE | DM_NUMBER_CTOR | 97 | Medium |
Read of unwritten public or protected field totalram in oshi.software.os.linux.proc.GlobalMemory.getTotal() | STYLE | NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD | 88 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Hard coded reference to an absolute pathname in oshi.software.os.linux.proc.LinuxPowerSource.getPowerSources() | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 69 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in new oshi.software.os.linux.proc.OSVersionInfoEx(): new java.io.FileReader(String) | I18N | DM_DEFAULT_ENCODING | 39 | High |
new oshi.software.os.linux.proc.OSVersionInfoEx() may fail to clean up java.io.Reader | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 39 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
oshi.software.os.mac.MacHardwareAbstractionLayer.getPowerSources() may expose internal representation by returning MacHardwareAbstractionLayer._powerSources | MALICIOUS_CODE | EI_EXPOSE_REP | 92 | Medium |
oshi.software.os.mac.MacHardwareAbstractionLayer.getProcessors() may expose internal representation by returning MacHardwareAbstractionLayer._processors | MALICIOUS_CODE | EI_EXPOSE_REP | 71 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Write to static field oshi.software.os.mac.local.CentralProcessor.tickTime from instance method oshi.software.os.mac.local.CentralProcessor.getSystemCpuLoadBetweenTicks() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 392 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Hard coded reference to an absolute pathname in oshi.software.os.mac.local.MacFileSystem.getFileStores() | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 55 | Medium |
Possible null pointer dereference in oshi.software.os.mac.local.MacFileSystem.getFileStores() due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 57 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of nameBuf, which is known to be non-null in oshi.software.os.mac.local.MacPowerSource.getPowerSources() | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 126 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread public/protected field: oshi.software.os.mac.local.SystemB$HostLoadInfo.avenrun | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 90 | Medium |
Unread public/protected field: oshi.software.os.mac.local.SystemB$HostLoadInfo.mach_factor | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 91 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.active_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.cow_faults | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.faults | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.hits | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.lookups | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.pageins | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.pageouts | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.purgeable_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.purges | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.reactivations | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.speculative_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.wire_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics.zero_fill_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.active_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.compressions | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.compressor_page_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.cow_faults | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.decompressions | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.external_page_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.faults | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.free_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.hits | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.inactive_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.internal_page_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.lookups | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.pageins | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.pageouts | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.purgeable_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.purges | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.reactivations | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.speculative_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.swapins | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.swapouts | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.throttled_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.total_uncompressed_pages_in_compressor | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.wire_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.mac.local.SystemB$VMStatistics64.zero_fill_count | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
oshi.software.os.windows.WindowsHardwareAbstractionLayer.getProcessors() may expose internal representation by returning WindowsHardwareAbstractionLayer._processors | MALICIOUS_CODE | EI_EXPOSE_REP | 76 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Read of unwritten public or protected field value in oshi.software.os.windows.nt.CentralProcessor.updateProcessorTicks() | STYLE | NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD | 509 | Medium |
Write to static field oshi.software.os.windows.nt.CentralProcessor.tickTime from instance method oshi.software.os.windows.nt.CentralProcessor.getSystemCpuLoadBetweenTicks() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 354 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
The class name oshi.software.os.windows.nt.Kernel32 shadows the simple name of implemented interface com.sun.jna.platform.win32.Kernel32 | BAD_PRACTICE | NM_SAME_SIMPLE_NAME_AS_INTERFACE | 28 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unused public or protected field: oshi.software.os.windows.nt.Pdh$PdhFmtCounterValue.cStatus | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unwritten public or protected field: oshi.software.os.windows.nt.Pdh$PdhFmtCounterValue.value | STYLE | UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD | 508 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
The field name oshi.software.os.windows.nt.Pdh$ValueUnion.AnsiStringValue doesn't start with a lower case letter | BAD_PRACTICE | NM_FIELD_NAMING_CONVENTION | Not available | Medium |
The field name oshi.software.os.windows.nt.Pdh$ValueUnion.WideStringValue doesn't start with a lower case letter | BAD_PRACTICE | NM_FIELD_NAMING_CONVENTION | Not available | Medium |
Unused public or protected field: oshi.software.os.windows.nt.Pdh$ValueUnion.AnsiStringValue | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.windows.nt.Pdh$ValueUnion.WideStringValue | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.windows.nt.Pdh$ValueUnion.doubleValue | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.windows.nt.Pdh$ValueUnion.longValue | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread public/protected field: oshi.software.os.windows.nt.PowrProf$SystemBatteryState.spare1 | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 44 | Medium |
Unused public or protected field: oshi.software.os.windows.nt.PowrProf$SystemBatteryState.defaultAlert1 | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.windows.nt.PowrProf$SystemBatteryState.defaultAlert2 | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Unused public or protected field: oshi.software.os.windows.nt.PowrProf$SystemBatteryState.rate | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in oshi.util.ExecutingCommand.runNative(String): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 49 | High |
oshi.util.ExecutingCommand.runNative(String) may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 49 | Medium |