PMD Results

The following document contains the results of PMD 6.29.0.

Violations By Priority

Priority 1

org/apache/fulcrum/security/torque/security/turbine/TorqueAbstractTurbineTurbineSecurityEntity.java

Rule Violation Line
FormalParameterNamingConventions The method parameter name 'user_group_role' doesn't match '[a-z][a-zA-Z0-9]*' 57
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'user_group_role' is not final. 57
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'user_group_role' is not final. 105
FormalParameterNamingConventions The method parameter name 'user_group_role' doesn't match '[a-z][a-zA-Z0-9]*' 105

org/apache/fulcrum/security/torque/turbine/TorqueTurbineModelManagerImpl.java

Rule Violation Line
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'new_user_group_role' is not final. 194
LocalVariableNamingConventions The local variable name 'new_user_group_role' doesn't match '[a-z][a-zA-Z0-9]*' 194
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'user_group_role' is not final. 222
LocalVariableNamingConventions The local variable name 'user_group_role' doesn't match '[a-z][a-zA-Z0-9]*' 222

Priority 2

org/apache/fulcrum/security/torque/turbine/DefaultAbstractTurbineUser.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'ugrs' 83

Priority 3

org/apache/fulcrum/security/torque/TorqueAbstractGroupManager.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 43394
AtLeastOneConstructor Each class should declare at least one constructor 43394
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 56
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 60
ShortVariable Avoid variables with short names like id 102
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 114127
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 114
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 121
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 139
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 139160
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 139
LocalVariableCouldBeFinal Local variable 'g' could be declared final 147
ShortVariable Avoid variables with short names like g 147
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 148
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 149
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 151
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 171
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 171181
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 193
CloseResource Ensure that resources like this Connection object are closed after use 196
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 208
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 212
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 216
AvoidDuplicateLiterals The String literal "Error retrieving group information" appears 4 times in this file; the first occurrence is on line 220 220
LocalVariableCouldBeFinal Local variable 'groupSet' could be declared final 243
CloseResource Ensure that resources like this Connection object are closed after use 244
LocalVariableCouldBeFinal Local variable 'groups' could be declared final 251
LocalVariableCouldBeFinal Local variable 'group' could be declared final 253
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 262
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 288
CloseResource Ensure that resources like this Connection object are closed after use 292
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 301
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 311312
ShortVariable Avoid variables with short names like id 341
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 341
SimplifyConditional No need to check for null before an instanceof 345
CloseResource Ensure that resources like this Connection object are closed after use 347
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 359
MissingOverride The method 'getLazyLoading()' is missing an @Override annotation. 385388
MethodArgumentCouldBeFinal Parameter 'lazyLoading' is not assigned and could be declared final 390
MissingOverride The method 'setLazyLoading(Boolean)' is missing an @Override annotation. 390393

org/apache/fulcrum/security/torque/TorqueAbstractPermissionManager.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 44325
AbstractNaming Abstract classes should be named AbstractXXX 44325
UselessOverridingMethod Overriding method merely calls super 5558
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 55
ShortVariable Avoid variables with short names like id 98
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 111126
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 111
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 111
ShortVariable Avoid variables with short names like p 117
LocalVariableCouldBeFinal Local variable 'p' could be declared final 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 118
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 119
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 120
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 137
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 137149
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 160168
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 160
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 163
LocalVariableCouldBeFinal Local variable 'permissionSet' could be declared final 179
CloseResource Ensure that resources like this Connection object are closed after use 180
LocalVariableCouldBeFinal Local variable 'permissions' could be declared final 185
LocalVariableCouldBeFinal Local variable 'p' could be declared final 187
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 194
AvoidDuplicateLiterals The String literal "Error retrieving permission information" appears 4 times in this file; the first occurrence is on line 196 196
MethodArgumentCouldBeFinal Parameter 'permissionName' is not assigned and could be declared final 215
CloseResource Ensure that resources like this Connection object are closed after use 218
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 226
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 232
ShortVariable Avoid variables with short names like id 254
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 254
SimplifyConditional No need to check for null before an instanceof 257
CloseResource Ensure that resources like this Connection object are closed after use 258
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 269
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 296
CloseResource Ensure that resources like this Connection object are closed after use 299
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 310
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 312
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 314

org/apache/fulcrum/security/torque/TorqueAbstractRoleManager.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 42409
AtLeastOneConstructor Each class should declare at least one constructor 42409
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 55
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 59
ShortVariable Avoid variables with short names like id 102
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 116
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 116137
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 116
LocalVariableCouldBeFinal Local variable 'r' could be declared final 124
ShortVariable Avoid variables with short names like r 124
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 125
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 126
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 128
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 148
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 148160
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 154
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 171
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 171188
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 199
CloseResource Ensure that resources like this Connection object are closed after use 203
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 212
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 222
AvoidDuplicateLiterals The String literal "Error retrieving role information" appears 4 times in this file; the first occurrence is on line 226 226
LocalVariableCouldBeFinal Local variable 'roleSet' could be declared final 249
CloseResource Ensure that resources like this Connection object are closed after use 250
LocalVariableCouldBeFinal Local variable 'roles' could be declared final 256
LocalVariableCouldBeFinal Local variable 'role' could be declared final 258
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 267
ShortVariable Avoid variables with short names like id 296
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 296
SimplifyConditional No need to check for null before an instanceof 300
CloseResource Ensure that resources like this Connection object are closed after use 302
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 314
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 350
CloseResource Ensure that resources like this Connection object are closed after use 353
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 365
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 369
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 373
MethodArgumentCouldBeFinal Parameter 'lazyLoading' is not assigned and could be declared final 405

org/apache/fulcrum/security/torque/TorqueAbstractUserManager.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 43320
AtLeastOneConstructor Each class should declare at least one constructor 43320
UselessOverridingMethod Overriding method merely calls super 5254
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 52
ShortVariable Avoid variables with short names like id 96
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 108114
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 108
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 125134
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 125
LocalVariableCouldBeFinal Local variable 'u' could be declared final 127
ShortVariable Avoid variables with short names like u 127
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 128
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 129
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 145157
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 145
ShortVariable Avoid variables with short names like u 148
LocalVariableCouldBeFinal Local variable 'u' could be declared final 148
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 149
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 150
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 151
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 170
CloseResource Ensure that resources like this Connection object are closed after use 173
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 181
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 187
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 212
CloseResource Ensure that resources like this Connection object are closed after use 214
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 219
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 225
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 227
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 229
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 250
LocalVariableCouldBeFinal Local variable 'userSet' could be declared final 250
CloseResource Ensure that resources like this Connection object are closed after use 251
LocalVariableCouldBeFinal Local variable 'users' could be declared final 256
LocalVariableCouldBeFinal Local variable 'user' could be declared final 258
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 266
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 288
ShortVariable Avoid variables with short names like id 288
SimplifyConditional No need to check for null before an instanceof 291
CloseResource Ensure that resources like this Connection object are closed after use 292
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 303

org/apache/fulcrum/security/torque/basic/TorqueAbstractBasicGroup.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 42215
AtLeastOneConstructor Each class should declare at least one constructor 42215
RedundantFieldInitializer Avoid using redundant field initializer for 'userSet' 49
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 49
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 63
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 63
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 73
MissingOverride The method 'addUser(User)' is missing an @Override annotation. 7376
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 75
MissingOverride The method 'getUsers()' is missing an @Override annotation. 8193
MissingOverride The method 'getUsersAsSet()' is missing an @Override annotation. 99102
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 107
MissingOverride The method 'removeUser(User)' is missing an @Override annotation. 107110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 109
MethodArgumentCouldBeFinal Parameter 'userSet' is not assigned and could be declared final 115
MissingOverride The method 'setUsers(UserSet)' is missing an @Override annotation. 115125
ConfusingTernary Avoid if (x != y) ..; else ..; 117124
MissingOverride The method 'setUsersAsSet(Set)' is missing an @Override annotation. 130133
MethodArgumentCouldBeFinal Parameter 'users' is not assigned and could be declared final 130
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 136
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 146
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 146
LocalVariableCouldBeFinal Local variable 'usergroups' could be declared final 152153
LocalVariableCouldBeFinal Local variable 'tbug' could be declared final 155
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 169196
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 169
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 173
LocalVariableCouldBeFinal Local variable 'u' could be declared final 179
LocalVariableCouldBeFinal Local variable 'ug' could be declared final 181
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 181
ShortVariable Avoid variables with short names like ug 181
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 192
MissingOverride The method 'delete()' is missing an @Override annotation. 211214

org/apache/fulcrum/security/torque/basic/TorqueAbstractBasicUser.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 42215
AtLeastOneConstructor Each class should declare at least one constructor 42215
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 48
RedundantFieldInitializer Avoid using redundant field initializer for 'groupSet' 48
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 62
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 62
MissingOverride The method 'addGroup(Group)' is missing an @Override annotation. 7275
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 72
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 74
MissingOverride The method 'getGroups()' is missing an @Override annotation. 8092
MissingOverride The method 'getGroupsAsSet()' is missing an @Override annotation. 98101
MissingOverride The method 'removeGroup(Group)' is missing an @Override annotation. 106109
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 108
MissingOverride The method 'setGroups(GroupSet)' is missing an @Override annotation. 114124
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 114
ConfusingTernary Avoid if (x != y) ..; else ..; 116123
MissingOverride The method 'setGroupsAsSet(Set)' is missing an @Override annotation. 129132
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 129
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 137
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 147
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 147
LocalVariableCouldBeFinal Local variable 'usergroups' could be declared final 153
LocalVariableCouldBeFinal Local variable 'tbug' could be declared final 155
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 169196
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 169
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 173
LocalVariableCouldBeFinal Local variable 'g' could be declared final 179
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 181
LocalVariableCouldBeFinal Local variable 'ug' could be declared final 181
ShortVariable Avoid variables with short names like ug 181
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 192
MissingOverride The method 'delete()' is missing an @Override annotation. 211214

org/apache/fulcrum/security/torque/basic/TorqueBasicGroupManagerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 3781
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3781
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 43
MissingOverride The method 'doSelectAllGroups(Connection)' is missing an @Override annotation. 4349
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 46
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 5559
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 55
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 55
ShortVariable Avoid variables with short names like id 55
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 65
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 65
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 6580
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 68
LocalVariableCouldBeFinal Local variable 't' could be declared final 73
ShortVariable Avoid variables with short names like t 73

org/apache/fulcrum/security/torque/basic/TorqueBasicModelManagerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 41216
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 41216
CyclomaticComplexity The method 'grant(User, Group)' has a cyclomatic complexity of 10. 5399
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 53
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5399
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 53
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 55
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 55
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 56
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 56
CloseResource Ensure that resources like this Connection object are closed after use 63
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 73
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 111
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 111157
CyclomaticComplexity The method 'revoke(User, Group)' has a cyclomatic complexity of 10. 111157
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 111
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 113
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 113
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 114
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 114
CloseResource Ensure that resources like this Connection object are closed after use 121
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 131
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 169215
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 169
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 172
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 172
ShortVariable Avoid variables with short names like u 176
LocalVariableCouldBeFinal Local variable 'u' could be declared final 176
LocalVariableCouldBeFinal Local variable 'groups' could be declared final 179
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 179
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 179
LocalVariableCouldBeFinal Local variable 'group' could be declared final 181
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 183
CloseResource Ensure that resources like this Connection object are closed after use 186
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 195

org/apache/fulcrum/security/torque/basic/TorqueBasicUserManagerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 3783
MissingOverride The method 'doSelectAllUsers(Connection)' is missing an @Override annotation. 4853
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 48
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 50
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 59
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 5962
ShortVariable Avoid variables with short names like id 59
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 59
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 68
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 6882
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 70
LocalVariableCouldBeFinal Local variable 't' could be declared final 75
ShortVariable Avoid variables with short names like t 75

org/apache/fulcrum/security/torque/dynamic/TorqueAbstractDynamicGroup.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 45331
AbstractNaming Abstract classes should be named AbstractXXX 45331
RedundantFieldInitializer Avoid using redundant field initializer for 'userSet' 52
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 52
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 55
RedundantFieldInitializer Avoid using redundant field initializer for 'roleSet' 55
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 69
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 69
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 88
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 88
MissingOverride The method 'addUser(User)' is missing an @Override annotation. 98101
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 98
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 100
MissingOverride The method 'getUsers()' is missing an @Override annotation. 106118
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 110
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 114
MissingOverride The method 'getUsersAsSet()' is missing an @Override annotation. 124127
MissingOverride The method 'removeUser(User)' is missing an @Override annotation. 132135
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 132
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 134
MethodArgumentCouldBeFinal Parameter 'userSet' is not assigned and could be declared final 140
MissingOverride The method 'setUsers(UserSet)' is missing an @Override annotation. 140150
ConfusingTernary Avoid if (x != y) ..; else ..; 142149
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 148
MethodArgumentCouldBeFinal Parameter 'users' is not assigned and could be declared final 155
MissingOverride The method 'setUsersAsSet(Set)' is missing an @Override annotation. 155158
MissingOverride The method 'addRole(Role)' is missing an @Override annotation. 163166
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 163
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 165
MissingOverride The method 'getRoles()' is missing an @Override annotation. 171183
MissingOverride The method 'getRolesAsSet()' is missing an @Override annotation. 189192
MissingOverride The method 'removeRole(Role)' is missing an @Override annotation. 197200
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 197
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 199
MethodArgumentCouldBeFinal Parameter 'roleSet' is not assigned and could be declared final 205
MissingOverride The method 'setRoles(RoleSet)' is missing an @Override annotation. 205215
ConfusingTernary Avoid if (x != y) ..; else ..; 207214
MethodArgumentCouldBeFinal Parameter 'roles' is not assigned and could be declared final 220
MissingOverride The method 'setRolesAsSet(Set)' is missing an @Override annotation. 220223
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 237
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 247
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 247
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 250
LocalVariableCouldBeFinal Local variable 'usergroups' could be declared final 254
LocalVariableCouldBeFinal Local variable 'tdug' could be declared final 256
LocalVariableCouldBeFinal Local variable 'grouproles' could be declared final 263
LocalVariableCouldBeFinal Local variable 'tdgr' could be declared final 265
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 278322
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 278
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 282
LocalVariableCouldBeFinal Local variable 'u' could be declared final 288
ShortVariable Avoid variables with short names like ug 290
LocalVariableCouldBeFinal Local variable 'ug' could be declared final 290
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 290
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 299
LocalVariableCouldBeFinal Local variable 'r' could be declared final 305
ShortVariable Avoid variables with short names like gr 307
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 307
LocalVariableCouldBeFinal Local variable 'gr' could be declared final 307
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 318
MissingOverride The method 'delete()' is missing an @Override annotation. 327330

