---
date_published: 2026-11-03
date_modified: 2026-11-03
canonical_url: https://metricshub.org/wmi-java/spotbugs.html
---

# SpotBugs Bug Detector Report

The following document contains the results of [SpotBugs](https://spotbugs.github.io/)

SpotBugs Version is *4.9.3*

Threshold is *medium*

Effort is *default*

# Summary

| Classes | Bugs | Errors | Missing Classes |
| --- | --- | --- | --- |
| 26 | 16 | 0 | 0 |

# Files

| Class | Bugs |
| --- | --- |
| [org.metricshub.wmi.WqlQuery](#orgmetricshubwmiwqlquery) | 2 |
| [org.metricshub.wmi.remotecommand.RemoteProcess](#orgmetricshubwmiremotecommandremoteprocess) | 1 |
| [org.metricshub.wmi.wbem.CoAuthIdentity](#orgmetricshubwmiwbemcoauthidentity) | 4 |
| [org.metricshub.wmi.wbem.WmiCimTypeHandler](#orgmetricshubwmiwbemwmicimtypehandler) | 1 |
| [org.metricshub.wmi.wbem.WmiComHelper](#orgmetricshubwmiwbemwmicomhelper) | 1 |
| [org.metricshub.wmi.wbem.WmiWbemServices](#orgmetricshubwmiwbemwmiwbemservices) | 5 |
| [org.metricshub.wmi.windows.remote.WindowsRemoteProcessUtils](#org-metricshub-wmi-windows-remote-windowsremoteprocessutils) | 2 |

## org.metricshub.wmi.WqlQuery

| Bug | Category | Details | Line | Priority |
| --- | --- | --- | --- | --- |
| org.metricshub.wmi.WqlQuery.getSelectedProperties() may expose internal representation by returning WqlQuery.selectedProperties | MALICIOUS_CODE | [EI_EXPOSE_REP](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#EI_EXPOSE_REP) | [230](./xref/org/metricshub/wmi/WqlQuery.html#L230) | Medium |
| org.metricshub.wmi.WqlQuery.getSubPropertiesMap() may expose internal representation by returning WqlQuery.subPropertiesMap | MALICIOUS_CODE | [EI_EXPOSE_REP](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#EI_EXPOSE_REP) | [234](./xref/org/metricshub/wmi/WqlQuery.html#L234) | Medium |

## org.metricshub.wmi.remotecommand.RemoteProcess

| Bug | Category | Details | Line | Priority |
| --- | --- | --- | --- | --- |
| Possible null pointer dereference of returnCode in org.metricshub.wmi.remotecommand.RemoteProcess.killProcess(WmiWbemServices, long) | CORRECTNESS | [NP_NULL_ON_SOME_PATH](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#NP_NULL_ON_SOME_PATH) | [237](./xref/org/metricshub/wmi/remotecommand/RemoteProcess.html#L237) | Medium |

## org.metricshub.wmi.wbem.CoAuthIdentity

| Bug | Category | Details | Line | Priority |
| --- | --- | --- | --- | --- |
| Unread public/protected field: org.metricshub.wmi.wbem.CoAuthIdentity.domainLength | STYLE | [URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD) | [76](./xref/org/metricshub/wmi/wbem/CoAuthIdentity.html#L76) | Medium |
| Unread public/protected field: org.metricshub.wmi.wbem.CoAuthIdentity.flags | STYLE | [URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD) | [95](./xref/org/metricshub/wmi/wbem/CoAuthIdentity.html#L95) | Medium |
| Unread public/protected field: org.metricshub.wmi.wbem.CoAuthIdentity.passwordLength | STYLE | [URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD) | [88](./xref/org/metricshub/wmi/wbem/CoAuthIdentity.html#L88) | Medium |
| Unread public/protected field: org.metricshub.wmi.wbem.CoAuthIdentity.userLength | STYLE | [URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD) | [70](./xref/org/metricshub/wmi/wbem/CoAuthIdentity.html#L70) | Medium |

## org.metricshub.wmi.wbem.WmiCimTypeHandler

| Bug | Category | Details | Line | Priority |
| --- | --- | --- | --- | --- |
| Check for sign of bitwise operation in org.metricshub.wmi.wbem.WmiCimTypeHandler.convert(Variant$VARIANT$ByReference, int, Map$Entry) | BAD_PRACTICE | [BIT_SIGNED_CHECK](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#BIT_SIGNED_CHECK) | [356](./xref/org/metricshub/wmi/wbem/WmiCimTypeHandler.html#L356) | Medium |

## org.metricshub.wmi.wbem.WmiComHelper

| Bug | Category | Details | Line | Priority |
| --- | --- | --- | --- | --- |
| Result of integer multiplication cast to long in org.metricshub.wmi.wbem.WmiComHelper.comInvokerInvokeNativeObject(Pointer, int, Object[], Class) | STYLE | [ICAST_INTEGER_MULTIPLY_CAST_TO_LONG](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#ICAST_INTEGER_MULTIPLY_CAST_TO_LONG) | [144](./xref/org/metricshub/wmi/wbem/WmiComHelper.html#L144) | Medium |

## org.metricshub.wmi.wbem.WmiWbemServices

| Bug | Category | Details | Line | Priority |
| --- | --- | --- | --- | --- |
| org.metricshub.wmi.wbem.WmiWbemServices.getAuthIdent() may expose internal representation by returning WmiWbemServices.authIdent | MALICIOUS_CODE | [EI_EXPOSE_REP](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#EI_EXPOSE_REP) | [1450](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1450) | Medium |
| org.metricshub.wmi.wbem.WmiWbemServices.getContext() may expose internal representation by returning WmiWbemServices.context | MALICIOUS_CODE | [EI_EXPOSE_REP](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#EI_EXPOSE_REP) | [1446](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1446) | Medium |
| org.metricshub.wmi.wbem.WmiWbemServices.getPassword() may expose internal representation by returning WmiWbemServices.password | MALICIOUS_CODE | [EI_EXPOSE_REP](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#EI_EXPOSE_REP) | [1434](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1434) | Medium |
| org.metricshub.wmi.wbem.WmiWbemServices.getWbemLocator() may expose internal representation by returning WmiWbemServices.wbemLocator | MALICIOUS_CODE | [EI_EXPOSE_REP](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#EI_EXPOSE_REP) | [1442](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1442) | Medium |
| org.metricshub.wmi.wbem.WmiWbemServices.getWbemServices() may expose internal representation by returning WmiWbemServices.wbemServices | MALICIOUS_CODE | [EI_EXPOSE_REP](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#EI_EXPOSE_REP) | [1438](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1438) | Medium |

## org.metricshub.wmi.windows.remote.WindowsRemoteProcessUtils

| Bug | Category | Details | Line | Priority |
| --- | --- | --- | --- | --- |
| Possible null pointer dereference in org.metricshub.wmi.windows.remote.WindowsRemoteProcessUtils.copyToShare(Path, String, String) due to return value of called method | STYLE | [NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE) | [221](./xref/org/metricshub/wmi/windows/remote/WindowsRemoteProcessUtils.html#L221) | Medium |
| Possible null pointer dereference in org.metricshub.wmi.windows.remote.WindowsRemoteProcessUtils.copyToShare(Path, String, String) due to return value of called method | STYLE | [NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE) | [222](./xref/org/metricshub/wmi/windows/remote/WindowsRemoteProcessUtils.html#L222) | Medium |
