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 29–30
Avoid modifiers which are implied by the context 32–55

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 42–44
Avoid modifiers which are implied by the context 46–48
Avoid modifiers which are implied by the context 50–52
Avoid modifiers which are implied by the context 54–61

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

Violation Line
Avoid modifiers which are implied by the context 35–36
Avoid modifiers which are implied by the context 37–38
Avoid modifiers which are implied by the context 39–40
Avoid modifiers which are implied by the context 41–42

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

Violation Line
These nested if statements could be combined 64–110

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 80–87
Avoid modifiers which are implied by the context 89–97
Avoid modifiers which are implied by the context 99–125
Avoid modifiers which are implied by the context 127–172

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 57–58

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

Violation Line
These nested if statements could be combined 41–43
Avoid empty catch blocks 45–47

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

Violation Line
These nested if statements could be combined 202–206

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 51–57
Avoid modifiers which are implied by the context 62–70

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 39–59

oshi/util/ParseUtil.java

Violation Line
Useless parentheses. 63
Avoid empty catch blocks 72–73