PMD Results

The following document contains the results of PMD 5.2.3.

Files

oshi/software/os/OperatingSystem.java

Violation Line
Avoid modifiers which are implied by the context 33
Avoid modifiers which are implied by the context 40

oshi/software/os/linux/Libc.java

Violation Line
Avoid modifiers which are implied by the context 2930
Avoid modifiers which are implied by the context 3255

oshi/software/os/linux/proc/CentralProcessor.java

Violation Line
Useless parentheses. 323
Useless parentheses. 438

oshi/software/os/mac/local/CentralProcessor.java

Violation Line
Useless parentheses. 387
Useless parentheses. 494

oshi/software/os/mac/local/CoreFoundation.java

Violation Line
Avoid modifiers which are implied by the context 34
Avoid modifiers which are implied by the context 4244
Avoid modifiers which are implied by the context 4648
Avoid modifiers which are implied by the context 5052
Avoid modifiers which are implied by the context 5461

oshi/software/os/mac/local/IOKit.java

Violation Line
Avoid modifiers which are implied by the context 3536
Avoid modifiers which are implied by the context 3738
Avoid modifiers which are implied by the context 3940
Avoid modifiers which are implied by the context 4142

oshi/software/os/mac/local/OSVersionInfoEx.java

Violation Line
These nested if statements could be combined 64110

oshi/software/os/mac/local/SystemB.java

Violation Line
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 41
Avoid modifiers which are implied by the context 42
Avoid modifiers which are implied by the context 45
Avoid modifiers which are implied by the context 46
Avoid modifiers which are implied by the context 47
Avoid modifiers which are implied by the context 49
Avoid modifiers which are implied by the context 52
Avoid modifiers which are implied by the context 53
Avoid modifiers which are implied by the context 55
Avoid modifiers which are implied by the context 56
Avoid modifiers which are implied by the context 57
Avoid modifiers which are implied by the context 58
Avoid modifiers which are implied by the context 59
Avoid modifiers which are implied by the context 61
Avoid modifiers which are implied by the context 62
Avoid modifiers which are implied by the context 63
Avoid modifiers which are implied by the context 64
Avoid modifiers which are implied by the context 65
Avoid modifiers which are implied by the context 66
Avoid modifiers which are implied by the context 67
Avoid modifiers which are implied by the context 70
Avoid modifiers which are implied by the context 71
Avoid modifiers which are implied by the context 72
Avoid modifiers which are implied by the context 73
Avoid modifiers which are implied by the context 74
Avoid modifiers which are implied by the context 77
Avoid modifiers which are implied by the context 78
Avoid modifiers which are implied by the context 8087
Avoid modifiers which are implied by the context 8997
Avoid modifiers which are implied by the context 99125
Avoid modifiers which are implied by the context 127172

oshi/software/os/windows/nt/CentralProcessor.java

Violation Line
Useless parentheses. 349
Useless parentheses. 454

oshi/software/os/windows/nt/Kernel32.java

Violation Line
Avoid modifiers which are implied by the context 31
Avoid modifiers which are implied by the context 5758

oshi/software/os/windows/nt/OSNativeSystemInfo.java

Violation Line
These nested if statements could be combined 4143
Avoid empty catch blocks 4547

oshi/software/os/windows/nt/OSVersionInfoEx.java

Violation Line
These nested if statements could be combined 202206

oshi/software/os/windows/nt/Pdh.java

Violation Line
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 41
Avoid modifiers which are implied by the context 42
Avoid modifiers which are implied by the context 44
Avoid modifiers which are implied by the context 45
Avoid modifiers which are implied by the context 46
Avoid modifiers which are implied by the context 5157
Avoid modifiers which are implied by the context 6270

oshi/software/os/windows/nt/PowrProf.java

Violation Line
Avoid modifiers which are implied by the context 37
Avoid modifiers which are implied by the context 3959

oshi/util/ParseUtil.java

Violation Line
Useless parentheses. 63
Avoid empty catch blocks 7273