org/apache/fulcrum/security/torque/dynamic/TorqueAbstractDynamicPermission.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 41208
AbstractNaming Abstract classes should be named AbstractXXX 41208
RedundantFieldInitializer Avoid using redundant field initializer for 'roleSet' 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 47
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 61
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 61
MissingOverride The method 'addRole(Role)' is missing an @Override annotation. 7174
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 73
MissingOverride The method 'getRoles()' is missing an @Override annotation. 7991
MissingOverride The method 'getRolesAsSet()' is missing an @Override annotation. 97100
MissingOverride The method 'removeRole(Role)' is missing an @Override annotation. 105108
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 105
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 107
MethodArgumentCouldBeFinal Parameter 'roleSet' is not assigned and could be declared final 113
MissingOverride The method 'setRoles(RoleSet)' is missing an @Override annotation. 113123
ConfusingTernary Avoid if (x != y) ..; else ..; 115122
MissingOverride The method 'setRolesAsSet(Set)' is missing an @Override annotation. 128131
MethodArgumentCouldBeFinal Parameter 'roles' is not assigned and could be declared final 128
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 142
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 152
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 152
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 158
LocalVariableCouldBeFinal Local variable 'tdrp' could be declared final 160
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 172
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 172199
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 176
LocalVariableCouldBeFinal Local variable 'r' could be declared final 182
ShortVariable Avoid variables with short names like rp 184
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 184
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 184
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 195
MissingOverride The method 'delete()' is missing an @Override annotation. 204207

org/apache/fulcrum/security/torque/dynamic/TorqueAbstractDynamicRole.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 46327
AbstractNaming Abstract classes should be named AbstractXXX 46327
RedundantFieldInitializer Avoid using redundant field initializer for 'groupSet' 53
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 53
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 56
RedundantFieldInitializer Avoid using redundant field initializer for 'permissionSet' 56
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 70
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 70
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 89
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 89
MissingOverride The method 'addGroup(Group)' is missing an @Override annotation. 99102
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 99
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 101
MissingOverride The method 'addPermission(Permission)' is missing an @Override annotation. 107110
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 107
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 109
MissingOverride The method 'getGroups()' is missing an @Override annotation. 115127
MissingOverride The method 'getGroupsAsSet()' is missing an @Override annotation. 133136
MissingOverride The method 'getPermissions()' is missing an @Override annotation. 141153
MissingOverride The method 'getPermissionsAsSet()' is missing an @Override annotation. 159162
MissingOverride The method 'removeGroup(Group)' is missing an @Override annotation. 167170
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 167
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 169
MissingOverride The method 'removePermission(Permission)' is missing an @Override annotation. 175178
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 175
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 177
MissingOverride The method 'setGroups(GroupSet)' is missing an @Override annotation. 183193
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 183
ConfusingTernary Avoid if (x != y) ..; else ..; 185192
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 198
MissingOverride The method 'setGroupsAsSet(Set)' is missing an @Override annotation. 198201
MethodArgumentCouldBeFinal Parameter 'permissionSet' is not assigned and could be declared final 206
MissingOverride The method 'setPermissions(PermissionSet)' is missing an @Override annotation. 206216
ConfusingTernary Avoid if (x != y) ..; else ..; 208215
MethodArgumentCouldBeFinal Parameter 'permissions' is not assigned and could be declared final 221
MissingOverride The method 'setPermissionsAsSet(Set)' is missing an @Override annotation. 221224
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 235
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 245
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 245
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 251
LocalVariableCouldBeFinal Local variable 'tdrp' could be declared final 253
LocalVariableCouldBeFinal Local variable 'grouproles' could be declared final 260
LocalVariableCouldBeFinal Local variable 'tdgr' could be declared final 262
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 274
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 274318
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 278
LocalVariableCouldBeFinal Local variable 'p' could be declared final 284
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 286
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 286
ShortVariable Avoid variables with short names like rp 286
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 295
LocalVariableCouldBeFinal Local variable 'g' could be declared final 301
LocalVariableCouldBeFinal Local variable 'gr' could be declared final 303
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 303
ShortVariable Avoid variables with short names like gr 303
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 314
MissingOverride The method 'delete()' is missing an @Override annotation. 323326

org/apache/fulcrum/security/torque/dynamic/TorqueAbstractDynamicUser.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 47369
AtLeastOneConstructor Each class should declare at least one constructor 47369
RedundantFieldInitializer Avoid using redundant field initializer for 'groupSet' 52
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 52
RedundantFieldInitializer Avoid using redundant field initializer for 'delegators' 55
RedundantFieldInitializer Avoid using redundant field initializer for 'delegatees' 58
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 72
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 73
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 91
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 91
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 109
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 109
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 121
MissingOverride The method 'addGroup(Group)' is missing an @Override annotation. 121123
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 122
MissingOverride The method 'getGroups()' is missing an @Override annotation. 130138
MissingOverride The method 'getGroupsAsSet()' is missing an @Override annotation. 147149
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 158
MissingOverride The method 'removeGroup(Group)' is missing an @Override annotation. 158160
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 159
MissingOverride The method 'setGroups(GroupSet)' is missing an @Override annotation. 169175
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 169
ConfusingTernary Avoid if (x != y) ..; else ..; 170174
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 184
MissingOverride The method 'setGroupsAsSet(Set)' is missing an @Override annotation. 184186
MissingOverride The method 'getDelegatees()' is missing an @Override annotation. 195201
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 197
MissingOverride The method 'getDelegators()' is missing an @Override annotation. 210216
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 212
MissingOverride The method 'setDelegatees(Set)' is missing an @Override annotation. 225231
MethodArgumentCouldBeFinal Parameter 'delegatees' is not assigned and could be declared final 225
ConfusingTernary Avoid if (x != y) ..; else ..; 226230
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 227
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 229
MethodArgumentCouldBeFinal Parameter 'delegates' is not assigned and could be declared final 240
MissingOverride The method 'setDelegators(Set)' is missing an @Override annotation. 240246
ConfusingTernary Avoid if (x != y) ..; else ..; 241245
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 242
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 244
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 263
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 272
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 272
LocalVariableCouldBeFinal Local variable 'usergroups' could be declared final 278
LocalVariableCouldBeFinal Local variable 'tdug' could be declared final 280
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 284
LocalVariableCouldBeFinal Local variable 'delegatorlist' could be declared final 286287
LocalVariableCouldBeFinal Local variable 'tdud' could be declared final 289
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 293
LocalVariableCouldBeFinal Local variable 'delegateelist' could be declared final 295296
LocalVariableCouldBeFinal Local variable 'tdud' could be declared final 298
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 310
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 310361
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 312
LocalVariableCouldBeFinal Local variable 'g' could be declared final 318
ShortVariable Avoid variables with short names like ug 319
LocalVariableCouldBeFinal Local variable 'ug' could be declared final 319
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 319
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 327
LocalVariableCouldBeFinal Local variable 'u' could be declared final 333
ShortVariable Avoid variables with short names like ud 334
LocalVariableCouldBeFinal Local variable 'ud' could be declared final 334
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 334
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 342
LocalVariableCouldBeFinal Local variable 'u' could be declared final 348
ShortVariable Avoid variables with short names like ud 349
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 349
LocalVariableCouldBeFinal Local variable 'ud' could be declared final 349
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 358
MissingOverride The method 'delete()' is missing an @Override annotation. 366368

org/apache/fulcrum/security/torque/dynamic/TorqueDynamicGroupManagerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 3779
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3779
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 43
MissingOverride The method 'doSelectAllGroups(Connection)' is missing an @Override annotation. 4348
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 45
ShortVariable Avoid variables with short names like id 54
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 54
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 54
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 5457
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 63
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 6378
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 63
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 65
LocalVariableCouldBeFinal Local variable 'groups' could be declared final 70
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 72
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 77

org/apache/fulcrum/security/torque/dynamic/TorqueDynamicModelManagerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 45447
CyclomaticComplexity The class 'TorqueDynamicModelManagerImpl' has a total cyclomatic complexity of 80 (highest 10). 45447
GodClass Possible God Class (WMC=80, ATFD=64, TCC=0.000%) 45447
CyclomaticComplexity The method 'revoke(Group, Role)' has a cyclomatic complexity of 10. 6298
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 6298
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 62
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 62
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 63
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 63
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 64
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 64
CloseResource Ensure that resources like this Connection object are closed after use 70
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 79
AvoidDuplicateLiterals The String literal "') failed" appears 8 times in this file; the first occurrence is on line 81 81
AvoidDuplicateLiterals The String literal "', '" appears 8 times in this file; the first occurrence is on line 81 81
AvoidDuplicateLiterals The String literal "Unknown group '" appears 4 times in this file; the first occurrence is on line 92 92
AvoidDuplicateLiterals The String literal "Unknown role '" appears 4 times in this file; the first occurrence is on line 96 96
CyclomaticComplexity The method 'grant(Role, Permission)' has a cyclomatic complexity of 10. 110148
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 110148
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 110
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 112
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 112
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 113
LocalVariableCouldBeFinal Local variable 'permissionExists' could be declared final 113
CloseResource Ensure that resources like this Connection object are closed after use 119
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 128
CyclomaticComplexity The method 'revoke(Role, Permission)' has a cyclomatic complexity of 10. 160199
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 160
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 160
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 160199
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 162
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 162
LocalVariableCouldBeFinal Local variable 'permissionExists' could be declared final 163
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 163
CloseResource Ensure that resources like this Connection object are closed after use 169
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 173
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 179
CyclomaticComplexity The method 'grant(User, Group)' has a cyclomatic complexity of 10. 213249
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 213
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 213
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 213249
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 214
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 214
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 215
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 215
CloseResource Ensure that resources like this Connection object are closed after use 221
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 230
AvoidDuplicateLiterals The String literal "Unknown user '" appears 6 times in this file; the first occurrence is on line 247 247
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 263
CyclomaticComplexity The method 'revoke(User, Group)' has a cyclomatic complexity of 10. 263299
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 263299
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 263
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 264
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 264
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 265
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 265
CloseResource Ensure that resources like this Connection object are closed after use 271
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 280
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 311
CyclomaticComplexity The method 'grant(Group, Role)' has a cyclomatic complexity of 10. 311347
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 311
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 311347
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 312
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 312
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 313
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 313
CloseResource Ensure that resources like this Connection object are closed after use 319
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 328
CyclomaticComplexity The method 'addDelegate(User, User)' has a cyclomatic complexity of 10. 359396
MethodArgumentCouldBeFinal Parameter 'delegatee' is not assigned and could be declared final 359
MethodArgumentCouldBeFinal Parameter 'delegator' is not assigned and could be declared final 359
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 359396
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 361
LocalVariableCouldBeFinal Local variable 'delegatorExists' could be declared final 361
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 362
LocalVariableCouldBeFinal Local variable 'delegateeExists' could be declared final 362
CloseResource Ensure that resources like this Connection object are closed after use 367
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 376
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 409446
MethodArgumentCouldBeFinal Parameter 'delegatee' is not assigned and could be declared final 409
MethodArgumentCouldBeFinal Parameter 'delegator' is not assigned and could be declared final 409
CyclomaticComplexity The method 'removeDelegate(User, User)' has a cyclomatic complexity of 10. 409446
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 411
LocalVariableCouldBeFinal Local variable 'delegatorExists' could be declared final 411
LocalVariableCouldBeFinal Local variable 'delegateeExists' could be declared final 412
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 412
CloseResource Ensure that resources like this Connection object are closed after use 417
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 426

org/apache/fulcrum/security/torque/dynamic/TorqueDynamicPermissionManagerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 3784
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 48
MissingOverride The method 'doSelectAllPermissions(Connection)' is missing an @Override annotation. 4853
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 50
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 59
ShortVariable Avoid variables with short names like id 59
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 5962
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 59
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 68
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 6883
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 68
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 70
LocalVariableCouldBeFinal Local variable 'permissions' could be declared final 75
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 77
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 82

org/apache/fulcrum/security/torque/dynamic/TorqueDynamicRoleManagerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 3784
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 48
MissingOverride The method 'doSelectAllRoles(Connection)' is missing an @Override annotation. 4853
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 50
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 59
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 59
ShortVariable Avoid variables with short names like id 59
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 5962
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 68
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 6883
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 70
LocalVariableCouldBeFinal Local variable 'roles' could be declared final 75
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 77
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 82

org/apache/fulcrum/security/torque/dynamic/TorqueDynamicUserManagerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 3784
MissingOverride The method 'doSelectAllUsers(Connection)' is missing an @Override annotation. 4853
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 48
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 50
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 59
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 59
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 5962
ShortVariable Avoid variables with short names like id 59
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 68
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 6883
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 70
LocalVariableCouldBeFinal Local variable 'users' could be declared final 75
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 77
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 82

org/apache/fulcrum/security/torque/om/TorqueBasicGroupPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueBasicUserGroupPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueBasicUserPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupRolePeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueDynamicPermissionPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePermissionPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueDynamicUserDelegatesPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueDynamicUserGroupPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueDynamicUserPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueTurbineGroupPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueTurbinePermissionPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePermission.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 2049
MethodArgumentCouldBeFinal Parameter 'connection' is not assigned and could be declared final 33
MethodArgumentCouldBeFinal Parameter 'connection' is not assigned and could be declared final 43

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePermissionPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueTurbineUserGroupRole.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 2059
MethodArgumentCouldBeFinal Parameter 'connection' is not assigned and could be declared final 33
MethodArgumentCouldBeFinal Parameter 'connection' is not assigned and could be declared final 43
MethodArgumentCouldBeFinal Parameter 'connection' is not assigned and could be declared final 53

org/apache/fulcrum/security/torque/om/TorqueTurbineUserGroupRolePeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TorqueTurbineUserGroupRolePeerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1932
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 27
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 27

org/apache/fulcrum/security/torque/om/TorqueTurbineUserPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TurbineGroupPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TurbinePermissionPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TurbineRolePeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TurbineRolePermissionPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TurbineUserGroupRolePeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/om/TurbineUserPeer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1317

org/apache/fulcrum/security/torque/peer/PeerManagable.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getPeerManager': the method is declared in an interface type 25
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPeerInstance': the method is declared in an interface type 27
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCustomPeer': the method is declared in an interface type 29
UnnecessaryModifier Unnecessary modifier 'public' on method 'setCustomPeer': the method is declared in an interface type 30
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPeerClassName': the method is declared in an interface type 32
UnnecessaryModifier Unnecessary modifier 'public' on method 'setPeerClassName': the method is declared in an interface type 34

org/apache/fulcrum/security/torque/peer/PeerManager.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getPeerInstance': the method is declared in an interface type 5253
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getPeerInstance': the method is declared in an interface type 64

org/apache/fulcrum/security/torque/peer/PeerManagerDefaultImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 3984
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 45
ImmutableField Private field 'peers' could be made final; it is only initialized in the declaration or constructor. 45
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 45
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 51
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 61
MethodArgumentCouldBeFinal Parameter 'peerInterface' is not assigned and could be declared final 61
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 61
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 64
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 65
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 69
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 69
LocalVariableCouldBeFinal Local variable 'peer' could be declared final 69
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 70
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 7780

org/apache/fulcrum/security/torque/peer/TorqueTurbinePeer.java

Rule Violation Line
ShortVariable Avoid variables with short names like pk 47

