PMD Results

The following document contains the results of PMD 4.2.2.

Files

org/naftulin/configmgr/ConfigurationManagementEntryImpl.java

Violation Line
Avoid using final local variables, turn them into fields 132 - 136
A method should have only one exit point, and that should be the last statement in the method 156
Avoid using final local variables, turn them into fields 158

org/naftulin/configmgr/ConfigurationManagementImpl.java

Violation Line
Found 'DD'-anomaly for variable 'entryFound' (lines '55'-'60'). 55 - 60
Found 'DD'-anomaly for variable 'entry' (lines '56'-'62'). 56 - 62
Found 'DU'-anomaly for variable 'entry' (lines '56'-'73'). 56 - 73
Found 'DD'-anomaly for variable 'retObject' (lines '57'-'64'). 57 - 64
Avoid using final local variables, turn them into fields 116
Found 'DD'-anomaly for variable 'entryFound' (lines '131'-'134'). 131 - 134
Found 'DD'-anomaly for variable 'entry' (lines '132'-'135'). 132 - 135
Found 'DU'-anomaly for variable 'entry' (lines '135'-'141'). 135 - 141
Avoid using final local variables, turn them into fields 148
Found 'DD'-anomaly for variable 'set' (lines '149'-'151'). 149 - 151
Avoid using final local variables, turn them into fields 184
Avoid using final local variables, turn them into fields 186
Avoid using final local variables, turn them into fields 187
Avoid using final local variables, turn them into fields 233

org/naftulin/configmgr/ConfigurationManagerConsole.java

Violation Line
A method should have only one exit point, and that should be the last statement in the method 46
Avoid using final local variables, turn them into fields 65
Found 'DD'-anomaly for variable 'conifurationEntries' (lines '74'-'75'). 74 - 75
Found 'DD'-anomaly for variable 'content' (lines '81'-'85'). 81 - 85
Avoid using final local variables, turn them into fields 84
Found 'DD'-anomaly for variable 'content' (lines '85'-'86'). 85 - 86
A method should have only one exit point, and that should be the last statement in the method 97
Avoid using final local variables, turn them into fields 100
A method should have only one exit point, and that should be the last statement in the method 102

org/naftulin/configmgr/ConfigurationManagerFactory.java

Violation Line
Use explicit scoping instead of the default package private level 70 - 76
Assigning an Object to null is a code smell. Consider refactoring. 72
Assigning an Object to null is a code smell. Consider refactoring. 73

org/naftulin/configmgr/ConfigurationUtility.java

Violation Line
Avoid using final local variables, turn them into fields 35
Avoid using final local variables, turn them into fields 57
Found 'DU'-anomaly for variable 'value' (lines '59'-'65'). 59 - 65
Avoid using final local variables, turn them into fields 81
Found 'DU'-anomaly for variable 'value' (lines '83'-'89'). 83 - 89
Avoid using final local variables, turn them into fields 105
Found 'DU'-anomaly for variable 'value' (lines '107'-'113'). 107 - 113
Avoid using final local variables, turn them into fields 129
Found 'DU'-anomaly for variable 'value' (lines '131'-'137'). 131 - 137
Avoid using final local variables, turn them into fields 153
Found 'DU'-anomaly for variable 'value' (lines '155'-'161'). 155 - 161
Avoid using final local variables, turn them into fields 190
Avoid using final local variables, turn them into fields 193

org/naftulin/configmgr/ConfigurationUtilityHelper.java

Violation Line
Use explicit scoping instead of the default package private level 44 - 58
Found 'DD'-anomaly for variable 'configurationEntryObject' (lines '45'-'48'). 45 - 48
Found 'DD'-anomaly for variable 'configurationEntryObject' (lines '45'-'53'). 45 - 53
Found 'DD'-anomaly for variable 'cm' (lines '50'-'51'). 50 - 51
Found 'DD'-anomaly for variable 'configurationEntryObject' (lines '61'-'67'). 61 - 67
Found 'DD'-anomaly for variable 'configurationEntryObject' (lines '61'-'69'). 61 - 69
Use explicit scoping instead of the default package private level 74 - 81
Avoid using final local variables, turn them into fields 76
Use explicit scoping instead of the default package private level 83 - 91
Found 'DU'-anomaly for variable 'cm' (lines '86'-'91'). 86 - 91
Use explicit scoping instead of the default package private level 93 - 101
Found 'DU'-anomaly for variable 'cm' (lines '96'-'101'). 96 - 101
Use explicit scoping instead of the default package private level 118
Use explicit scoping instead of the default package private level 119

