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

# PMD Results

The following document contains the results of [PMD](https://pmd.github.io) 7.7.0.

## Violations By Priority

### Priority 3

#### org/metricshub/wmi/remotecommand/RemoteProcess.java

| Rule | Violation | Line |
| --- | --- | --- |
| [EmptyCatchBlock](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_errorprone.html#emptycatchblock) | Avoid empty catch blocks | [196](./xref/org/metricshub/wmi/remotecommand/RemoteProcess.html#L196)–[198](./xref/org/metricshub/wmi/remotecommand/RemoteProcess.html#L198) |

#### org/metricshub/wmi/shares/WinTempShare.java

| Rule | Violation | Line |
| --- | --- | --- |
| [UnusedFormalParameter](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedformalparameter) | Avoid unused method parameters such as 'timeout'. | [238](./xref/org/metricshub/wmi/shares/WinTempShare.html#L238) |

#### org/metricshub/wmi/wbem/WmiCimTypeHandler.java

| Rule | Violation | Line |
| --- | --- | --- |
| [EmptyCatchBlock](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_errorprone.html#emptycatchblock) | Avoid empty catch blocks | [421](./xref/org/metricshub/wmi/wbem/WmiCimTypeHandler.html#L421)–[423](./xref/org/metricshub/wmi/wbem/WmiCimTypeHandler.html#L423) |

#### org/metricshub/wmi/wbem/WmiWbemServices.java

| Rule | Violation | Line |
| --- | --- | --- |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'writeLock'. | [820](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L820) |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'readLock'. | [883](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L883) |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'readLock'. | [1146](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1146) |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'readLock'. | [1192](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1192) |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'readLock'. | [1330](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1330) |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'readLock'. | [1368](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1368) |

### Priority 4

#### org/metricshub/wmi/WmiHelper.java

| Rule | Violation | Line |
| --- | --- | --- |
| [UselessParentheses](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#uselessparentheses) | Useless parentheses. | [82](./xref/org/metricshub/wmi/WmiHelper.html#L82)–[90](./xref/org/metricshub/wmi/WmiHelper.html#L90) |

#### org/metricshub/wmi/wbem/WmiCimTypeHandler.java

| Rule | Violation | Line |
| --- | --- | --- |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiCimTypeHandler': 'convertCimReference' is already in scope | [124](./xref/org/metricshub/wmi/wbem/WmiCimTypeHandler.html#L124) |

#### org/metricshub/wmi/wbem/WmiWbemServices.java

| Rule | Violation | Line |
| --- | --- | --- |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'setProxySecurity' is already in scope | [786](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L786) |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'checkHResult' is already in scope | [1166](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1166) |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'checkHResult' is already in scope | [1308](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1308) |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'checkHResult' is already in scope | [1353](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1353) |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'checkHResult' is already in scope | [1382](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1382) |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'checkHResult' is already in scope | [1414](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1414) |

## Files

### org/metricshub/wmi/WmiHelper.java

| Rule | Violation | Priority | Line |
| --- | --- | --- | --- |
| [UselessParentheses](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#uselessparentheses) | Useless parentheses. | 4 | [82](./xref/org/metricshub/wmi/WmiHelper.html#L82)–[90](./xref/org/metricshub/wmi/WmiHelper.html#L90) |

### org/metricshub/wmi/remotecommand/RemoteProcess.java

| Rule | Violation | Priority | Line |
| --- | --- | --- | --- |
| [EmptyCatchBlock](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_errorprone.html#emptycatchblock) | Avoid empty catch blocks | 3 | [196](./xref/org/metricshub/wmi/remotecommand/RemoteProcess.html#L196)–[198](./xref/org/metricshub/wmi/remotecommand/RemoteProcess.html#L198) |

### org/metricshub/wmi/shares/WinTempShare.java

| Rule | Violation | Priority | Line |
| --- | --- | --- | --- |
| [UnusedFormalParameter](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedformalparameter) | Avoid unused method parameters such as 'timeout'. | 3 | [238](./xref/org/metricshub/wmi/shares/WinTempShare.html#L238) |

### org/metricshub/wmi/wbem/WmiCimTypeHandler.java

| Rule | Violation | Priority | Line |
| --- | --- | --- | --- |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiCimTypeHandler': 'convertCimReference' is already in scope | 4 | [124](./xref/org/metricshub/wmi/wbem/WmiCimTypeHandler.html#L124) |
| [EmptyCatchBlock](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_errorprone.html#emptycatchblock) | Avoid empty catch blocks | 3 | [421](./xref/org/metricshub/wmi/wbem/WmiCimTypeHandler.html#L421)–[423](./xref/org/metricshub/wmi/wbem/WmiCimTypeHandler.html#L423) |

### org/metricshub/wmi/wbem/WmiWbemServices.java

| Rule | Violation | Priority | Line |
| --- | --- | --- | --- |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'setProxySecurity' is already in scope | 4 | [786](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L786) |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'writeLock'. | 3 | [820](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L820) |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'readLock'. | 3 | [883](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L883) |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'readLock'. | 3 | [1146](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1146) |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'checkHResult' is already in scope | 4 | [1166](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1166) |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'readLock'. | 3 | [1192](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1192) |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'checkHResult' is already in scope | 4 | [1308](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1308) |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'readLock'. | 3 | [1330](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1330) |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'checkHResult' is already in scope | 4 | [1353](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1353) |
| [UnusedLocalVariable](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_bestpractices.html#unusedlocalvariable) | Avoid unused local variables such as 'readLock'. | 3 | [1368](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1368) |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'checkHResult' is already in scope | 4 | [1382](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1382) |
| [UnnecessaryFullyQualifiedName](https://docs.pmd-code.org/pmd-doc-7.7.0/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname) | Unnecessary qualifier 'WmiWbemServices': 'checkHResult' is already in scope | 4 | [1414](./xref/org/metricshub/wmi/wbem/WmiWbemServices.html#L1414) |