org/apache/fulcrum/security/torque/peer/TurbineRolePermissionPeerMapper.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getTurbinePermission': the method is declared in an interface type 8384

org/apache/fulcrum/security/torque/peer/managers/PeerGroupManager.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 35110
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 35110
DataClass The class 'PeerGroupManager' is suspected to be a Data Class (WOC=22.222%, NOPA=0, NOAM=7, WMC=11) 35110
AtLeastOneConstructor Each class should declare at least one constructor 35110
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the peerManager field if you want a default access modifier 40
DefaultPackage Use explicit scoping instead of the default package private level 40
LongVariable Avoid excessively long variable names like PEER_CLASS_NAME_KEY 41
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 49
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 53
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 62
MethodArgumentCouldBeFinal Parameter 'columnName' is not assigned and could be declared final 82
MethodArgumentCouldBeFinal Parameter 'customPeer' is not assigned and could be declared final 93
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 105

org/apache/fulcrum/security/torque/peer/managers/PeerPermissionManager.java

Rule Violation Line
DataClass The class 'PeerPermissionManager' is suspected to be a Data Class (WOC=22.222%, NOPA=0, NOAM=7, WMC=11) 34110
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 34110
AtLeastOneConstructor Each class should declare at least one constructor 34110
AbstractNaming Abstract classes should be named AbstractXXX 34110
LongVariable Avoid excessively long variable names like PEER_CLASS_NAME_KEY 39
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the peerManager field if you want a default access modifier 40
DefaultPackage Use explicit scoping instead of the default package private level 40
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 48
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 53
MethodArgumentCouldBeFinal Parameter 'customPeer' is not assigned and could be declared final 67
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 79
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 86
MethodArgumentCouldBeFinal Parameter 'columnName' is not assigned and could be declared final 106

org/apache/fulcrum/security/torque/peer/managers/PeerRoleManager.java

Rule Violation Line
DataClass The class 'PeerRoleManager' is suspected to be a Data Class (WOC=22.222%, NOPA=0, NOAM=7, WMC=11) 34112
AbstractNaming Abstract classes should be named AbstractXXX 34112
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 34112
AtLeastOneConstructor Each class should declare at least one constructor 34112
LongVariable Avoid excessively long variable names like PEER_CLASS_NAME_KEY 39
DefaultPackage Use explicit scoping instead of the default package private level 40
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the peerManager field if you want a default access modifier 40
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 48
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 53
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 63
MethodArgumentCouldBeFinal Parameter 'columnName' is not assigned and could be declared final 83
MethodArgumentCouldBeFinal Parameter 'customPeer' is not assigned and could be declared final 95
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 107

org/apache/fulcrum/security/torque/peer/managers/PeerUserManager.java

Rule Violation Line
DataClass The class 'PeerUserManager' is suspected to be a Data Class (WOC=21.429%, NOPA=0, NOAM=11, WMC=22) 35175
AtLeastOneConstructor Each class should declare at least one constructor 35175
AbstractNaming Abstract classes should be named AbstractXXX 35175
LongVariable Avoid excessively long variable names like PEER_CLASS_NAME_KEY 48
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the peerManager field if you want a default access modifier 49
DefaultPackage Use explicit scoping instead of the default package private level 49
LongVariable Avoid excessively long variable names like columnName4UserGroupRole 53
LongVariable Avoid excessively long variable names like userGroupRolePeerClassName 55
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 61
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 66
LocalVariableCouldBeFinal Local variable 'userGroupRoleConf' could be declared final 72
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 72
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 7383
LocalVariableCouldBeFinal Local variable 'configuration' could be declared final 75
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 76
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 76
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 77
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 94
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 98
MethodArgumentCouldBeFinal Parameter 'columnName' is not assigned and could be declared final 118
MethodArgumentCouldBeFinal Parameter 'customPeer' is not assigned and could be declared final 133
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 145
LongVariable Avoid excessively long variable names like userGroupRolePeerClassName 157
MethodArgumentCouldBeFinal Parameter 'userGroupRolePeerClassName' is not assigned and could be declared final 157
MethodArgumentCouldBeFinal Parameter 'columnName4UserGroupRole' is not assigned and could be declared final 169
LongVariable Avoid excessively long variable names like columnName4UserGroupRole 169

org/apache/fulcrum/security/torque/security/TorqueAbstractSecurityEntity.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 33148
AtLeastOneConstructor Each class should declare at least one constructor 33148
ShortVariable Avoid variables with short names like id 52
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 115
ShortVariable Avoid variables with short names like id 115
EmptyCatchBlock Avoid empty catch blocks 121124
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 140
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 144

org/apache/fulcrum/security/torque/security/turbine/TorqueAbstractTurbineTurbineSecurityEntity.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 35131
AtLeastOneConstructor Each class should declare at least one constructor 35131
RedundantFieldInitializer Avoid using redundant field initializer for 'userGroupRoleSet' 42
MissingOverride The method 'addUserGroupRole(TurbineUserGroupRole)' is missing an @Override annotation. 4750
MethodArgumentCouldBeFinal Parameter 'userGroupRole' is not assigned and could be declared final 47
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 49
MethodArgumentCouldBeFinal Parameter 'isLazilyLoaded' is not assigned and could be declared final 57
MethodArgumentCouldBeFinal Parameter 'user_group_role' is not assigned and could be declared final 57
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 60
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 64
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 77
MissingOverride The method 'getUserGroupRoleSet()' is missing an @Override annotation. 8790
MissingOverride The method 'removeUserGroupRole(TurbineUserGroupRole)' is missing an @Override annotation. 9598
MethodArgumentCouldBeFinal Parameter 'userGroupRole' is not assigned and could be declared final 95
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 97
MethodArgumentCouldBeFinal Parameter 'isLazilyLoaded' is not assigned and could be declared final 105
MethodArgumentCouldBeFinal Parameter 'user_group_role' is not assigned and could be declared final 105
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 108
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 112
MissingOverride The method 'setUserGroupRoleSet(Set)' is missing an @Override annotation. 119129
MethodArgumentCouldBeFinal Parameter 'userGroupRoleSet' is not assigned and could be declared final 119
ConfusingTernary Avoid if (x != y) ..; else ..; 121128
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 127

org/apache/fulcrum/security/torque/security/turbine/TorqueAbstractTurbineTurbineSecurityEntityDefault.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 3756
AtLeastOneConstructor Each class should declare at least one constructor 3756

org/apache/fulcrum/security/torque/turbine/DefaultAbstractTurbineGroup.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 42178
AtLeastOneConstructor Each class should declare at least one constructor 42178
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 60
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 60
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 78
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 78
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 82
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 82
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 84
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 86
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 88
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 88
CloseResource Ensure that resources like this Connection object are closed after use 109
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 117
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 140
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 144
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 145
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 147
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 153
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 155
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 155
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 156
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 157
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 158
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 164

org/apache/fulcrum/security/torque/turbine/DefaultAbstractTurbinePermission.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 42212
AtLeastOneConstructor Each class should declare at least one constructor 42212
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 49
RedundantFieldInitializer Avoid using redundant field initializer for 'roleSet' 49
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 63
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 63
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 74
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 76
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 111
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 113
MethodArgumentCouldBeFinal Parameter 'roleSet' is not assigned and could be declared final 120
ConfusingTernary Avoid if (x != y) ..; else ..; 122129
MethodArgumentCouldBeFinal Parameter 'roles' is not assigned and could be declared final 136
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 142
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 152
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 152
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 159
LocalVariableCouldBeFinal Local variable 'ttrp' could be declared final 161
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 175
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 179
LocalVariableCouldBeFinal Local variable 'r' could be declared final 185
ShortVariable Avoid variables with short names like rp 187
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 187
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 187
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 198

org/apache/fulcrum/security/torque/turbine/DefaultAbstractTurbineRole.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 47305
AtLeastOneConstructor Each class should declare at least one constructor 47305
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 54
RedundantFieldInitializer Avoid using redundant field initializer for 'permissionSet' 54
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 87
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 87
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 98
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 100
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 135
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 137
MethodArgumentCouldBeFinal Parameter 'permissionSet' is not assigned and could be declared final 144
ConfusingTernary Avoid if (x != y) ..; else ..; 146153
MethodArgumentCouldBeFinal Parameter 'permissions' is not assigned and could be declared final 160
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 166
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 177
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 177
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 183
LocalVariableCouldBeFinal Local variable 'ttrp' could be declared final 185
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 191
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 191
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 193
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 195
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 197
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 197
CloseResource Ensure that resources like this Connection object are closed after use 219
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 227
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 250
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 254
LocalVariableCouldBeFinal Local variable 'p' could be declared final 260
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 262
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 262
ShortVariable Avoid variables with short names like rp 262

org/apache/fulcrum/security/torque/turbine/DefaultAbstractTurbineUser.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 45199
AbstractNaming Abstract classes should be named AbstractXXX 45199
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 83
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 83
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 86
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 86
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 103
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 103
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 106
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 106
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 108
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 122
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 132
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 136
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 139
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 145
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 147
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 147
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 148
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 149
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 150
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 156
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 177
MethodArgumentCouldBeFinal Parameter 'userGroupRoleSet' is not assigned and could be declared final 178
MethodArgumentCouldBeFinal Parameter 'ugrs' is not assigned and could be declared final 179
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 183
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 185
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 185

org/apache/fulcrum/security/torque/turbine/FulcrumAbstractTurbineGroup.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 42173
AtLeastOneConstructor Each class should declare at least one constructor 42173
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 60
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 60
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 78
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 78
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 82
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 82
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 83
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 85
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 87
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 87
CloseResource Ensure that resources like this Connection object are closed after use 105
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 113
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 135
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 139
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 142
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 148
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 150
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 150
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 151
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 152
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 153
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 159

org/apache/fulcrum/security/torque/turbine/FulcrumAbstractTurbinePermission.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 41212
AbstractNaming Abstract classes should be named AbstractXXX 41212
RedundantFieldInitializer Avoid using redundant field initializer for 'roleSet' 48
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 48
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 62
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 62
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 72
MissingOverride The method 'addRole(Role)' is missing an @Override annotation. 7275
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 74
MissingOverride The method 'getRoles()' is missing an @Override annotation. 8092
MissingOverride The method 'getRolesAsSet()' is missing an @Override annotation. 98101
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 106
MissingOverride The method 'removeRole(Role)' is missing an @Override annotation. 106109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 108
MethodArgumentCouldBeFinal Parameter 'roleSet' is not assigned and could be declared final 114
MissingOverride The method 'setRoles(RoleSet)' is missing an @Override annotation. 114124
ConfusingTernary Avoid if (x != y) ..; else ..; 116123
MissingOverride The method 'setRolesAsSet(Set)' is missing an @Override annotation. 129132
MethodArgumentCouldBeFinal Parameter 'roles' is not assigned and could be declared final 129
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 146
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 156
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 156
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 162
LocalVariableCouldBeFinal Local variable 'ttrp' could be declared final 164
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 176
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 176203
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 180
LocalVariableCouldBeFinal Local variable 'r' could be declared final 186
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 188
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 188
ShortVariable Avoid variables with short names like rp 188
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 199
MissingOverride The method 'delete()' is missing an @Override annotation. 208211

org/apache/fulcrum/security/torque/turbine/FulcrumAbstractTurbineRole.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 48314
AbstractNaming Abstract classes should be named AbstractXXX 48314
RedundantFieldInitializer Avoid using redundant field initializer for 'permissionSet' 54
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 54
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 69
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 69
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 86
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 87
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 99
MissingOverride The method 'addPermission(Permission)' is missing an @Override annotation. 99101
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 100
MissingOverride The method 'getPermissions()' is missing an @Override annotation. 109117
MissingOverride The method 'getPermissionsAsSet()' is missing an @Override annotation. 126128
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 137
MissingOverride The method 'removePermission(Permission)' is missing an @Override annotation. 137139
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 138
MethodArgumentCouldBeFinal Parameter 'permissionSet' is not assigned and could be declared final 148
MissingOverride The method 'setPermissions(PermissionSet)' is missing an @Override annotation. 148154
ConfusingTernary Avoid if (x != y) ..; else ..; 149153
MethodArgumentCouldBeFinal Parameter 'permissions' is not assigned and could be declared final 162
MissingOverride The method 'setPermissionsAsSet(Set)' is missing an @Override annotation. 162164
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 181
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 192
MissingOverride The method 'retrieveAttachedObjects(Connection, Boolean)' is missing an @Override annotation. 192222
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 192
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 196197
LocalVariableCouldBeFinal Local variable 'ttrp' could be declared final 199
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 204
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 204
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 206207
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 209
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 210
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 210
CloseResource Ensure that resources like this Connection object are closed after use 233
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 240
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 260302
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 260
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 262
LocalVariableCouldBeFinal Local variable 'p' could be declared final 268
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 269
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 269
ShortVariable Avoid variables with short names like rp 269
MissingOverride The method 'delete()' is missing an @Override annotation. 311313

org/apache/fulcrum/security/torque/turbine/FulcrumAbstractTurbineUser.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 44147
AbstractNaming Abstract classes should be named AbstractXXX 44147
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 61
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 61
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 72
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 82
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 82
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 86
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 86
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 87
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 89
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 91
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 91
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 108
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 112
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 115
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 121
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 123
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 123
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 124
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 125
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 126
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 132

org/apache/fulcrum/security/torque/turbine/TorqueTurbineGroupManagerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 43167
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 55
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 57
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 62
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 63
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 63
ShortVariable Avoid variables with short names like id 81
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 81
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 81
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 86
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 87
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 87
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 104
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 104
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 106
UnusedAssignment The initializer for variable 'groups' is never used (overwritten on lines 117 and 125) 109
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 114
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 116
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 116
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 128
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 133
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 137
CloseResource Ensure that resources like this Connection object are closed after use 138
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 148

org/apache/fulcrum/security/torque/turbine/TorqueTurbineModelManagerImpl.java

