PMD Results

The following document contains the results of PMD 4.2.5.

Files

E02ShellWithConsolePrompts.java

ViolationLine
Use explicit scoping instead of the default package private level24
Use explicit scoping instead of the default package private level25

E03ShellWithGUIPrompts.java

ViolationLine
A method should have only one exit point, and that should be the last statement in the method75
A method should have only one exit point, and that should be the last statement in the method94

E04ExecuteCommand.java

ViolationLine
Avoid assignments in operands47
Found 'DU'-anomaly for variable 'line' (lines '47'-'57').47 - 57

E08Sftp.java

ViolationLine
Found 'DU'-anomaly for variable 'cwd' (lines '52'-'165').52 - 165
Found 'DD'-anomaly for variable 'cwd' (lines '52'-'88').52 - 88
Found 'DD'-anomaly for variable 'newCwd' (lines '79'-'80').79 - 80
Found 'DU'-anomaly for variable 'cwd' (lines '83'-'165').83 - 165
Found 'DD'-anomaly for variable 'cwd' (lines '83'-'88').83 - 88
Found 'DU'-anomaly for variable 'cwd' (lines '88'-'165').88 - 165
Found 'DD'-anomaly for variable 'cwd' (lines '88'-'88').88
Found 'DD'-anomaly for variable 'toMake' (lines '92'-'93').92 - 93
Do not start a literal by 0 unless it's an octal value94
Found 'DD'-anomaly for variable 'toRm' (lines '100'-'101').100 - 101
Found 'DD'-anomaly for variable 'toRename' (lines '116'-'117').116 - 117
Found 'DD'-anomaly for variable 'toGet' (lines '125'-'126').125 - 126
Do not start a literal by 0 unless it's an octal value145

E12ChangeKeyPassphrase.java

ViolationLine
Found 'DD'-anomaly for variable 'newpw' (lines '53'-'55').53 - 55

E14HostKeyManagement.java

ViolationLine
Found 'DD'-anomaly for variable 'cmd' (lines '46'-'48').46 - 48
Found 'DU'-anomaly for variable 'cmd' (lines '46'-'91').46 - 91

E15SCP.java

ViolationLine
Use explicit scoping instead of the default package private level120 - 135

E16PublicKeySubsytem.java

ViolationLine
Found 'DD'-anomaly for variable 'cmd' (lines '46'-'52').46 - 52
Found 'DU'-anomaly for variable 'cmd' (lines '46'-'69').46 - 69

E18IdentityManagement.java

ViolationLine
Found 'DD'-anomaly for variable 'cmd' (lines '46'-'49').46 - 49
Found 'DU'-anomaly for variable 'cmd' (lines '46'-'62').46 - 62
Found 'DD'-anomaly for variable 'keyPair' (lines '47'-'51').47 - 51
Found 'DU'-anomaly for variable 'keyPair' (lines '47'-'62').47 - 62
Found 'DD'-anomaly for variable 'keyPair' (lines '51'-'51').51
Found 'DU'-anomaly for variable 'keyPair' (lines '51'-'62').51 - 62
Assigning an Object to null is a code smell. Consider refactoring.73

E19ShellUsingGSSAPI.java

ViolationLine
Found 'DU'-anomaly for variable 'host' (lines '36'-'78').36 - 78
Found 'DU'-anomaly for variable 'user' (lines '37'-'78').37 - 78
Found 'DU'-anomaly for variable 'port' (lines '38'-'78').38 - 78

E99ProviderFeatureMatrix.java

ViolationLine
Found 'DD'-anomaly for variable 'width' (lines '32'-'34').32 - 34
Found 'DD'-anomaly for variable 'titles' (lines '51'-'55').51 - 55
Found 'DD'-anomaly for variable 'titles' (lines '55'-'55').55
Use explicit scoping instead of the default package private level171 - 197

E99ProviderFeatureMatrixHTML.java

ViolationLine
Use explicit scoping instead of the default package private level41 - 183
Found 'DD'-anomaly for variable 'titles' (lines '60'-'63').60 - 63

ExampleUtilities.java

ViolationLine
Use explicit scoping instead of the default package private level13 - 20
Use explicit scoping instead of the default package private level22 - 24
Use explicit scoping instead of the default package private level26 - 33
A method should have only one exit point, and that should be the last statement in the method30
Use explicit scoping instead of the default package private level35 - 47
Use explicit scoping instead of the default package private level49 - 74
Avoid empty catch blocks54 - 55
Avoid empty catch blocks62 - 63
Found 'DU'-anomaly for variable 'out' (lines '69'-'74').69 - 74
Found 'DU'-anomaly for variable 'out' (lines '69'-'74').69 - 74
Found 'DU'-anomaly for variable 'out' (lines '69'-'74').69 - 74
Avoid assignments in operands71
Found 'DU'-anomaly for variable 'r' (lines '71'-'74').71 - 74
Found 'DU'-anomaly for variable 'r' (lines '71'-'74').71 - 74
Found 'DU'-anomaly for variable 'r' (lines '71'-'74').71 - 74