org/naftulin/configmgr/content/Log4JRecordImpl.java

Violation Line
Found 'DD'-anomaly for variable 'parser' (lines '48'-'50'). 48 - 50
Found 'DD'-anomaly for variable 'parser' (lines '48'-'52'). 48 - 52
Found 'DU'-anomaly for variable 'parser' (lines '48'-'57'). 48 - 57

org/naftulin/configmgr/parsers/AbstractConfigEntryParser.java

Violation Line
Avoid using final local variables, turn them into fields 29
Avoid using final local variables, turn them into fields 30

org/naftulin/configmgr/parsers/AbstractJndiParser.java

Violation Line
Avoid using final local variables, turn them into fields 44

org/naftulin/configmgr/parsers/AbstractLog4JParser.java

Violation Line
Use explicit scoping instead of the default package private level 29
Avoid using final local variables, turn them into fields 41
Found 'DD'-anomaly for variable 'content' (lines '42'-'46'). 42 - 46
Avoid using final local variables, turn them into fields 44
Avoid using final local variables, turn them into fields 54

org/naftulin/configmgr/parsers/ConfigurationRecordsToEntriesConverter.java

Violation Line
Avoid using final local variables, turn them into fields 41
Found 'DD'-anomaly for variable 'fileUrl' (lines '45'-'47'). 45 - 47
Avoid using final local variables, turn them into fields 64
Avoid using final local variables, turn them into fields 65
Avoid using final local variables, turn them into fields 67
Avoid using final local variables, turn them into fields 71
Found 'DU'-anomaly for variable 'mbean' (lines '71'-'81'). 71 - 81
Use explicit scoping instead of the default package private level 89 - 121
Avoid using final local variables, turn them into fields 95
Avoid using final local variables, turn them into fields 96
Found 'DD'-anomaly for variable 'entries' (lines '96'-'101'). 96 - 101
Avoid using final local variables, turn them into fields 104
Found 'DU'-anomaly for variable 'i' (lines '105'-'121'). 105 - 121
Found 'DD'-anomaly for variable 'errorOccured' (lines '106'-'115'). 106 - 115
Found 'DD'-anomaly for variable 'entries' (lines '114'-'110'). 114 - 110
Found 'DD'-anomaly for variable 'errorOccured' (lines '115'-'115'). 115

org/naftulin/configmgr/parsers/DbDirectParserImpl.java

Violation Line
Found 'DD'-anomaly for variable 'entry' (lines '67'-'91'). 67 - 91
Avoid using final local variables, turn them into fields 75
Found 'DD'-anomaly for variable 'c' (lines '78'-'82'). 78 - 82
Found 'DD'-anomaly for variable 'stmt' (lines '79'-'85'). 79 - 85
Found 'DD'-anomaly for variable 'rs' (lines '80'-'88'). 80 - 88
Found 'DU'-anomaly for variable 'entry' (lines '91'-'103'). 91 - 103
Avoid using final local variables, turn them into fields 108
Found 'DD'-anomaly for variable 'mapKey' (lines '109'-'112'). 109 - 112
Found 'DU'-anomaly for variable 'mapKey' (lines '109'-'121'). 109 - 121
Found 'DD'-anomaly for variable 'mapValue' (lines '110'-'113'). 110 - 113
Found 'DU'-anomaly for variable 'mapValue' (lines '110'-'121'). 110 - 121
Avoid using final local variables, turn them into fields 117
Avoid using final local variables, turn them into fields 127

org/naftulin/configmgr/parsers/DbJndiParserImpl.java

Violation Line
Found 'DD'-anomaly for variable 'entry' (lines '57'-'82'). 57 - 82
Avoid using final local variables, turn them into fields 62
Found 'DD'-anomaly for variable 'c' (lines '65'-'73'). 65 - 73
Found 'DD'-anomaly for variable 'stmt' (lines '66'-'76'). 66 - 76
Found 'DD'-anomaly for variable 'rs' (lines '67'-'79'). 67 - 79
Found 'DD'-anomaly for variable 'context' (lines '69'-'70'). 69 - 70
Found 'DU'-anomaly for variable 'entry' (lines '82'-'94'). 82 - 94
Avoid using final local variables, turn them into fields 99
Found 'DD'-anomaly for variable 'mapKey' (lines '100'-'103'). 100 - 103
Found 'DU'-anomaly for variable 'mapKey' (lines '100'-'112'). 100 - 112
Found 'DD'-anomaly for variable 'mapValue' (lines '101'-'104'). 101 - 104
Found 'DU'-anomaly for variable 'mapValue' (lines '101'-'112'). 101 - 112
Avoid using final local variables, turn them into fields 108
Found 'DD'-anomaly for variable 'c' (lines '115'-'118'). 115 - 118
Avoid using final local variables, turn them into fields 117
Found 'DU'-anomaly for variable 'c' (lines '118'-'124'). 118 - 124