Rule Violation Line
GodClass Possible God Class (WMC=76, ATFD=49, TCC=0.000%) 48376
AtLeastOneConstructor Each class should declare at least one constructor 48376
TooManyMethods This class has too many methods, consider refactoring it. 49376
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 63
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 63
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 63114
CyclomaticComplexity The method 'grant(Role, Permission)' has a cyclomatic complexity of 12. 63114
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 66
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 66
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 67
LocalVariableCouldBeFinal Local variable 'permissionExists' could be declared final 67
CloseResource Ensure that resources like this Connection object are closed after use 78
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 88
AvoidDuplicateLiterals The String literal "', '" appears 6 times in this file; the first occurrence is on line 92 92
AvoidDuplicateLiterals The String literal "Unknown role '" appears 5 times in this file; the first occurrence is on line 107 107
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 125164
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 125
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 125
CyclomaticComplexity The method 'revoke(Role, Permission)' has a cyclomatic complexity of 11. 125164
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 128
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 128
LocalVariableCouldBeFinal Local variable 'permissionExists' could be declared final 129
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 129
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 142
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 168
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 168
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 168
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 168171
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 174
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 174
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 174
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 174179
IfStmtsMustUseBraces Avoid using if statements without curly braces 177178
ControlStatementBraces This statement should have braces 178
MethodArgumentCouldBeFinal Parameter 'newRole' is not assigned and could be declared final 182
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 182
MethodArgumentCouldBeFinal Parameter 'oldRole' is not assigned and could be declared final 182
LocalVariableCouldBeFinal Local variable 'group' could be declared final 185
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 191
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 191
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 191
LocalVariableCouldBeFinal Local variable 'new_user_group_role' could be declared final 194
LongVariable Avoid excessively long variable names like new_user_group_role 194
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 218
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 218
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 218
CyclomaticComplexity The method 'removeUserGroupRole(User, Role, Group)' has a cyclomatic complexity of 11. 218253
LocalVariableCouldBeFinal Local variable 'user_group_role' could be declared final 222
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 224
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 225
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 226
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 255
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 255
CyclomaticComplexity The method 'checkExists(User, Group, Role)' has a cyclomatic complexity of 10. 255281
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 255
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 257
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 257
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 258
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 258
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 259
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 259
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 263
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 283
CyclomaticComplexity The method 'checkExists(User, Role, Role, Group)' has a cyclomatic complexity of 11. 283308
MethodArgumentCouldBeFinal Parameter 'oldRole' is not assigned and could be declared final 283
MethodArgumentCouldBeFinal Parameter 'globalGroup' is not assigned and could be declared final 283
MethodArgumentCouldBeFinal Parameter 'newRole' is not assigned and could be declared final 283
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 285
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 285
LocalVariableCouldBeFinal Local variable 'oldRoleExists' could be declared final 286
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 286
LocalVariableCouldBeFinal Local variable 'newRoleExists' could be declared final 287
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 287
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 291
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 310
MethodArgumentCouldBeFinal Parameter 'newRole' is not assigned and could be declared final 310
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 310
MethodArgumentCouldBeFinal Parameter 'privilege' is not assigned and could be declared final 310
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 310
LawOfDemeter Potential violation of Law of Demeter (static property access) 327
MethodArgumentCouldBeFinal Parameter 'privilege' is not assigned and could be declared final 336
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 336
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 336
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 336
MethodArgumentCouldBeFinal Parameter 'logChars' is not assigned and could be declared final 342
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 342
CloseResource Ensure that resources like this Connection object are closed after use 345
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 358
IdenticalCatchBranches 'catch' branch identical to 'TorqueException' branch 364367
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 364

org/apache/fulcrum/security/torque/turbine/TorqueTurbinePermissionManagerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38131
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 50
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 52
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 57
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 58
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 58
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 76
ShortVariable Avoid variables with short names like id 76
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 76
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 81
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 82
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 82
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 98
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 98
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 100
UnusedAssignment The initializer for variable 'permissions' is never used (overwritten on lines 111 and 120) 105
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 109
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 110
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 111
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 123
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 128

org/apache/fulcrum/security/torque/turbine/TorqueTurbineRoleManagerImpl.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38127
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 49
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 51
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 56
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 58
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 58
ShortVariable Avoid variables with short names like id 74
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 74
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 74
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 79
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 81
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 81
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 97
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 97
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 99
UnusedAssignment The initializer for variable 'roles' is never used (overwritten on lines 110 and 118) 103
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 107
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 109
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 109
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 110
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 121
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 125

org/apache/fulcrum/security/torque/turbine/TorqueTurbineUserManagerImpl.java

Rule Violation Line
GodClass Possible God Class (WMC=50, ATFD=12, TCC=0.000%) 47373
AtLeastOneConstructor Each class should declare at least one constructor 47373
LocalVariableCouldBeFinal Local variable 'anonUser' could be declared final 63
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'anonUser' 65
ShortVariable Avoid variables with short names like u 77
MethodArgumentCouldBeFinal Parameter 'u' is not assigned and could be declared final 77
LocalVariableCouldBeFinal Local variable 'anon' could be declared final 81
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 84
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 87
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 89
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 100
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 102
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 107
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 108
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 108
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 124
ShortVariable Avoid variables with short names like id 124
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 124
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 129
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 130
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 130
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 146
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 146
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 148
UnusedAssignment The initializer for variable 'users' is never used (overwritten on lines 159 and 167) 153
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 157
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 158
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 158
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 159
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 171
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 176
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 191
CloseResource Ensure that resources like this Connection object are closed after use 194
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 200
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 206
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 210
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 214
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 241
LocalVariableCouldBeFinal Local variable 'userSet' could be declared final 241
CloseResource Ensure that resources like this Connection object are closed after use 242
LocalVariableCouldBeFinal Local variable 'users' could be declared final 248
LocalVariableCouldBeFinal Local variable 'user' could be declared final 250
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 259
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 288
ShortVariable Avoid variables with short names like id 288
SimplifyConditional No need to check for null before an instanceof 292
CloseResource Ensure that resources like this Connection object are closed after use 294
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 306
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 339
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 339
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 345346
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 347
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 349
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 349
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 350
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 350

Priority 4

org/apache/fulcrum/security/torque/TorqueAbstractGroupManager.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'org.apache.fulcrum.security.util.EntityExistsException' 29

org/apache/fulcrum/security/torque/TorqueAbstractPermissionManager.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'org.apache.fulcrum.security.util.EntityExistsException' 30

org/apache/fulcrum/security/torque/TorqueAbstractRoleManager.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'org.apache.fulcrum.security.util.EntityExistsException' 29

org/apache/fulcrum/security/torque/om/TorqueBasicGroup.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueBasicGroupPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueBasicGroupPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueBasicUser.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUser' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueBasicUserGroup.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueBasicUserGroupPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueBasicUserGroupPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueBasicUserPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueBasicUserPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicGroup.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupRole.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroupRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupRolePeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroupRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupRolePeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroupRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicPermission.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicPermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueDynamicPermissionPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicPermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicPermissionPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicPermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicRole.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePermission.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRolePermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePermissionPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRolePermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePermissionPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRolePermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUser.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUser' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueDynamicUserDelegates.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserDelegates' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueDynamicUserDelegatesPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserDelegatesPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUserDelegatesPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserDelegatesPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUserGroup.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueDynamicUserGroupPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUserGroupPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUserPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUserPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueTurbineGroup.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueTurbineGroupPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueTurbineGroupPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueTurbinePermission.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbinePermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueTurbinePermissionPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbinePermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueTurbinePermissionPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbinePermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueTurbineRole.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePermission.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRolePermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 21

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePermissionPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRolePermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePermissionPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRolePermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueTurbineUser.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUser' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TorqueTurbineUserGroupRole.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUserGroupRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 21

org/apache/fulcrum/security/torque/om/TorqueTurbineUserGroupRolePeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUserGroupRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueTurbineUserGroupRolePeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUserGroupRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 20

org/apache/fulcrum/security/torque/om/TorqueTurbineUserPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUserPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TorqueTurbineUserPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUserPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbineGroup.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TurbineGroupPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbineGroupPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbinePermission.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbinePermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TurbinePermissionPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbinePermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbinePermissionPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbinePermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbineRole.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TurbineRolePeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbineRolePeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbineRolePermission.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRolePermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TurbineRolePermissionPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRolePermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbineRolePermissionPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRolePermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbineUser.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUser' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TurbineUserGroupRole.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUserGroupRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 15

org/apache/fulcrum/security/torque/om/TurbineUserGroupRolePeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUserGroupRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbineUserGroupRolePeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUserGroupRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbineUserPeer.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUserPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/om/TurbineUserPeerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUserPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 14

org/apache/fulcrum/security/torque/peer/Peer.java

Rule Violation Line
ShortClassName Avoid short class names like Peer 2831

org/apache/fulcrum/security/torque/peer/PeerManager.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'org.apache.fulcrum.security.spi.AbstractEntityManager' 22

org/apache/fulcrum/security/torque/turbine/TorqueTurbineGroupManagerImpl.java

Rule Violation Line
UselessParentheses Useless parentheses. 59
UselessParentheses Useless parentheses. 83
UselessParentheses Useless parentheses. 111

org/apache/fulcrum/security/torque/turbine/TorqueTurbinePermissionManagerImpl.java

Rule Violation Line
UselessParentheses Useless parentheses. 54
UselessParentheses Useless parentheses. 78
UselessParentheses Useless parentheses. 106

org/apache/fulcrum/security/torque/turbine/TorqueTurbineRoleManagerImpl.java

Rule Violation Line
UselessParentheses Useless parentheses. 53
UselessParentheses Useless parentheses. 76
UselessParentheses Useless parentheses. 104

org/apache/fulcrum/security/torque/turbine/TorqueTurbineUserManagerImpl.java

Rule Violation Line
UselessParentheses Useless parentheses. 104
UselessParentheses Useless parentheses. 126
UselessParentheses Useless parentheses. 154

Priority 5

org/apache/fulcrum/security/torque/TorqueAbstractGroupManager.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'group' (lines '195'-'202'). 195202
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '196'-'200'). 196200
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '208'-'231'). 208231
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'groupSet' (lines '243'-'277'). 243277
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '244'-'249'). 244249
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '262'-'277'). 262277
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '290'-'303'). 290303
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '292'-'296'). 292296
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '301'-'327'). 301327
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '303'-'307'). 303307
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'exists' (lines '307'-'327'). 307327
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '347'-'351'). 347351
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '359'-'383'). 359383

org/apache/fulcrum/security/torque/TorqueAbstractPermissionManager.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'permissionSet' (lines '179'-'204'). 179204
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '180'-'183'). 180183
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '194'-'204'). 194204
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '216'-'228'). 216228
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '218'-'221'). 218221
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '226'-'242'). 226242
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '228'-'230'). 228230
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'exists' (lines '230'-'242'). 230242
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '258'-'261'). 258261
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '269'-'284'). 269284
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'permission' (lines '298'-'304'). 298304
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '299'-'302'). 299302
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '310'-'324'). 310324

org/apache/fulcrum/security/torque/TorqueAbstractRoleManager.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '201'-'214'). 201214
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '203'-'207'). 203207
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '212'-'237'). 212237
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '214'-'218'). 214218
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'exists' (lines '218'-'237'). 218237
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'roleSet' (lines '249'-'282'). 249282
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '250'-'254'). 250254
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '267'-'282'). 267282
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '302'-'306'). 302306
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '314'-'338'). 314338
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'role' (lines '352'-'359'). 352359
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '353'-'357'). 353357
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '365'-'388'). 365388

org/apache/fulcrum/security/torque/TorqueAbstractUserManager.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '171'-'183'). 171183
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '173'-'176'). 173176
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '181'-'197'). 181197
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '183'-'185'). 183185
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'exists' (lines '185'-'197'). 185197
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'user' (lines '213'-'219'). 213219
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '214'-'217'). 214217
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '225'-'239'). 225239
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'userSet' (lines '250'-'276'). 250276
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '251'-'254'). 251254
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '266'-'276'). 266276
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '292'-'295'). 292295
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '303'-'318'). 303318

org/apache/fulcrum/security/torque/basic/TorqueBasicModelManagerImpl.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '63'-'67'). 6367
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '73'-'99'). 7399
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '121'-'125'). 121125
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '131'-'157'). 131157
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '186'-'190'). 186190
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '195'-'215'). 195215

org/apache/fulcrum/security/torque/dynamic/TorqueDynamicModelManagerImpl.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '70'-'73'). 7073
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '79'-'98'). 7998
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '119'-'122'). 119122
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '128'-'148'). 128148
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '169'-'172'). 169172
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '179'-'199'). 179199
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '221'-'224'). 221224
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '230'-'249'). 230249
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '271'-'274'). 271274
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '280'-'299'). 280299
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '319'-'322'). 319322
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '328'-'347'). 328347
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '367'-'370'). 367370
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '376'-'396'). 376396
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '417'-'420'). 417420
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '426'-'446'). 426446

org/apache/fulcrum/security/torque/turbine/DefaultAbstractTurbineGroup.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '109'-'112'). 109112
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '117'-'134'). 117134

org/apache/fulcrum/security/torque/turbine/DefaultAbstractTurbineRole.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '219'-'222'). 219222
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '227'-'243'). 227243

org/apache/fulcrum/security/torque/turbine/FulcrumAbstractTurbineGroup.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '105'-'108'). 105108
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '113'-'129'). 113129

org/apache/fulcrum/security/torque/turbine/FulcrumAbstractTurbineRole.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '233'-'235'). 233235
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '240'-'251'). 240251

org/apache/fulcrum/security/torque/turbine/TorqueTurbineGroupManagerImpl.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groups' (lines '109'-'117'). 109117
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groups' (lines '109'-'125'). 109125
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'groups' (lines '117'-'134'). 117134
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '138'-'165'). 138165
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '138'-'143'). 138143
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '148'-'165'). 148165

org/apache/fulcrum/security/torque/turbine/TorqueTurbineModelManagerImpl.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '78'-'82'). 7882
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '88'-'114'). 88114
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'ugrFound' (lines '221'-'228'). 221228
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'logChars' (lines '313'-'327'). 313327
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '345'-'349'). 345349
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '358'-'375'). 358375

org/apache/fulcrum/security/torque/turbine/TorqueTurbinePermissionManagerImpl.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'permissions' (lines '105'-'120'). 105120
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'permissions' (lines '105'-'111'). 105111
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'permissions' (lines '111'-'129'). 111129

org/apache/fulcrum/security/torque/turbine/TorqueTurbineRoleManagerImpl.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'roles' (lines '103'-'110'). 103110
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'roles' (lines '103'-'118'). 103118
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'roles' (lines '110'-'126'). 110126

org/apache/fulcrum/security/torque/turbine/TorqueTurbineUserManagerImpl.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'users' (lines '153'-'167'). 153167
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'users' (lines '153'-'159'). 153159
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'users' (lines '159'-'177'). 159177
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'user' (lines '193'-'200'). 193200
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '194'-'198'). 194198
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '206'-'229'). 206229
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'userSet' (lines '241'-'274'). 241274
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '242'-'246'). 242246
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '259'-'274'). 259274
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '294'-'298'). 294298
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '306'-'330'). 306330
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'ugrs' (lines '350'-'371'). 350371

Files

org/apache/fulcrum/security/torque/TorqueAbstractGroupManager.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'org.apache.fulcrum.security.util.EntityExistsException' 4 29
AbstractNaming Abstract classes should be named AbstractXXX 3 43394
AtLeastOneConstructor Each class should declare at least one constructor 3 43394
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 56
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 60
ShortVariable Avoid variables with short names like id 3 102
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 114127
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 114
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 121
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 139
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 139160
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 139
LocalVariableCouldBeFinal Local variable 'g' could be declared final 3 147
ShortVariable Avoid variables with short names like g 3 147
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 148
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 149
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 151
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 171
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 171181
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 193
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'group' (lines '195'-'202'). 5 195202
CloseResource Ensure that resources like this Connection object are closed after use 3 196
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '196'-'200'). 5 196200
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 208
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '208'-'231'). 5 208231
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 212
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 216
AvoidDuplicateLiterals The String literal "Error retrieving group information" appears 4 times in this file; the first occurrence is on line 220 3 220
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'groupSet' (lines '243'-'277'). 5 243277
LocalVariableCouldBeFinal Local variable 'groupSet' could be declared final 3 243
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '244'-'249'). 5 244249
CloseResource Ensure that resources like this Connection object are closed after use 3 244
LocalVariableCouldBeFinal Local variable 'groups' could be declared final 3 251
LocalVariableCouldBeFinal Local variable 'group' could be declared final 3 253
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '262'-'277'). 5 262277
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 262
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 3 288
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '290'-'303'). 5 290303
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '292'-'296'). 5 292296
CloseResource Ensure that resources like this Connection object are closed after use 3 292
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 301
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '301'-'327'). 5 301327
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '303'-'307'). 5 303307
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'exists' (lines '307'-'327'). 5 307327
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 311312
ShortVariable Avoid variables with short names like id 3 341
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 341
SimplifyConditional No need to check for null before an instanceof 3 345
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '347'-'351'). 5 347351
CloseResource Ensure that resources like this Connection object are closed after use 3 347
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 359
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '359'-'383'). 5 359383
MissingOverride The method 'getLazyLoading()' is missing an @Override annotation. 3 385388
MethodArgumentCouldBeFinal Parameter 'lazyLoading' is not assigned and could be declared final 3 390
MissingOverride The method 'setLazyLoading(Boolean)' is missing an @Override annotation. 3 390393

org/apache/fulcrum/security/torque/TorqueAbstractPermissionManager.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'org.apache.fulcrum.security.util.EntityExistsException' 4 30
AtLeastOneConstructor Each class should declare at least one constructor 3 44325
AbstractNaming Abstract classes should be named AbstractXXX 3 44325
UselessOverridingMethod Overriding method merely calls super 3 5558
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 55
ShortVariable Avoid variables with short names like id 3 98
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 111126
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 111
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 111
ShortVariable Avoid variables with short names like p 3 117
LocalVariableCouldBeFinal Local variable 'p' could be declared final 3 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 118
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 119
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 120
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 137
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 137149
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 160168
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 160
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 163
LocalVariableCouldBeFinal Local variable 'permissionSet' could be declared final 3 179
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'permissionSet' (lines '179'-'204'). 5 179204
CloseResource Ensure that resources like this Connection object are closed after use 3 180
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '180'-'183'). 5 180183
LocalVariableCouldBeFinal Local variable 'permissions' could be declared final 3 185
LocalVariableCouldBeFinal Local variable 'p' could be declared final 3 187
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '194'-'204'). 5 194204
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 194
AvoidDuplicateLiterals The String literal "Error retrieving permission information" appears 4 times in this file; the first occurrence is on line 196 3 196
MethodArgumentCouldBeFinal Parameter 'permissionName' is not assigned and could be declared final 3 215
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '216'-'228'). 5 216228
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '218'-'221'). 5 218221
CloseResource Ensure that resources like this Connection object are closed after use 3 218
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '226'-'242'). 5 226242
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 226
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '228'-'230'). 5 228230
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'exists' (lines '230'-'242'). 5 230242
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 232
ShortVariable Avoid variables with short names like id 3 254
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 254
SimplifyConditional No need to check for null before an instanceof 3 257
CloseResource Ensure that resources like this Connection object are closed after use 3 258
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '258'-'261'). 5 258261
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '269'-'284'). 5 269284
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 269
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 296
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'permission' (lines '298'-'304'). 5 298304
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '299'-'302'). 5 299302
CloseResource Ensure that resources like this Connection object are closed after use 3 299
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 310
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '310'-'324'). 5 310324
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 312
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 314

org/apache/fulcrum/security/torque/TorqueAbstractRoleManager.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'org.apache.fulcrum.security.util.EntityExistsException' 4 29
AbstractNaming Abstract classes should be named AbstractXXX 3 42409
AtLeastOneConstructor Each class should declare at least one constructor 3 42409
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 55
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 59
ShortVariable Avoid variables with short names like id 3 102
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 116
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 116137
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 116
LocalVariableCouldBeFinal Local variable 'r' could be declared final 3 124
ShortVariable Avoid variables with short names like r 3 124
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 125
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 126
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 128
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 148
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 148160
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 154
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 171
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 171188
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 3 199
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '201'-'214'). 5 201214
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '203'-'207'). 5 203207
CloseResource Ensure that resources like this Connection object are closed after use 3 203
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 212
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '212'-'237'). 5 212237
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '214'-'218'). 5 214218
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'exists' (lines '218'-'237'). 5 218237
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 222
AvoidDuplicateLiterals The String literal "Error retrieving role information" appears 4 times in this file; the first occurrence is on line 226 3 226
LocalVariableCouldBeFinal Local variable 'roleSet' could be declared final 3 249
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'roleSet' (lines '249'-'282'). 5 249282
CloseResource Ensure that resources like this Connection object are closed after use 3 250
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '250'-'254'). 5 250254
LocalVariableCouldBeFinal Local variable 'roles' could be declared final 3 256
LocalVariableCouldBeFinal Local variable 'role' could be declared final 3 258
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '267'-'282'). 5 267282
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 267
ShortVariable Avoid variables with short names like id 3 296
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 296
SimplifyConditional No need to check for null before an instanceof 3 300
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '302'-'306'). 5 302306
CloseResource Ensure that resources like this Connection object are closed after use 3 302
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 314
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '314'-'338'). 5 314338
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 350
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'role' (lines '352'-'359'). 5 352359
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '353'-'357'). 5 353357
CloseResource Ensure that resources like this Connection object are closed after use 3 353
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '365'-'388'). 5 365388
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 365
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 369
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 373
MethodArgumentCouldBeFinal Parameter 'lazyLoading' is not assigned and could be declared final 3 405

org/apache/fulcrum/security/torque/TorqueAbstractUserManager.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 43320
AtLeastOneConstructor Each class should declare at least one constructor 3 43320
UselessOverridingMethod Overriding method merely calls super 3 5254
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 52
ShortVariable Avoid variables with short names like id 3 96
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 108114
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 108
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 125134
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 125
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 127
ShortVariable Avoid variables with short names like u 3 127
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 128
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 129
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 145157
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 145
ShortVariable Avoid variables with short names like u 3 148
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 148
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 149
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 150
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 151
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 3 170
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '171'-'183'). 5 171183
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '173'-'176'). 5 173176
CloseResource Ensure that resources like this Connection object are closed after use 3 173
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '181'-'197'). 5 181197
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 181
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'exists' (lines '183'-'185'). 5 183185
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'exists' (lines '185'-'197'). 5 185197
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 187
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 3 212
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'user' (lines '213'-'219'). 5 213219
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '214'-'217'). 5 214217
CloseResource Ensure that resources like this Connection object are closed after use 3 214
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 219
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 225
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '225'-'239'). 5 225239
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 227
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 229
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'userSet' (lines '250'-'276'). 5 250276
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 250
LocalVariableCouldBeFinal Local variable 'userSet' could be declared final 3 250
CloseResource Ensure that resources like this Connection object are closed after use 3 251
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '251'-'254'). 5 251254
LocalVariableCouldBeFinal Local variable 'users' could be declared final 3 256
LocalVariableCouldBeFinal Local variable 'user' could be declared final 3 258
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '266'-'276'). 5 266276
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 266
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 288
ShortVariable Avoid variables with short names like id 3 288
SimplifyConditional No need to check for null before an instanceof 3 291
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '292'-'295'). 5 292295
CloseResource Ensure that resources like this Connection object are closed after use 3 292
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 303
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '303'-'318'). 5 303318

org/apache/fulcrum/security/torque/basic/TorqueAbstractBasicGroup.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 42215
AtLeastOneConstructor Each class should declare at least one constructor 3 42215
RedundantFieldInitializer Avoid using redundant field initializer for 'userSet' 3 49
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 49
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 63
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 63
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 73
MissingOverride The method 'addUser(User)' is missing an @Override annotation. 3 7376
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 75
MissingOverride The method 'getUsers()' is missing an @Override annotation. 3 8193
MissingOverride The method 'getUsersAsSet()' is missing an @Override annotation. 3 99102
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 107
MissingOverride The method 'removeUser(User)' is missing an @Override annotation. 3 107110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 109
MethodArgumentCouldBeFinal Parameter 'userSet' is not assigned and could be declared final 3 115
MissingOverride The method 'setUsers(UserSet)' is missing an @Override annotation. 3 115125
ConfusingTernary Avoid if (x != y) ..; else ..; 3 117124
MissingOverride The method 'setUsersAsSet(Set)' is missing an @Override annotation. 3 130133
MethodArgumentCouldBeFinal Parameter 'users' is not assigned and could be declared final 3 130
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 136
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 146
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 146
LocalVariableCouldBeFinal Local variable 'usergroups' could be declared final 3 152153
LocalVariableCouldBeFinal Local variable 'tbug' could be declared final 3 155
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 3 169196
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 169
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 173
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 179
LocalVariableCouldBeFinal Local variable 'ug' could be declared final 3 181
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 181
ShortVariable Avoid variables with short names like ug 3 181
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 192
MissingOverride The method 'delete()' is missing an @Override annotation. 3 211214

org/apache/fulcrum/security/torque/basic/TorqueAbstractBasicUser.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 42215
AtLeastOneConstructor Each class should declare at least one constructor 3 42215
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 48
RedundantFieldInitializer Avoid using redundant field initializer for 'groupSet' 3 48
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 62
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 62
MissingOverride The method 'addGroup(Group)' is missing an @Override annotation. 3 7275
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 72
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 74
MissingOverride The method 'getGroups()' is missing an @Override annotation. 3 8092
MissingOverride The method 'getGroupsAsSet()' is missing an @Override annotation. 3 98101
MissingOverride The method 'removeGroup(Group)' is missing an @Override annotation. 3 106109
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 108
MissingOverride The method 'setGroups(GroupSet)' is missing an @Override annotation. 3 114124
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 3 114
ConfusingTernary Avoid if (x != y) ..; else ..; 3 116123
MissingOverride The method 'setGroupsAsSet(Set)' is missing an @Override annotation. 3 129132
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 3 129
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 137
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 147
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 147
LocalVariableCouldBeFinal Local variable 'usergroups' could be declared final 3 153
LocalVariableCouldBeFinal Local variable 'tbug' could be declared final 3 155
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 3 169196
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 169
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 173
LocalVariableCouldBeFinal Local variable 'g' could be declared final 3 179
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 181
LocalVariableCouldBeFinal Local variable 'ug' could be declared final 3 181
ShortVariable Avoid variables with short names like ug 3 181
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 192
MissingOverride The method 'delete()' is missing an @Override annotation. 3 211214

org/apache/fulcrum/security/torque/basic/TorqueBasicGroupManagerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 3781
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 3781
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 43
MissingOverride The method 'doSelectAllGroups(Connection)' is missing an @Override annotation. 3 4349
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 46
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 3 5559
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 55
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 55
ShortVariable Avoid variables with short names like id 3 55
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 65
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 65
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 3 6580
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 68
LocalVariableCouldBeFinal Local variable 't' could be declared final 3 73
ShortVariable Avoid variables with short names like t 3 73

org/apache/fulcrum/security/torque/basic/TorqueBasicModelManagerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 41216
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 41216
CyclomaticComplexity The method 'grant(User, Group)' has a cyclomatic complexity of 10. 3 5399
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 53
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5399
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 53
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 3 55
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 55
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 3 56
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 56
CloseResource Ensure that resources like this Connection object are closed after use 3 63
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '63'-'67'). 5 6367
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '73'-'99'). 5 7399
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 73
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 111
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 111157
CyclomaticComplexity The method 'revoke(User, Group)' has a cyclomatic complexity of 10. 3 111157
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 111
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 3 113
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 113
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 3 114
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 114
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '121'-'125'). 5 121125
CloseResource Ensure that resources like this Connection object are closed after use 3 121
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 131
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '131'-'157'). 5 131157
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 169215
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 169
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 3 172
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 172
ShortVariable Avoid variables with short names like u 3 176
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 176
LocalVariableCouldBeFinal Local variable 'groups' could be declared final 3 179
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 179
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 179
LocalVariableCouldBeFinal Local variable 'group' could be declared final 3 181
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 183
CloseResource Ensure that resources like this Connection object are closed after use 3 186
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '186'-'190'). 5 186190
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '195'-'215'). 5 195215
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 195

org/apache/fulcrum/security/torque/basic/TorqueBasicUserManagerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 3783
MissingOverride The method 'doSelectAllUsers(Connection)' is missing an @Override annotation. 3 4853
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 48
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 50
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 59
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 3 5962
ShortVariable Avoid variables with short names like id 3 59
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 59
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 68
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 3 6882
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 70
LocalVariableCouldBeFinal Local variable 't' could be declared final 3 75
ShortVariable Avoid variables with short names like t 3 75

org/apache/fulcrum/security/torque/dynamic/TorqueAbstractDynamicGroup.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 45331
AbstractNaming Abstract classes should be named AbstractXXX 3 45331
RedundantFieldInitializer Avoid using redundant field initializer for 'userSet' 3 52
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 52
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 55
RedundantFieldInitializer Avoid using redundant field initializer for 'roleSet' 3 55
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 69
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 69
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 88
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 88
MissingOverride The method 'addUser(User)' is missing an @Override annotation. 3 98101
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 98
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 100
MissingOverride The method 'getUsers()' is missing an @Override annotation. 3 106118
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 110
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 114
MissingOverride The method 'getUsersAsSet()' is missing an @Override annotation. 3 124127
MissingOverride The method 'removeUser(User)' is missing an @Override annotation. 3 132135
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 132
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 134
MethodArgumentCouldBeFinal Parameter 'userSet' is not assigned and could be declared final 3 140
MissingOverride The method 'setUsers(UserSet)' is missing an @Override annotation. 3 140150
ConfusingTernary Avoid if (x != y) ..; else ..; 3 142149
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 148
MethodArgumentCouldBeFinal Parameter 'users' is not assigned and could be declared final 3 155
MissingOverride The method 'setUsersAsSet(Set)' is missing an @Override annotation. 3 155158
MissingOverride The method 'addRole(Role)' is missing an @Override annotation. 3 163166
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 163
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 165
MissingOverride The method 'getRoles()' is missing an @Override annotation. 3 171183
MissingOverride The method 'getRolesAsSet()' is missing an @Override annotation. 3 189192
MissingOverride The method 'removeRole(Role)' is missing an @Override annotation. 3 197200
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 197
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 199
MethodArgumentCouldBeFinal Parameter 'roleSet' is not assigned and could be declared final 3 205
MissingOverride The method 'setRoles(RoleSet)' is missing an @Override annotation. 3 205215
ConfusingTernary Avoid if (x != y) ..; else ..; 3 207214
MethodArgumentCouldBeFinal Parameter 'roles' is not assigned and could be declared final 3 220
MissingOverride The method 'setRolesAsSet(Set)' is missing an @Override annotation. 3 220223
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 237
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 247
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 247
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 250
LocalVariableCouldBeFinal Local variable 'usergroups' could be declared final 3 254
LocalVariableCouldBeFinal Local variable 'tdug' could be declared final 3 256
LocalVariableCouldBeFinal Local variable 'grouproles' could be declared final 3 263
LocalVariableCouldBeFinal Local variable 'tdgr' could be declared final 3 265
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 3 278322
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 278
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 282
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 288
ShortVariable Avoid variables with short names like ug 3 290
LocalVariableCouldBeFinal Local variable 'ug' could be declared final 3 290
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 290
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 299
LocalVariableCouldBeFinal Local variable 'r' could be declared final 3 305
ShortVariable Avoid variables with short names like gr 3 307
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 307
LocalVariableCouldBeFinal Local variable 'gr' could be declared final 3 307
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 318
MissingOverride The method 'delete()' is missing an @Override annotation. 3 327330