org/naftulin/configmgr/parsers/ExternalConfigurationParserImpl.java

Violation Line
Found 'DU'-anomaly for variable 'entry' (lines '44'-'73'). 44 - 73
Found 'DD'-anomaly for variable 'entry' (lines '44'-'71'). 44 - 71
Found 'DU'-anomaly for variable 'configuratonContent' (lines '45'-'73'). 45 - 73
Found 'DD'-anomaly for variable 'configuratonContent' (lines '45'-'60'). 45 - 60
Found 'DD'-anomaly for variable 'configuratonContent' (lines '45'-'69'). 45 - 69
Found 'DU'-anomaly for variable 'configuratonContent' (lines '60'-'73'). 60 - 73

org/naftulin/configmgr/parsers/ExternalRecordAdapter.java

Violation Line
Avoid modifiers which are implied by the context 27
Avoid modifiers which are implied by the context 36
Avoid modifiers which are implied by the context 44

org/naftulin/configmgr/parsers/JndiParserImpl.java

Violation Line
Found 'DD'-anomaly for variable 'entry' (lines '35'-'51'). 35 - 51
Avoid using final local variables, turn them into fields 40
Found 'DD'-anomaly for variable 'context' (lines '44'-'45'). 44 - 45
Avoid using final local variables, turn them into fields 48
Avoid using final local variables, turn them into fields 49
Found 'DU'-anomaly for variable 'entry' (lines '51'-'59'). 51 - 59

org/naftulin/configmgr/parsers/Log4JDomParserImpl.java

Violation Line
Use explicit scoping instead of the default package private level 20 - 22

org/naftulin/configmgr/parsers/Log4JPropertiesParserImpl.java

Violation Line
Use explicit scoping instead of the default package private level 20 - 22

org/naftulin/configmgr/parsers/MasterRecordParser.java

Violation Line
Avoid using final local variables, turn them into fields 49
Found 'DD'-anomaly for variable 'content' (lines '50'-'55'). 50 - 55
Found 'DU'-anomaly for variable 'entry' (lines '51'-'65'). 51 - 65
Avoid using final local variables, turn them into fields 53
Found 'DU'-anomaly for variable 'masterRecord' (lines '97'-'125'). 97 - 125
Found 'DD'-anomaly for variable 'masterRecord' (lines '97'-'113'). 97 - 113
Avoid using final local variables, turn them into fields 98
Avoid using final local variables, turn them into fields 106
Avoid using final local variables, turn them into fields 111
Avoid using final local variables, turn them into fields 128
Avoid using final local variables, turn them into fields 129
Avoid assignments in operands 131
Found 'DU'-anomaly for variable 'line' (lines '131'-'140'). 131 - 140
Avoid using final local variables, turn them into fields 135
Avoid using final local variables, turn them into fields 136
Avoid using final local variables, turn them into fields 138
Use explicit scoping instead of the default package private level 142 - 159
Found 'DD'-anomaly for variable 'modifiedFileContent' (lines '143'-'155'). 143 - 155
Avoid using final local variables, turn them into fields 145
Avoid using final local variables, turn them into fields 146
Found 'DD'-anomaly for variable 'environmentVar' (lines '148'-'153'). 148 - 153
Found 'DU'-anomaly for variable 'environmentVar' (lines '148'-'159'). 148 - 159
Found 'DD'-anomaly for variable 'value' (lines '149'-'154'). 149 - 154
Found 'DU'-anomaly for variable 'value' (lines '149'-'159'). 149 - 159
Use explicit scoping instead of the default package private level 161 - 172

org/naftulin/configmgr/parsers/PropertyFileParserImpl.java

Violation Line
Avoid using final local variables, turn them into fields 37
Found 'DU'-anomaly for variable 'fileName' (lines '37'-'51'). 37 - 51
Avoid using final local variables, turn them into fields 39
Avoid using final local variables, turn them into fields 48

org/naftulin/configmgr/parsers/XmlFileParserImpl.java

Violation Line
Found 'DU'-anomaly for variable 'beanClass' (lines '46'-'84'). 46 - 84
Avoid using final local variables, turn them into fields 51
Avoid using final local variables, turn them into fields 56
Avoid using final local variables, turn them into fields 108