org/apache/fulcrum/security/torque/dynamic/TorqueAbstractDynamicPermission.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 41208
AbstractNaming Abstract classes should be named AbstractXXX 3 41208
RedundantFieldInitializer Avoid using redundant field initializer for 'roleSet' 3 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 47
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 61
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 61
MissingOverride The method 'addRole(Role)' is missing an @Override annotation. 3 7174
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 73
MissingOverride The method 'getRoles()' is missing an @Override annotation. 3 7991
MissingOverride The method 'getRolesAsSet()' is missing an @Override annotation. 3 97100
MissingOverride The method 'removeRole(Role)' is missing an @Override annotation. 3 105108
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 105
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 107
MethodArgumentCouldBeFinal Parameter 'roleSet' is not assigned and could be declared final 3 113
MissingOverride The method 'setRoles(RoleSet)' is missing an @Override annotation. 3 113123
ConfusingTernary Avoid if (x != y) ..; else ..; 3 115122
MissingOverride The method 'setRolesAsSet(Set)' is missing an @Override annotation. 3 128131
MethodArgumentCouldBeFinal Parameter 'roles' is not assigned and could be declared final 3 128
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 142
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 152
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 152
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 3 158
LocalVariableCouldBeFinal Local variable 'tdrp' could be declared final 3 160
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 172
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 3 172199
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 176
LocalVariableCouldBeFinal Local variable 'r' could be declared final 3 182
ShortVariable Avoid variables with short names like rp 3 184
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 184
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 3 184
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 195
MissingOverride The method 'delete()' is missing an @Override annotation. 3 204207

org/apache/fulcrum/security/torque/dynamic/TorqueAbstractDynamicRole.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 46327
AbstractNaming Abstract classes should be named AbstractXXX 3 46327
RedundantFieldInitializer Avoid using redundant field initializer for 'groupSet' 3 53
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 53
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 56
RedundantFieldInitializer Avoid using redundant field initializer for 'permissionSet' 3 56
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 70
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 70
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 89
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 89
MissingOverride The method 'addGroup(Group)' is missing an @Override annotation. 3 99102
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 99
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 101
MissingOverride The method 'addPermission(Permission)' is missing an @Override annotation. 3 107110
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 107
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 109
MissingOverride The method 'getGroups()' is missing an @Override annotation. 3 115127
MissingOverride The method 'getGroupsAsSet()' is missing an @Override annotation. 3 133136
MissingOverride The method 'getPermissions()' is missing an @Override annotation. 3 141153
MissingOverride The method 'getPermissionsAsSet()' is missing an @Override annotation. 3 159162
MissingOverride The method 'removeGroup(Group)' is missing an @Override annotation. 3 167170
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 167
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 169
MissingOverride The method 'removePermission(Permission)' is missing an @Override annotation. 3 175178
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 175
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 177
MissingOverride The method 'setGroups(GroupSet)' is missing an @Override annotation. 3 183193
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 3 183
ConfusingTernary Avoid if (x != y) ..; else ..; 3 185192
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 3 198
MissingOverride The method 'setGroupsAsSet(Set)' is missing an @Override annotation. 3 198201
MethodArgumentCouldBeFinal Parameter 'permissionSet' is not assigned and could be declared final 3 206
MissingOverride The method 'setPermissions(PermissionSet)' is missing an @Override annotation. 3 206216
ConfusingTernary Avoid if (x != y) ..; else ..; 3 208215
MethodArgumentCouldBeFinal Parameter 'permissions' is not assigned and could be declared final 3 221
MissingOverride The method 'setPermissionsAsSet(Set)' is missing an @Override annotation. 3 221224
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 235
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 245
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 245
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 3 251
LocalVariableCouldBeFinal Local variable 'tdrp' could be declared final 3 253
LocalVariableCouldBeFinal Local variable 'grouproles' could be declared final 3 260
LocalVariableCouldBeFinal Local variable 'tdgr' could be declared final 3 262
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 274
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 3 274318
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 278
LocalVariableCouldBeFinal Local variable 'p' could be declared final 3 284
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 286
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 3 286
ShortVariable Avoid variables with short names like rp 3 286
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 295
LocalVariableCouldBeFinal Local variable 'g' could be declared final 3 301
LocalVariableCouldBeFinal Local variable 'gr' could be declared final 3 303
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 303
ShortVariable Avoid variables with short names like gr 3 303
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 314
MissingOverride The method 'delete()' is missing an @Override annotation. 3 323326

org/apache/fulcrum/security/torque/dynamic/TorqueAbstractDynamicUser.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 47369
AtLeastOneConstructor Each class should declare at least one constructor 3 47369
RedundantFieldInitializer Avoid using redundant field initializer for 'groupSet' 3 52
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 52
RedundantFieldInitializer Avoid using redundant field initializer for 'delegators' 3 55
RedundantFieldInitializer Avoid using redundant field initializer for 'delegatees' 3 58
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 72
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 73
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 91
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 91
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 109
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 109
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 121
MissingOverride The method 'addGroup(Group)' is missing an @Override annotation. 3 121123
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 122
MissingOverride The method 'getGroups()' is missing an @Override annotation. 3 130138
MissingOverride The method 'getGroupsAsSet()' is missing an @Override annotation. 3 147149
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 158
MissingOverride The method 'removeGroup(Group)' is missing an @Override annotation. 3 158160
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 159
MissingOverride The method 'setGroups(GroupSet)' is missing an @Override annotation. 3 169175
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 3 169
ConfusingTernary Avoid if (x != y) ..; else ..; 3 170174
MethodArgumentCouldBeFinal Parameter 'groups' is not assigned and could be declared final 3 184
MissingOverride The method 'setGroupsAsSet(Set)' is missing an @Override annotation. 3 184186
MissingOverride The method 'getDelegatees()' is missing an @Override annotation. 3 195201
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 197
MissingOverride The method 'getDelegators()' is missing an @Override annotation. 3 210216
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 212
MissingOverride The method 'setDelegatees(Set)' is missing an @Override annotation. 3 225231
MethodArgumentCouldBeFinal Parameter 'delegatees' is not assigned and could be declared final 3 225
ConfusingTernary Avoid if (x != y) ..; else ..; 3 226230
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 227
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 229
MethodArgumentCouldBeFinal Parameter 'delegates' is not assigned and could be declared final 3 240
MissingOverride The method 'setDelegators(Set)' is missing an @Override annotation. 3 240246
ConfusingTernary Avoid if (x != y) ..; else ..; 3 241245
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 242
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 244
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 263
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 272
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 272
LocalVariableCouldBeFinal Local variable 'usergroups' could be declared final 3 278
LocalVariableCouldBeFinal Local variable 'tdug' could be declared final 3 280
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 284
LocalVariableCouldBeFinal Local variable 'delegatorlist' could be declared final 3 286287
LocalVariableCouldBeFinal Local variable 'tdud' could be declared final 3 289
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 293
LocalVariableCouldBeFinal Local variable 'delegateelist' could be declared final 3 295296
LocalVariableCouldBeFinal Local variable 'tdud' could be declared final 3 298
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 310
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 3 310361
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 312
LocalVariableCouldBeFinal Local variable 'g' could be declared final 3 318
ShortVariable Avoid variables with short names like ug 3 319
LocalVariableCouldBeFinal Local variable 'ug' could be declared final 3 319
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 319
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 327
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 333
ShortVariable Avoid variables with short names like ud 3 334
LocalVariableCouldBeFinal Local variable 'ud' could be declared final 3 334
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 334
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 342
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 348
ShortVariable Avoid variables with short names like ud 3 349
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 349
LocalVariableCouldBeFinal Local variable 'ud' could be declared final 3 349
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 358
MissingOverride The method 'delete()' is missing an @Override annotation. 3 366368

org/apache/fulcrum/security/torque/dynamic/TorqueDynamicGroupManagerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 3779
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 3779
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 43
MissingOverride The method 'doSelectAllGroups(Connection)' is missing an @Override annotation. 3 4348
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 45
ShortVariable Avoid variables with short names like id 3 54
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 54
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 54
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 3 5457
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 63
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 3 6378
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 63
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 65
LocalVariableCouldBeFinal Local variable 'groups' could be declared final 3 70
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 72
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 77

org/apache/fulcrum/security/torque/dynamic/TorqueDynamicModelManagerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 45447
CyclomaticComplexity The class 'TorqueDynamicModelManagerImpl' has a total cyclomatic complexity of 80 (highest 10). 3 45447
GodClass Possible God Class (WMC=80, ATFD=64, TCC=0.000%) 3 45447
CyclomaticComplexity The method 'revoke(Group, Role)' has a cyclomatic complexity of 10. 3 6298
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 6298
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 62
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 62
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 3 63
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 63
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 3 64
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 64
CloseResource Ensure that resources like this Connection object are closed after use 3 70
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '70'-'73'). 5 7073
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '79'-'98'). 5 7998
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 79
AvoidDuplicateLiterals The String literal "') failed" appears 8 times in this file; the first occurrence is on line 81 3 81
AvoidDuplicateLiterals The String literal "', '" appears 8 times in this file; the first occurrence is on line 81 3 81
AvoidDuplicateLiterals The String literal "Unknown group '" appears 4 times in this file; the first occurrence is on line 92 3 92
AvoidDuplicateLiterals The String literal "Unknown role '" appears 4 times in this file; the first occurrence is on line 96 3 96
CyclomaticComplexity The method 'grant(Role, Permission)' has a cyclomatic complexity of 10. 3 110148
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 110148
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 110
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 112
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 3 112
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 113
LocalVariableCouldBeFinal Local variable 'permissionExists' could be declared final 3 113
CloseResource Ensure that resources like this Connection object are closed after use 3 119
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '119'-'122'). 5 119122
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '128'-'148'). 5 128148
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 128
CyclomaticComplexity The method 'revoke(Role, Permission)' has a cyclomatic complexity of 10. 3 160199
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 160
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 160
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 160199
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 162
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 3 162
LocalVariableCouldBeFinal Local variable 'permissionExists' could be declared final 3 163
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 163
CloseResource Ensure that resources like this Connection object are closed after use 3 169
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '169'-'172'). 5 169172
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 173
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '179'-'199'). 5 179199
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 179
CyclomaticComplexity The method 'grant(User, Group)' has a cyclomatic complexity of 10. 3 213249
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 213
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 213
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 213249
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 3 214
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 214
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 3 215
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 215
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '221'-'224'). 5 221224
CloseResource Ensure that resources like this Connection object are closed after use 3 221
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 230
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '230'-'249'). 5 230249
AvoidDuplicateLiterals The String literal "Unknown user '" appears 6 times in this file; the first occurrence is on line 247 3 247
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 263
CyclomaticComplexity The method 'revoke(User, Group)' has a cyclomatic complexity of 10. 3 263299
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 263299
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 263
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 264
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 3 264
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 3 265
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 265
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '271'-'274'). 5 271274
CloseResource Ensure that resources like this Connection object are closed after use 3 271
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '280'-'299'). 5 280299
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 280
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 311
CyclomaticComplexity The method 'grant(Group, Role)' has a cyclomatic complexity of 10. 3 311347
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 311
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 311347
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 312
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 3 312
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 3 313
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 313
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '319'-'322'). 5 319322
CloseResource Ensure that resources like this Connection object are closed after use 3 319
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '328'-'347'). 5 328347
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 328
CyclomaticComplexity The method 'addDelegate(User, User)' has a cyclomatic complexity of 10. 3 359396
MethodArgumentCouldBeFinal Parameter 'delegatee' is not assigned and could be declared final 3 359
MethodArgumentCouldBeFinal Parameter 'delegator' is not assigned and could be declared final 3 359
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 359396
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 361
LocalVariableCouldBeFinal Local variable 'delegatorExists' could be declared final 3 361
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 362
LocalVariableCouldBeFinal Local variable 'delegateeExists' could be declared final 3 362
CloseResource Ensure that resources like this Connection object are closed after use 3 367
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '367'-'370'). 5 367370
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '376'-'396'). 5 376396
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 376
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 409446
MethodArgumentCouldBeFinal Parameter 'delegatee' is not assigned and could be declared final 3 409
MethodArgumentCouldBeFinal Parameter 'delegator' is not assigned and could be declared final 3 409
CyclomaticComplexity The method 'removeDelegate(User, User)' has a cyclomatic complexity of 10. 3 409446
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 411
LocalVariableCouldBeFinal Local variable 'delegatorExists' could be declared final 3 411
LocalVariableCouldBeFinal Local variable 'delegateeExists' could be declared final 3 412
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 412
CloseResource Ensure that resources like this Connection object are closed after use 3 417
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '417'-'420'). 5 417420
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 426
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '426'-'446'). 5 426446

org/apache/fulcrum/security/torque/dynamic/TorqueDynamicPermissionManagerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 3784
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 48
MissingOverride The method 'doSelectAllPermissions(Connection)' is missing an @Override annotation. 3 4853
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 50
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 59
ShortVariable Avoid variables with short names like id 3 59
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 3 5962
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 59
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 68
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 3 6883
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 68
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 70
LocalVariableCouldBeFinal Local variable 'permissions' could be declared final 3 75
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 77
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 82

org/apache/fulcrum/security/torque/dynamic/TorqueDynamicRoleManagerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 3784
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 48
MissingOverride The method 'doSelectAllRoles(Connection)' is missing an @Override annotation. 3 4853
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 50
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 59
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 59
ShortVariable Avoid variables with short names like id 3 59
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 3 5962
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 68
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 3 6883
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 70
LocalVariableCouldBeFinal Local variable 'roles' could be declared final 3 75
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 77
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 82

org/apache/fulcrum/security/torque/dynamic/TorqueDynamicUserManagerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 3784
MissingOverride The method 'doSelectAllUsers(Connection)' is missing an @Override annotation. 3 4853
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 48
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 50
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 59
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 59
MissingOverride The method 'doSelectById(Integer, Connection)' is missing an @Override annotation. 3 5962
ShortVariable Avoid variables with short names like id 3 59
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 68
MissingOverride The method 'doSelectByName(String, Connection)' is missing an @Override annotation. 3 6883
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 70
LocalVariableCouldBeFinal Local variable 'users' could be declared final 3 75
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 77
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 82

org/apache/fulcrum/security/torque/om/TorqueBasicGroup.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueBasicGroupPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueBasicGroupPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueBasicUser.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUser' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueBasicUserGroup.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueBasicUserGroupPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueBasicUserGroupPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueBasicUserPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueBasicUserPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueBasicUserPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicGroup.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupRole.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroupRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupRolePeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroupRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicGroupRolePeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroupRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicPermission.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicPermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueDynamicPermissionPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicPermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicPermissionPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicPermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicRole.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePermission.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRolePermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePermissionPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRolePermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicRolePermissionPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicRolePermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUser.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUser' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueDynamicUserDelegates.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserDelegates' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueDynamicUserDelegatesPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserDelegatesPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUserDelegatesPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserDelegatesPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUserGroup.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueDynamicUserGroupPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUserGroupPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUserPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueDynamicUserPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueDynamicUserPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueTurbineGroup.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueTurbineGroupPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueTurbineGroupPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueTurbinePermission.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbinePermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueTurbinePermissionPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbinePermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueTurbinePermissionPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbinePermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueTurbineRole.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePermission.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 2049
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRolePermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 21
MethodArgumentCouldBeFinal Parameter 'connection' is not assigned and could be declared final 3 33
MethodArgumentCouldBeFinal Parameter 'connection' is not assigned and could be declared final 3 43

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePermissionPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRolePermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueTurbineRolePermissionPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineRolePermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueTurbineUser.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUser' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TorqueTurbineUserGroupRole.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 2059
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUserGroupRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 21
MethodArgumentCouldBeFinal Parameter 'connection' is not assigned and could be declared final 3 33
MethodArgumentCouldBeFinal Parameter 'connection' is not assigned and could be declared final 3 43
MethodArgumentCouldBeFinal Parameter 'connection' is not assigned and could be declared final 3 53

org/apache/fulcrum/security/torque/om/TorqueTurbineUserGroupRolePeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUserGroupRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueTurbineUserGroupRolePeerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1932
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUserGroupRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 20
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 27
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 27

org/apache/fulcrum/security/torque/om/TorqueTurbineUserPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUserPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TorqueTurbineUserPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTorqueTurbineUserPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbineGroup.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineGroup' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TurbineGroupPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineGroupPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbineGroupPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineGroupPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbinePermission.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbinePermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TurbinePermissionPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbinePermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbinePermissionPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbinePermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbineRole.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TurbineRolePeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbineRolePeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbineRolePermission.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRolePermission' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TurbineRolePermissionPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRolePermissionPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbineRolePermissionPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineRolePermissionPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbineUser.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUser' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TurbineUserGroupRole.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUserGroupRole' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 15

org/apache/fulcrum/security/torque/om/TurbineUserGroupRolePeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUserGroupRolePeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbineUserGroupRolePeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUserGroupRolePeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbineUserPeer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1317
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUserPeer' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/om/TurbineUserPeerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.fulcrum.security.torque.om.BaseTurbineUserPeerImpl' due to existing same package import 'org.apache.fulcrum.security.torque.om.*' 4 14

org/apache/fulcrum/security/torque/peer/Peer.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Peer 4 2831

org/apache/fulcrum/security/torque/peer/PeerManagable.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getPeerManager': the method is declared in an interface type 3 25
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPeerInstance': the method is declared in an interface type 3 27
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCustomPeer': the method is declared in an interface type 3 29
UnnecessaryModifier Unnecessary modifier 'public' on method 'setCustomPeer': the method is declared in an interface type 3 30
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPeerClassName': the method is declared in an interface type 3 32
UnnecessaryModifier Unnecessary modifier 'public' on method 'setPeerClassName': the method is declared in an interface type 3 34

org/apache/fulcrum/security/torque/peer/PeerManager.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'org.apache.fulcrum.security.spi.AbstractEntityManager' 4 22
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getPeerInstance': the method is declared in an interface type 3 5253
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getPeerInstance': the method is declared in an interface type 3 64

org/apache/fulcrum/security/torque/peer/PeerManagerDefaultImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 3984
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 45
ImmutableField Private field 'peers' could be made final; it is only initialized in the declaration or constructor. 3 45
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 45
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 3 51
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 3 61
MethodArgumentCouldBeFinal Parameter 'peerInterface' is not assigned and could be declared final 3 61
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 3 61
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 64
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 65
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 69
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 69
LocalVariableCouldBeFinal Local variable 'peer' could be declared final 3 69
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 70
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 7780

org/apache/fulcrum/security/torque/peer/TorqueTurbinePeer.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like pk 3 47

org/apache/fulcrum/security/torque/peer/TurbineRolePermissionPeerMapper.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getTurbinePermission': the method is declared in an interface type 3 8384

org/apache/fulcrum/security/torque/peer/managers/PeerGroupManager.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 35110
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 35110
DataClass The class 'PeerGroupManager' is suspected to be a Data Class (WOC=22.222%, NOPA=0, NOAM=7, WMC=11) 3 35110
AtLeastOneConstructor Each class should declare at least one constructor 3 35110
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the peerManager field if you want a default access modifier 3 40
DefaultPackage Use explicit scoping instead of the default package private level 3 40
LongVariable Avoid excessively long variable names like PEER_CLASS_NAME_KEY 3 41
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 49
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 53
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 62
MethodArgumentCouldBeFinal Parameter 'columnName' is not assigned and could be declared final 3 82
MethodArgumentCouldBeFinal Parameter 'customPeer' is not assigned and could be declared final 3 93
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 3 105

org/apache/fulcrum/security/torque/peer/managers/PeerPermissionManager.java

Rule Violation Priority Line
DataClass The class 'PeerPermissionManager' is suspected to be a Data Class (WOC=22.222%, NOPA=0, NOAM=7, WMC=11) 3 34110
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 34110
AtLeastOneConstructor Each class should declare at least one constructor 3 34110
AbstractNaming Abstract classes should be named AbstractXXX 3 34110
LongVariable Avoid excessively long variable names like PEER_CLASS_NAME_KEY 3 39
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the peerManager field if you want a default access modifier 3 40
DefaultPackage Use explicit scoping instead of the default package private level 3 40
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 48
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 53
MethodArgumentCouldBeFinal Parameter 'customPeer' is not assigned and could be declared final 3 67
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 3 79
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 86
MethodArgumentCouldBeFinal Parameter 'columnName' is not assigned and could be declared final 3 106

org/apache/fulcrum/security/torque/peer/managers/PeerRoleManager.java

Rule Violation Priority Line
DataClass The class 'PeerRoleManager' is suspected to be a Data Class (WOC=22.222%, NOPA=0, NOAM=7, WMC=11) 3 34112
AbstractNaming Abstract classes should be named AbstractXXX 3 34112
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 34112
AtLeastOneConstructor Each class should declare at least one constructor 3 34112
LongVariable Avoid excessively long variable names like PEER_CLASS_NAME_KEY 3 39
DefaultPackage Use explicit scoping instead of the default package private level 3 40
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the peerManager field if you want a default access modifier 3 40
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 48
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 53
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 63
MethodArgumentCouldBeFinal Parameter 'columnName' is not assigned and could be declared final 3 83
MethodArgumentCouldBeFinal Parameter 'customPeer' is not assigned and could be declared final 3 95
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 3 107

org/apache/fulcrum/security/torque/peer/managers/PeerUserManager.java

Rule Violation Priority Line
DataClass The class 'PeerUserManager' is suspected to be a Data Class (WOC=21.429%, NOPA=0, NOAM=11, WMC=22) 3 35175
AtLeastOneConstructor Each class should declare at least one constructor 3 35175
AbstractNaming Abstract classes should be named AbstractXXX 3 35175
LongVariable Avoid excessively long variable names like PEER_CLASS_NAME_KEY 3 48
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the peerManager field if you want a default access modifier 3 49
DefaultPackage Use explicit scoping instead of the default package private level 3 49
LongVariable Avoid excessively long variable names like columnName4UserGroupRole 3 53
LongVariable Avoid excessively long variable names like userGroupRolePeerClassName 3 55
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 61
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 66
LocalVariableCouldBeFinal Local variable 'userGroupRoleConf' could be declared final 3 72
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 72
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 7383
LocalVariableCouldBeFinal Local variable 'configuration' could be declared final 3 75
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 76
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 76
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 77
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 94
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 98
MethodArgumentCouldBeFinal Parameter 'columnName' is not assigned and could be declared final 3 118
MethodArgumentCouldBeFinal Parameter 'customPeer' is not assigned and could be declared final 3 133
MethodArgumentCouldBeFinal Parameter 'peerClassName' is not assigned and could be declared final 3 145
LongVariable Avoid excessively long variable names like userGroupRolePeerClassName 3 157
MethodArgumentCouldBeFinal Parameter 'userGroupRolePeerClassName' is not assigned and could be declared final 3 157
MethodArgumentCouldBeFinal Parameter 'columnName4UserGroupRole' is not assigned and could be declared final 3 169
LongVariable Avoid excessively long variable names like columnName4UserGroupRole 3 169

org/apache/fulcrum/security/torque/security/TorqueAbstractSecurityEntity.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 33148
AtLeastOneConstructor Each class should declare at least one constructor 3 33148
ShortVariable Avoid variables with short names like id 3 52
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 115
ShortVariable Avoid variables with short names like id 3 115
EmptyCatchBlock Avoid empty catch blocks 3 121124
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 140
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 144

org/apache/fulcrum/security/torque/security/turbine/TorqueAbstractTurbineTurbineSecurityEntity.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 35131
AtLeastOneConstructor Each class should declare at least one constructor 3 35131
RedundantFieldInitializer Avoid using redundant field initializer for 'userGroupRoleSet' 3 42
MissingOverride The method 'addUserGroupRole(TurbineUserGroupRole)' is missing an @Override annotation. 3 4750
MethodArgumentCouldBeFinal Parameter 'userGroupRole' is not assigned and could be declared final 3 47
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 49
FormalParameterNamingConventions The method parameter name 'user_group_role' doesn't match '[a-z][a-zA-Z0-9]*' 1 57
MethodArgumentCouldBeFinal Parameter 'isLazilyLoaded' is not assigned and could be declared final 3 57
MethodArgumentCouldBeFinal Parameter 'user_group_role' is not assigned and could be declared final 3 57
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'user_group_role' is not final. 1 57
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 60
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 64
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 77
MissingOverride The method 'getUserGroupRoleSet()' is missing an @Override annotation. 3 8790
MissingOverride The method 'removeUserGroupRole(TurbineUserGroupRole)' is missing an @Override annotation. 3 9598
MethodArgumentCouldBeFinal Parameter 'userGroupRole' is not assigned and could be declared final 3 95
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 97
MethodArgumentCouldBeFinal Parameter 'isLazilyLoaded' is not assigned and could be declared final 3 105
MethodArgumentCouldBeFinal Parameter 'user_group_role' is not assigned and could be declared final 3 105
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'user_group_role' is not final. 1 105
FormalParameterNamingConventions The method parameter name 'user_group_role' doesn't match '[a-z][a-zA-Z0-9]*' 1 105
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 108
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 112
MissingOverride The method 'setUserGroupRoleSet(Set)' is missing an @Override annotation. 3 119129
MethodArgumentCouldBeFinal Parameter 'userGroupRoleSet' is not assigned and could be declared final 3 119
ConfusingTernary Avoid if (x != y) ..; else ..; 3 121128
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 127

org/apache/fulcrum/security/torque/security/turbine/TorqueAbstractTurbineTurbineSecurityEntityDefault.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 3756
AtLeastOneConstructor Each class should declare at least one constructor 3 3756

org/apache/fulcrum/security/torque/turbine/DefaultAbstractTurbineGroup.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 42178
AtLeastOneConstructor Each class should declare at least one constructor 3 42178
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 60
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 60
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 78
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 78
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 82
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 3 82
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 3 84
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 3 86
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 88
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 3 88
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '109'-'112'). 5 109112
CloseResource Ensure that resources like this Connection object are closed after use 3 109
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 117
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '117'-'134'). 5 117134
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 140
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 3 144
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 145
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 147
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 3 153
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 3 155
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 155
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 156
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 157
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 158
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 164

org/apache/fulcrum/security/torque/turbine/DefaultAbstractTurbinePermission.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 42212
AtLeastOneConstructor Each class should declare at least one constructor 3 42212
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 49
RedundantFieldInitializer Avoid using redundant field initializer for 'roleSet' 3 49
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 63
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 63
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 74
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 76
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 111
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 113
MethodArgumentCouldBeFinal Parameter 'roleSet' is not assigned and could be declared final 3 120
ConfusingTernary Avoid if (x != y) ..; else ..; 3 122129
MethodArgumentCouldBeFinal Parameter 'roles' is not assigned and could be declared final 3 136
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 142
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 152
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 152
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 3 159
LocalVariableCouldBeFinal Local variable 'ttrp' could be declared final 3 161
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 175
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 179
LocalVariableCouldBeFinal Local variable 'r' could be declared final 3 185
ShortVariable Avoid variables with short names like rp 3 187
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 187
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 3 187
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 198

org/apache/fulcrum/security/torque/turbine/DefaultAbstractTurbineRole.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 47305
AtLeastOneConstructor Each class should declare at least one constructor 3 47305
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 54
RedundantFieldInitializer Avoid using redundant field initializer for 'permissionSet' 3 54
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 87
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 87
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 98
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 100
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 135
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 137
MethodArgumentCouldBeFinal Parameter 'permissionSet' is not assigned and could be declared final 3 144
ConfusingTernary Avoid if (x != y) ..; else ..; 3 146153
MethodArgumentCouldBeFinal Parameter 'permissions' is not assigned and could be declared final 3 160
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 166
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 177
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 177
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 3 183
LocalVariableCouldBeFinal Local variable 'ttrp' could be declared final 3 185
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 3 191
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 191
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 3 193
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 3 195
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 197
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 3 197
CloseResource Ensure that resources like this Connection object are closed after use 3 219
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '219'-'222'). 5 219222
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '227'-'243'). 5 227243
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 227
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 250
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 254
LocalVariableCouldBeFinal Local variable 'p' could be declared final 3 260
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 262
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 3 262
ShortVariable Avoid variables with short names like rp 3 262

org/apache/fulcrum/security/torque/turbine/DefaultAbstractTurbineUser.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 45199
AbstractNaming Abstract classes should be named AbstractXXX 3 45199
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 83
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 83
AvoidReassigningParameters Avoid reassigning parameters such as 'ugrs' 2 83
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 3 86
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 86
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 103
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 103
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 3 106
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 106
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 3 108
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 122
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 132
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 3 136
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 139
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 3 145
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 147
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 3 147
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 148
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 149
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 150
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 156
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 177
MethodArgumentCouldBeFinal Parameter 'userGroupRoleSet' is not assigned and could be declared final 3 178
MethodArgumentCouldBeFinal Parameter 'ugrs' is not assigned and could be declared final 3 179
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 3 183
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 185
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 3 185

org/apache/fulcrum/security/torque/turbine/FulcrumAbstractTurbineGroup.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 42173
AtLeastOneConstructor Each class should declare at least one constructor 3 42173
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 60
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 60
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 78
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 78
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 3 82
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 82
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 3 83
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 3 85
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 87
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 3 87
CloseResource Ensure that resources like this Connection object are closed after use 3 105
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '105'-'108'). 5 105108
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '113'-'129'). 5 113129
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 113
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 135
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 3 139
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 142
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 3 148
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 150
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 3 150
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 151
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 152
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 153
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 159

org/apache/fulcrum/security/torque/turbine/FulcrumAbstractTurbinePermission.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 41212
AbstractNaming Abstract classes should be named AbstractXXX 3 41212
RedundantFieldInitializer Avoid using redundant field initializer for 'roleSet' 3 48
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 48
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 62
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 62
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 72
MissingOverride The method 'addRole(Role)' is missing an @Override annotation. 3 7275
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 74
MissingOverride The method 'getRoles()' is missing an @Override annotation. 3 8092
MissingOverride The method 'getRolesAsSet()' is missing an @Override annotation. 3 98101
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 106
MissingOverride The method 'removeRole(Role)' is missing an @Override annotation. 3 106109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 108
MethodArgumentCouldBeFinal Parameter 'roleSet' is not assigned and could be declared final 3 114
MissingOverride The method 'setRoles(RoleSet)' is missing an @Override annotation. 3 114124
ConfusingTernary Avoid if (x != y) ..; else ..; 3 116123
MissingOverride The method 'setRolesAsSet(Set)' is missing an @Override annotation. 3 129132
MethodArgumentCouldBeFinal Parameter 'roles' is not assigned and could be declared final 3 129
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 146
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 156
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 156
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 3 162
LocalVariableCouldBeFinal Local variable 'ttrp' could be declared final 3 164
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 176
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 3 176203
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 180
LocalVariableCouldBeFinal Local variable 'r' could be declared final 3 186
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 188
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 3 188
ShortVariable Avoid variables with short names like rp 3 188
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 199
MissingOverride The method 'delete()' is missing an @Override annotation. 3 208211

org/apache/fulcrum/security/torque/turbine/FulcrumAbstractTurbineRole.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 48314
AbstractNaming Abstract classes should be named AbstractXXX 3 48314
RedundantFieldInitializer Avoid using redundant field initializer for 'permissionSet' 3 54
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 54
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 69
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 69
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 86
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 87
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 99
MissingOverride The method 'addPermission(Permission)' is missing an @Override annotation. 3 99101
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 100
MissingOverride The method 'getPermissions()' is missing an @Override annotation. 3 109117
MissingOverride The method 'getPermissionsAsSet()' is missing an @Override annotation. 3 126128
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 137
MissingOverride The method 'removePermission(Permission)' is missing an @Override annotation. 3 137139
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 138
MethodArgumentCouldBeFinal Parameter 'permissionSet' is not assigned and could be declared final 3 148
MissingOverride The method 'setPermissions(PermissionSet)' is missing an @Override annotation. 3 148154
ConfusingTernary Avoid if (x != y) ..; else ..; 3 149153
MethodArgumentCouldBeFinal Parameter 'permissions' is not assigned and could be declared final 3 162
MissingOverride The method 'setPermissionsAsSet(Set)' is missing an @Override annotation. 3 162164
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 181
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 192
MissingOverride The method 'retrieveAttachedObjects(Connection, Boolean)' is missing an @Override annotation. 3 192222
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 192
LocalVariableCouldBeFinal Local variable 'rolepermissions' could be declared final 3 196197
LocalVariableCouldBeFinal Local variable 'ttrp' could be declared final 3 199
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 3 204
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 204
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 3 206207
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 3 209
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 210
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 3 210
CloseResource Ensure that resources like this Connection object are closed after use 3 233
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '233'-'235'). 5 233235
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 240
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '240'-'251'). 5 240251
MissingOverride The method 'update(Connection)' is missing an @Override annotation. 3 260302
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 260
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 262
LocalVariableCouldBeFinal Local variable 'p' could be declared final 3 268
LocalVariableCouldBeFinal Local variable 'rp' could be declared final 3 269
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 269
ShortVariable Avoid variables with short names like rp 3 269
MissingOverride The method 'delete()' is missing an @Override annotation. 3 311313

org/apache/fulcrum/security/torque/turbine/FulcrumAbstractTurbineUser.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 44147
AbstractNaming Abstract classes should be named AbstractXXX 3 44147
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 61
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 61
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 72
MethodArgumentCouldBeFinal Parameter 'lazy' is not assigned and could be declared final 3 82
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 82
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 3 86
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 86
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 3 87
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 3 89
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 3 91
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 91
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 108
LocalVariableCouldBeFinal Local variable 'userGroupRoleSet' could be declared final 3 112
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 115
LocalVariableCouldBeFinal Local variable 'ugr' could be declared final 3 121
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 123
LocalVariableCouldBeFinal Local variable 'ttugr' could be declared final 3 123
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 124
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 125
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 126
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 132

org/apache/fulcrum/security/torque/turbine/TorqueTurbineGroupManagerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 43167
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 55
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 57
UselessParentheses Useless parentheses. 4 59
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 62
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 63
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 63
ShortVariable Avoid variables with short names like id 3 81
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 81
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 81
UselessParentheses Useless parentheses. 4 83
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 86
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 87
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 87
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 104
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 104
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 106
UnusedAssignment The initializer for variable 'groups' is never used (overwritten on lines 117 and 125) 3 109
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groups' (lines '109'-'117'). 5 109117
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groups' (lines '109'-'125'). 5 109125
UselessParentheses Useless parentheses. 4 111
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 114
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 116
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 116
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'groups' (lines '117'-'134'). 5 117134
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 128
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 133
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 137
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '138'-'165'). 5 138165
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '138'-'143'). 5 138143
CloseResource Ensure that resources like this Connection object are closed after use 3 138
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '148'-'165'). 5 148165
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 148

org/apache/fulcrum/security/torque/turbine/TorqueTurbineModelManagerImpl.java

Rule Violation Priority Line
GodClass Possible God Class (WMC=76, ATFD=49, TCC=0.000%) 3 48376
AtLeastOneConstructor Each class should declare at least one constructor 3 48376
TooManyMethods This class has too many methods, consider refactoring it. 3 49376
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 63
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 63
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 63114
CyclomaticComplexity The method 'grant(Role, Permission)' has a cyclomatic complexity of 12. 3 63114
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 66
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 3 66
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 67
LocalVariableCouldBeFinal Local variable 'permissionExists' could be declared final 3 67
CloseResource Ensure that resources like this Connection object are closed after use 3 78
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '78'-'82'). 5 7882
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 88
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '88'-'114'). 5 88114
AvoidDuplicateLiterals The String literal "', '" appears 6 times in this file; the first occurrence is on line 92 3 92
AvoidDuplicateLiterals The String literal "Unknown role '" appears 5 times in this file; the first occurrence is on line 107 3 107
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 125164
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 125
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 125
CyclomaticComplexity The method 'revoke(Role, Permission)' has a cyclomatic complexity of 11. 3 125164
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 128
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 3 128
LocalVariableCouldBeFinal Local variable 'permissionExists' could be declared final 3 129
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 129
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 142
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 168
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 168
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 168
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 168171
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 174
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 174
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 174
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 174179
IfStmtsMustUseBraces Avoid using if statements without curly braces 3 177178
ControlStatementBraces This statement should have braces 3 178
MethodArgumentCouldBeFinal Parameter 'newRole' is not assigned and could be declared final 3 182
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 182
MethodArgumentCouldBeFinal Parameter 'oldRole' is not assigned and could be declared final 3 182
LocalVariableCouldBeFinal Local variable 'group' could be declared final 3 185
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 191
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 191
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 191
LocalVariableCouldBeFinal Local variable 'new_user_group_role' could be declared final 3 194
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'new_user_group_role' is not final. 1 194
LocalVariableNamingConventions The local variable name 'new_user_group_role' doesn't match '[a-z][a-zA-Z0-9]*' 1 194
LongVariable Avoid excessively long variable names like new_user_group_role 3 194
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 218
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 218
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 218
CyclomaticComplexity The method 'removeUserGroupRole(User, Role, Group)' has a cyclomatic complexity of 11. 3 218253
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'ugrFound' (lines '221'-'228'). 5 221228
LocalVariableCouldBeFinal Local variable 'user_group_role' could be declared final 3 222
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'user_group_role' is not final. 1 222
LocalVariableNamingConventions The local variable name 'user_group_role' doesn't match '[a-z][a-zA-Z0-9]*' 1 222
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 224
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 225
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 226
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 255
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 255
CyclomaticComplexity The method 'checkExists(User, Group, Role)' has a cyclomatic complexity of 10. 3 255281
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 255
LocalVariableCouldBeFinal Local variable 'roleExists' could be declared final 3 257
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 257
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 3 258
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 258
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 259
LocalVariableCouldBeFinal Local variable 'groupExists' could be declared final 3 259
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 263
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 283
CyclomaticComplexity The method 'checkExists(User, Role, Role, Group)' has a cyclomatic complexity of 11. 3 283308
MethodArgumentCouldBeFinal Parameter 'oldRole' is not assigned and could be declared final 3 283
MethodArgumentCouldBeFinal Parameter 'globalGroup' is not assigned and could be declared final 3 283
MethodArgumentCouldBeFinal Parameter 'newRole' is not assigned and could be declared final 3 283
LocalVariableCouldBeFinal Local variable 'userExists' could be declared final 3 285
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 285
LocalVariableCouldBeFinal Local variable 'oldRoleExists' could be declared final 3 286
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 286
LocalVariableCouldBeFinal Local variable 'newRoleExists' could be declared final 3 287
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 287
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 291
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 310
MethodArgumentCouldBeFinal Parameter 'newRole' is not assigned and could be declared final 3 310
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 310
MethodArgumentCouldBeFinal Parameter 'privilege' is not assigned and could be declared final 3 310
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 310
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'logChars' (lines '313'-'327'). 5 313327
LawOfDemeter Potential violation of Law of Demeter (static property access) 3 327
MethodArgumentCouldBeFinal Parameter 'privilege' is not assigned and could be declared final 3 336
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 336
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 336
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 336
MethodArgumentCouldBeFinal Parameter 'logChars' is not assigned and could be declared final 3 342
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 342
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '345'-'349'). 5 345349
CloseResource Ensure that resources like this Connection object are closed after use 3 345
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '358'-'375'). 5 358375
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 358
IdenticalCatchBranches 'catch' branch identical to 'TorqueException' branch 3 364367
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 364

org/apache/fulcrum/security/torque/turbine/TorqueTurbinePermissionManagerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38131
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 50
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 52
UselessParentheses Useless parentheses. 4 54
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 57
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 58
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 58
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 76
ShortVariable Avoid variables with short names like id 3 76
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 76
UselessParentheses Useless parentheses. 4 78
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 81
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 82
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 82
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 98
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 98
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 100
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'permissions' (lines '105'-'120'). 5 105120
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'permissions' (lines '105'-'111'). 5 105111
UnusedAssignment The initializer for variable 'permissions' is never used (overwritten on lines 111 and 120) 3 105
UselessParentheses Useless parentheses. 4 106
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 109
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 110
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 111
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'permissions' (lines '111'-'129'). 5 111129
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 123
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 128

org/apache/fulcrum/security/torque/turbine/TorqueTurbineRoleManagerImpl.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38127
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 49
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 51
UselessParentheses Useless parentheses. 4 53
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 56
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 58
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 58
ShortVariable Avoid variables with short names like id 3 74
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 74
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 74
UselessParentheses Useless parentheses. 4 76
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 79
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 81
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 81
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 97
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 97
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 99
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'roles' (lines '103'-'110'). 5 103110
UnusedAssignment The initializer for variable 'roles' is never used (overwritten on lines 110 and 118) 3 103
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'roles' (lines '103'-'118'). 5 103118
UselessParentheses Useless parentheses. 4 104
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 107
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 109
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 109
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 110
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'roles' (lines '110'-'126'). 5 110126
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 121
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 125

org/apache/fulcrum/security/torque/turbine/TorqueTurbineUserManagerImpl.java

Rule Violation Priority Line
GodClass Possible God Class (WMC=50, ATFD=12, TCC=0.000%) 3 47373
AtLeastOneConstructor Each class should declare at least one constructor 3 47373
LocalVariableCouldBeFinal Local variable 'anonUser' could be declared final 3 63
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'anonUser' 3 65
ShortVariable Avoid variables with short names like u 3 77
MethodArgumentCouldBeFinal Parameter 'u' is not assigned and could be declared final 3 77
LocalVariableCouldBeFinal Local variable 'anon' could be declared final 3 81
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 84
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 87
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 89
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 100
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 102
UselessParentheses Useless parentheses. 4 104
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 107
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 108
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 108
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 124
ShortVariable Avoid variables with short names like id 3 124
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 124
UselessParentheses Useless parentheses. 4 126
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 129
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 130
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 130
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 146
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 146
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 148
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'users' (lines '153'-'167'). 5 153167
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'users' (lines '153'-'159'). 5 153159
UnusedAssignment The initializer for variable 'users' is never used (overwritten on lines 159 and 167) 3 153
UselessParentheses Useless parentheses. 4 154
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 157
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 158
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 158
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 159
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'users' (lines '159'-'177'). 5 159177
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 171
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 176
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 3 191
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'user' (lines '193'-'200'). 5 193200
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '194'-'198'). 5 194198
CloseResource Ensure that resources like this Connection object are closed after use 3 194
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 200
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 206
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '206'-'229'). 5 206229
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 210
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 214
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 241
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'userSet' (lines '241'-'274'). 5 241274
LocalVariableCouldBeFinal Local variable 'userSet' could be declared final 3 241
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '242'-'246'). 5 242246
CloseResource Ensure that resources like this Connection object are closed after use 3 242
LocalVariableCouldBeFinal Local variable 'users' could be declared final 3 248
LocalVariableCouldBeFinal Local variable 'user' could be declared final 3 250
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 259
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '259'-'274'). 5 259274
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 288
ShortVariable Avoid variables with short names like id 3 288
SimplifyConditional No need to check for null before an instanceof 3 292
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'con' (lines '294'-'298'). 5 294298
CloseResource Ensure that resources like this Connection object are closed after use 3 294
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 306
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'con' (lines '306'-'330'). 5 306330
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 339
MethodArgumentCouldBeFinal Parameter 'con' is not assigned and could be declared final 3 339
LocalVariableCouldBeFinal Local variable 'peerInstance' could be declared final 3 345346
LocalVariableCouldBeFinal Local variable 'criteria' could be declared final 3 347
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 349
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 349
LocalVariableCouldBeFinal Local variable 'ugrs' could be declared final 3 350
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 350
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'ugrs' (lines '350'-'371'). 5 350371