Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.38.0.

Violations By Priority

Priority 1

org/apache/turbine/Turbine.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 187
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 187

org/apache/turbine/modules/GenericLoader.java

Rule Violation Line
FieldNamingConventions The static field name 'TURBINE_PACKAGES' doesn't match '[a-z][a-zA-Z0-9]*' 60
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'TURBINE_PACKAGES' is not final. 60
VariableNamingConventions Variables should start with a lowercase character, 'TURBINE_PACKAGES' starts with uppercase character. 60

org/apache/turbine/modules/ScheduledJobLoader.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 86

org/apache/turbine/modules/actions/AccessController.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 74
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 74

org/apache/turbine/modules/layouts/JspLayout.java

Rule Violation Line
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 45
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 45

org/apache/turbine/modules/layouts/VelocityLayout.java

Rule Violation Line
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 49
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 49

org/apache/turbine/modules/navigations/BaseJspNavigation.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 42
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 42

org/apache/turbine/modules/navigations/VelocityNavigation.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 48
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 48

org/apache/turbine/modules/screens/BaseJspScreen.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 43
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 43
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 74

org/apache/turbine/modules/screens/JSONScreen.java

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

org/apache/turbine/modules/screens/PlainJSONScreen.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 78
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 78
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_res' is not final. 107
LocalVariableNamingConventions The local variable name 'json_res' doesn't match '[a-z][a-zA-Z0-9]*' 107

org/apache/turbine/modules/screens/RawScreen.java

Rule Violation Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 92–95

org/apache/turbine/modules/screens/TemplateScreen.java

Rule Violation Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 92–95

org/apache/turbine/modules/screens/VelocityCachedScreen.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 64

org/apache/turbine/modules/screens/VelocityDirectScreen.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 65

org/apache/turbine/modules/screens/VelocityScreen.java

Rule Violation Line
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 52
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 52
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 120

org/apache/turbine/om/security/DefaultUserImpl.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'setHasLoggedIn' called during object construction 72

org/apache/turbine/pipeline/DefaultSetEncodingValve.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 50
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 50

org/apache/turbine/pipeline/DetermineActionValve.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 43
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 43

org/apache/turbine/pipeline/DetermineRedirectRequestedValve.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 43
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 43

org/apache/turbine/pipeline/DetermineTargetValve.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 46
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 46

org/apache/turbine/services/TurbineBaseService.java

Rule Violation Line
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 92–95

org/apache/turbine/services/assemblerbroker/util/java/JavaBaseFactory.java

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

org/apache/turbine/services/assemblerbroker/util/python/PythonBaseFactory.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 78
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 132

org/apache/turbine/services/intake/IntakeTool.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 56
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 56

org/apache/turbine/services/jsonrpc/JSONProcessor.java

Rule Violation Line
ClassNamingConventions The utility class name 'JSONProcessor' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Constants)' 39–87
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_bridge' is not final. 51
FormalParameterNamingConventions The method parameter name 'json_bridge' doesn't match '[a-z][a-zA-Z0-9]*' 51
LocalVariableNamingConventions The local variable name 'json_req' doesn't match '[a-z][a-zA-Z0-9]*' 54
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_req' is not final. 54
LocalVariableNamingConventions The local variable name 'json_res' doesn't match '[a-z][a-zA-Z0-9]*' 55
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_res' is not final. 55
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'object_id' is not final. 65
LocalVariableNamingConventions The local variable name 'object_id' doesn't match '[a-z][a-zA-Z0-9]*' 65

org/apache/turbine/services/jsonrpc/JsonRpcService.java

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

org/apache/turbine/services/jsonrpc/TurbineJsonRpcService.java

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

org/apache/turbine/services/jsp/TurbineJspService.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 143

org/apache/turbine/services/localization/DateTimeFormatterService.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 71
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 71

org/apache/turbine/services/localization/LocalizationTool.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'refresh' called during object construction 59

org/apache/turbine/services/localization/RundataLocalizationService.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 45
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 45

org/apache/turbine/services/pull/tools/TemplateLink.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 95
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 95

org/apache/turbine/services/pull/tools/UITool.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 68
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 68

org/apache/turbine/services/pull/util/DateTimeFormatterTool.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 61
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 61

org/apache/turbine/services/schedule/AbstractJobEntry.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 38
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 38
FormalParameterNamingConventions The method parameter name 'day_mo' doesn't match '[a-z][a-zA-Z0-9]*' 98
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'day_mo' is not final. 98
ConstructorCallsOverridableMethod Overridable method 'calcRunTime' called during object construction 117

org/apache/turbine/services/schedule/AbstractSchedulerService.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 44
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 44
FormalParameterNamingConventions The method parameter name 'day_mo' doesn't match '[a-z][a-zA-Z0-9]*' 118
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'day_mo' is not final. 118

org/apache/turbine/services/schedule/JobEntryNonPersistent.java

Rule Violation Line
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'day_mo' is not final. 36
FieldNamingConventions The field name 'day_mo' doesn't match '[a-z][a-zA-Z0-9]*' 36
FormalParameterNamingConventions The method parameter name 'day_mo' doesn't match '[a-z][a-zA-Z0-9]*' 83
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'day_mo' is not final. 83
LocalVariableNamingConventions The local variable name '_isnew' doesn't match '[a-z][a-zA-Z0-9]*' 119
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), '_isnew' is not final. 119

org/apache/turbine/services/schedule/JobEntryQuartz.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'setTask' called during object construction 84
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), '_isnew' is not final. 95
LocalVariableNamingConventions The local variable name '_isnew' doesn't match '[a-z][a-zA-Z0-9]*' 95

org/apache/turbine/services/schedule/ScheduleService.java

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

org/apache/turbine/services/schedule/SchedulerTool.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 41
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 41

org/apache/turbine/services/schedule/TorqueSchedulerService.java

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

org/apache/turbine/services/schedule/TurbineNonPersistentSchedulerService.java

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

org/apache/turbine/services/schedule/WorkerThread.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 45
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 45

org/apache/turbine/services/security/DefaultSecurityService.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 104
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 104

org/apache/turbine/services/security/DefaultUserManager.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 88
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 88

org/apache/turbine/services/servlet/TurbineServletService.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 55
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 55

org/apache/turbine/services/template/TurbineTemplateService.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 186
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 186

org/apache/turbine/services/template/mapper/ClassMapper.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 63
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 63

org/apache/turbine/services/template/mapper/LayoutTemplateMapper.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 55
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 55

org/apache/turbine/services/template/mapper/ScreenDefaultTemplateMapper.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 51
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 51

org/apache/turbine/services/ui/TurbineUIService.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 62
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 62

org/apache/turbine/services/uniqueid/TurbineUniqueIdService.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 49
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 49
VariableNamingConventions Variables that are final and static should be all capitals, 'counter' is not all capitals. 56
FieldNamingConventions The constant name 'counter' doesn't match '[A-Z][A-Z_0-9]*' 56

org/apache/turbine/util/BrowserDetector.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'getUserAgent' called during object construction 81

org/apache/turbine/util/FormMessage.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'setFormName' called during object construction 55
ConstructorCallsOverridableMethod Overridable method 'setFieldName' called during object construction 68
ConstructorCallsOverridableMethod Overridable method 'setMessage' called during object construction 83

org/apache/turbine/util/FormMessages.java

Rule Violation Line
FieldNamingConventions The final field name 'forms_messages' doesn't match '[a-z][a-zA-Z0-9]*' 36
FieldNamingConventions The final field name 'fields_messages' doesn't match '[a-z][a-zA-Z0-9]*' 38
FieldNamingConventions The final field name 'messages_fields' doesn't match '[a-z][a-zA-Z0-9]*' 40
FieldNamingConventions The final field name 'forms_fields' doesn't match '[a-z][a-zA-Z0-9]*' 42
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 128–154
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 128–154
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 163–182
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 163–182

org/apache/turbine/util/GenerateUniqueId.java

Rule Violation Line
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'session_count' is not final. 50
FieldNamingConventions The static field name 'session_count' doesn't match '[a-z][a-zA-Z0-9]*' 50
FieldNamingConventions The public constant name 'maxRandomLen' doesn't match '[A-Z][A-Z_0-9]*' 61
VariableNamingConventions Variables that are final and static should be all capitals, 'maxRandomLen' is not all capitals. 61
FieldNamingConventions The public constant name 'maxSessionLifespanTics' doesn't match '[A-Z][A-Z_0-9]*' 69
VariableNamingConventions Variables that are final and static should be all capitals, 'maxSessionLifespanTics' is not all capitals. 69
FieldNamingConventions The public constant name 'ticDifference' doesn't match '[A-Z][A-Z_0-9]*' 75
VariableNamingConventions Variables that are final and static should be all capitals, 'ticDifference' is not all capitals. 75

org/apache/turbine/util/LocaleUtils.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 64
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 64
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 174

org/apache/turbine/util/ObjectUtils.java

Rule Violation Line
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 56

org/apache/turbine/util/ServerData.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 60
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 60
ConstructorCallsOverridableMethod Overridable method 'setServerName' called during object construction 86
ConstructorCallsOverridableMethod Overridable method 'setServerScheme' called during object construction 88
ConstructorCallsOverridableMethod Overridable method 'setScriptName' called during object construction 89
ConstructorCallsOverridableMethod Overridable method 'setContextPath' called during object construction 90
ConstructorCallsOverridableMethod Overridable method 'setServerName' called during object construction 102
ConstructorCallsOverridableMethod Overridable method 'setServerScheme' called during object construction 104
ConstructorCallsOverridableMethod Overridable method 'setScriptName' called during object construction 105
ConstructorCallsOverridableMethod Overridable method 'setContextPath' called during object construction 106
ConstructorCallsOverridableMethod Overridable method 'setServerName' called during object construction 117
ConstructorCallsOverridableMethod Overridable method 'setServerScheme' called during object construction 119
ConstructorCallsOverridableMethod Overridable method 'setScriptName' called during object construction 120
ConstructorCallsOverridableMethod Overridable method 'setContextPath' called during object construction 121

org/apache/turbine/util/TurbineConfig.java

Rule Violation Line
AvoidFileStream Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter 380

org/apache/turbine/util/template/HtmlPageAttributes.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'setRelation' called during object construction 525

org/apache/turbine/util/template/TemplateNavigation.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 49
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 49
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 97
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 108

org/apache/turbine/util/template/TemplateScreen.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 52
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 52

org/apache/turbine/util/template/TemplateSecurityCheck.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'setMessage' called during object construction 71

org/apache/turbine/util/uri/BaseURI.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 51
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 51
ConstructorCallsOverridableMethod Overridable method 'setResponse' called during object construction 93
ConstructorCallsOverridableMethod Overridable method 'setResponse' called during object construction 105

org/apache/turbine/util/uri/TemplateURI.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'setTemplate' called during object construction 84
ConstructorCallsOverridableMethod Overridable method 'setTemplate' called during object construction 97
ConstructorCallsOverridableMethod Overridable method 'setTemplate' called during object construction 157
ConstructorCallsOverridableMethod Overridable method 'setTemplate' called during object construction 170
ConstructorCallsOverridableMethod Overridable method 'setTemplate' called during object construction 209

org/apache/turbine/util/velocity/VelocityEmail.java

Rule Violation Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 107
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 107

org/apache/turbine/util/velocity/VelocityHtmlEmail.java

Rule Violation Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 88
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 88

Priority 2

org/apache/turbine/Turbine.java

Rule Violation Line
AvoidUsingVolatile Use of modifier volatile is not recommended. 161
GuardLogStatement Logger calls should be surrounded by log level guards. 479–480
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 530
GuardLogStatement Logger calls should be surrounded by log level guards. 909
GuardLogStatement Logger calls should be surrounded by log level guards. 954

org/apache/turbine/modules/actions/LoginUser.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 57

org/apache/turbine/modules/actions/sessionvalidator/DefaultSessionValidator.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 61

org/apache/turbine/modules/actions/sessionvalidator/TemplateSecureSessionValidator.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 60–61

org/apache/turbine/modules/actions/sessionvalidator/TemplateSessionValidator.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 50

org/apache/turbine/modules/layouts/VelocityLayout.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 46

org/apache/turbine/modules/pages/DefaultPage.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 95

org/apache/turbine/modules/screens/BaseJspScreen.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 73

org/apache/turbine/modules/screens/TemplateScreen.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 55

org/apache/turbine/modules/screens/VelocityCachedScreen.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 63

org/apache/turbine/modules/screens/VelocityDirectScreen.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 64

org/apache/turbine/modules/screens/VelocityScreen.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 119

org/apache/turbine/pipeline/DetermineRedirectRequestedValve.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 83

org/apache/turbine/services/BaseInitableBroker.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 73

org/apache/turbine/services/FieldAnnotatedTurbineBaseService.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 41
GuardLogStatement Logger calls should be surrounded by log level guards. 56

org/apache/turbine/services/assemblerbroker/TurbineAssemblerBrokerService.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 60–61
GuardLogStatement Logger calls should be surrounded by log level guards. 105

org/apache/turbine/services/assemblerbroker/util/java/JavaBaseFactory.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 51

org/apache/turbine/services/assemblerbroker/util/python/PythonBaseFactory.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 58

org/apache/turbine/services/intake/IntakeTool.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 463
GuardLogStatement Logger calls should be surrounded by log level guards. 529–530

org/apache/turbine/services/jsonrpc/JSONProcessor.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 42

org/apache/turbine/services/jsp/TurbineJspService.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 67

org/apache/turbine/services/jsp/util/JspNavigation.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 50

org/apache/turbine/services/jsp/util/JspScreenPlaceholder.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 52

org/apache/turbine/services/localization/DateTimeFormatterService.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 110–112
GuardLogStatement Logger calls should be surrounded by log level guards. 151
GuardLogStatement Logger calls should be surrounded by log level guards. 158
AvoidReassigningParameters Avoid reassigning parameters such as 'incomingFormatPattern' 183
AvoidReassigningParameters Avoid reassigning parameters such as 'incomingFormat' 208
AvoidReassigningParameters Avoid reassigning parameters such as 'outgoingFormat' 215

org/apache/turbine/services/localization/LocalizationTool.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 42

org/apache/turbine/services/naming/TurbineNamingService.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 55

org/apache/turbine/services/pull/util/DateTimeFormatterTool.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 111

org/apache/turbine/services/schedule/WorkerThread.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 79–80
GuardLogStatement Logger calls should be surrounded by log level guards. 99–100

org/apache/turbine/services/security/DefaultSecurityService.java

Rule Violation Line
AvoidUsingVolatile Use of modifier volatile is not recommended. 101

org/apache/turbine/services/template/TurbineTemplateService.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 295

org/apache/turbine/services/ui/TurbineUIService.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 306

org/apache/turbine/util/BrowserDetector.java

Rule Violation Line
AvoidUsingVolatile Use of modifier volatile is not recommended. 56–57

org/apache/turbine/util/GenerateUniqueId.java

Rule Violation Line
SystemPrintln System.out.println is used 154
SystemPrintln System.out.println is used 155
SystemPrintln System.out.println is used 156
SystemPrintln System.out.println is used 157

org/apache/turbine/util/ServerData.java

Rule Violation Line
ProperCloneImplementation Object clone() should be implemented with super.clone() 130–134
GuardLogStatement Logger calls should be surrounded by log level guards. 174

org/apache/turbine/util/TurbineConfig.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 135

org/apache/turbine/util/uri/BaseURI.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 512
GuardLogStatement Logger calls should be surrounded by log level guards. 517

Priority 3

org/apache/turbine/Turbine.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 1–1089
GodClass Possible God Class (WMC=84, ATFD=118, TCC=11.694%) 118–1089
StdCyclomaticComplexity The class 'Turbine' has a Standard Cyclomatic Complexity of 2 (Highest = 10). 118–1089
CyclomaticComplexity The class 'Turbine' has a total cyclomatic complexity of 84 (highest 12). 118–1089
AtLeastOneConstructor Each class should declare at least one constructor 118–1089
TooManyMethods This class has too many methods, consider refactoring it. 119–1089
LongVariable Avoid excessively long variable names like REDIRECTED_PATHINFO_NAME 130
RedundantFieldInitializer Avoid using redundant field initializer for 'pipeline' 148
RedundantFieldInitializer Avoid using redundant field initializer for 'initFailure' 151
RedundantFieldInitializer Avoid using redundant field initializer for 'serverData' 161
RedundantFieldInitializer Avoid using redundant field initializer for 'configuration' 179
LocalVariableCouldBeFinal Local variable 'config' could be declared final 212
LocalVariableCouldBeFinal Local variable 'context' could be declared final 216
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 216
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 220
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 220
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 231–237
ExcessiveMethodLength Avoid really long methods. 257–362
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 257
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 257
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 258
LocalVariableCouldBeFinal Local variable 'confPath' could be declared final 309
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 319
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 329
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 335
SimplifyStartsWith This call to String.startsWith can be rewritten using String.charAt(0) 347
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 347
LocalVariableCouldBeFinal Local variable 'jaxb' could be declared final 354
LocalVariableCouldBeFinal Local variable 'unmarshaller' could be declared final 355
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 355
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 356
ExcessiveMethodLength Avoid really long methods. 381–483
CyclomaticComplexity The method 'configureApplication(ServletConfig, ServletContext)' has a cyclomatic complexity of 12. 381–483
StdCyclomaticComplexity The method 'configureApplication' has a Standard Cyclomatic Complexity of 10. 381–483
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 381
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 381
LocalVariableCouldBeFinal Local variable 'params' could be declared final 417
SimplifyStartsWith This call to String.startsWith can be rewritten using String.charAt(0) 420
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 420
LocalVariableCouldBeFinal Local variable 'confFileRelativePath' could be declared final 427
LongVariable Avoid excessively long variable names like confFileRelativePath 427
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 429
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 430
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 433
LocalVariableCouldBeFinal Local variable 'targetPathDirectory' could be declared final 433
LongVariable Avoid excessively long variable names like targetPathDirectory 433
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 437
LocalVariableCouldBeFinal Local variable 'targetFilePath' could be declared final 439
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 443
LocalVariableCouldBeFinal Local variable 'combinedBuilder' could be declared final 453–457
LocalVariableCouldBeFinal Local variable 'propertiesBuilder' could be declared final 462–467
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 500
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 501
MethodArgumentCouldBeFinal Parameter 'defaultValue' is not assigned and could be declared final 501
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 501
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 507
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 524
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 543
LocalVariableCouldBeFinal Local variable 'services' could be declared final 557
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 559–575
LocalVariableCouldBeFinal Local variable 'i' could be declared final 559
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 559
LocalVariableCouldBeFinal Local variable 'serviceName' could be declared final 561
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 562
LocalVariableCouldBeFinal Local variable 'service' could be declared final 562
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 601
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 611
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 621
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 632
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 642
NonThreadSafeSingleton Singleton is not thread safe 658–677
LocalVariableCouldBeFinal Local variable 'serverName' could be declared final 660
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 687
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 708
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 731
MethodArgumentCouldBeFinal Parameter 'req' is not assigned and could be declared final 751
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 751
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 762
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 767
LocalVariableCouldBeFinal Local variable 'runDataMap' could be declared final 767
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 785–788
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 790–794
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 810
MethodArgumentCouldBeFinal Parameter 'req' is not assigned and could be declared final 810
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 842
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 842
ShortVariable Avoid variables with short names like t 843
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 843
LocalVariableCouldBeFinal Local variable 'data' could be declared final 845
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 863–866
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 872–874
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 876
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 877
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 880–883
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 894
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 894
ShortVariable Avoid variables with short names like t 894
LocalVariableCouldBeFinal Local variable 'writer' could be declared final 900
CloseResource Ensure that resources like this PrintWriter object are closed after use 900
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 901
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 904
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 919–930
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 919
LocalVariableCouldBeFinal Local variable 'requestServerData' could be declared final 928
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 929
MethodArgumentCouldBeFinal Parameter 'logConf' is not assigned and could be declared final 941
LocalVariableCouldBeFinal Local variable 'context' could be declared final 943
CloseResource Ensure that resources like this LoggerContext object are closed after use 943
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 945
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 945
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 945
LocalVariableCouldBeFinal Local variable 'log4jFile' could be declared final 947
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 951
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 954
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 954
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 954
MethodArgumentCouldBeFinal Parameter 'logConfPath' is not assigned and could be declared final 966
CyclomaticComplexity The method 'resolveLog4j2(Path)' has a cyclomatic complexity of 12. 966–1004
CognitiveComplexity The method 'resolveLog4j2(Path)' has a cognitive complexity of 21, current threshold is 15 966–1004
SimplifyStartsWith This call to String.startsWith can be rewritten using String.charAt(0) 971
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 971
LiteralsFirstInComparisons Position literals first in String comparisons 976
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 976
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 976
CollapsibleIfStatements These nested if statements could be combined 981–1001
LocalVariableCouldBeFinal Local variable 'log4jFilePath' could be declared final 983
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 985
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 985
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 987
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 992
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 992
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 994
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 995
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 995
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 997
MethodArgumentCouldBeFinal Parameter 'val' is not assigned and could be declared final 1012
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 1045
SimplifyStartsWith This call to String.startsWith can be rewritten using String.charAt(0) 1047
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 1049
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 1087

org/apache/turbine/TurbineConstants.java

Rule Violation Line
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 48
LongVariable Avoid excessively long variable names like LOG4J2_CONFIG_FILE 51
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 51
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 53
LongVariable Avoid excessively long variable names like LOG4J2_CONFIG_FILE_DEFAULT 56
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 56
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 59
LongVariable Avoid excessively long variable names like SCHEDULER_LOG_FACILITY 62
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 62
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 65
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 68
LongVariable Avoid excessively long variable names like MAIL_SERVER_DEFAULT 68
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 71
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 74
LongVariable Avoid excessively long variable names like MODULE_CACHE_DEFAULT 77
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 77
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 80
LongVariable Avoid excessively long variable names like MODULE_CACHE_SIZE_KEY 80
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 83
LongVariable Avoid excessively long variable names like MODULE_CACHE_SIZE_DEFAULT 83
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 86
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 89
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 92
LongVariable Avoid excessively long variable names like TEMPLATE_ERROR_KEY 95
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 95
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 98
LongVariable Avoid excessively long variable names like TEMPLATE_ERROR_JSP 98
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 101
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 104
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 107
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 110
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 113
LongVariable Avoid excessively long variable names like SCREEN_ERROR_DEFAULT 113
LongVariable Avoid excessively long variable names like SCREEN_INVALID_STATE 116
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 116
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 119
LongVariable Avoid excessively long variable names like TEMPLATE_INVALID_STATE 119
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 122
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 125
LongVariable Avoid excessively long variable names like ACTION_LOGIN_DEFAULT 125
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 128
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 131
LongVariable Avoid excessively long variable names like ACTION_LOGOUT_DEFAULT 131
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 134
LongVariable Avoid excessively long variable names like ACTION_SESSION_VALIDATOR_KEY 134
LongVariable Avoid excessively long variable names like ACTION_SESSION_VALIDATOR_DEFAULT 137
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 137
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 140
LongVariable Avoid excessively long variable names like ACTION_ACCESS_CONTROLLER_KEY 140
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 143
LongVariable Avoid excessively long variable names like ACTION_ACCESS_CONTROLLER_DEFAULT 143
LongVariable Avoid excessively long variable names like ACTION_EVENTSUBMIT_NEEDSVALUE_KEY 146
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 146
LongVariable Avoid excessively long variable names like ACTION_EVENTSUBMIT_NEEDSVALUE_DEFAULT 149
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 149
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 152
LongVariable Avoid excessively long variable names like ACTION_EVENT_BUBBLE_EXCEPTION_UP 152
LongVariable Avoid excessively long variable names like ACTION_EVENT_BUBBLE_EXCEPTION_UP_DEFAULT 155
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 155
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 158
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 161
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 164
LongVariable Avoid excessively long variable names like PAGE_DEFAULT_DEFAULT 164
LongVariable Avoid excessively long variable names like SCREEN_DEFAULT_DEFAULT 167
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 167
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 170
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 173
LongVariable Avoid excessively long variable names like LOGIN_MESSAGE_NOSCREEN 176
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 176
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 179
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 182
LongVariable Avoid excessively long variable names like SESSION_TIMEOUT_KEY 182
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 185
LongVariable Avoid excessively long variable names like SESSION_TIMEOUT_DEFAULT 185
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 188
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 191
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 197
LongVariable Avoid excessively long variable names like PP_URL_CASE_FOLDING 197
LongVariable Avoid excessively long variable names like DEFAULT_DOCUMENT_TYPE_KEY 200
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 200
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_ROOT_ELEMENT_KEY 203
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 203
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 206
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_ROOT_ELEMENT_DEFAULT 206
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 209
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_IDENTIFIER_KEY 209
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 212
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_IDENTIFIER_DEFAULT 212
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 215
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_URI_KEY 215
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_URI_DEFAULT 218
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 218
LongVariable Avoid excessively long variable names like DEFAULT_HTML_CONTENT_TYPE 221
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 221
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 222
LongVariable Avoid excessively long variable names like DEFAULT_TEXT_CONTENT_TYPE 222
LongVariable Avoid excessively long variable names like DEFAULT_CSS_CONTENT_TYPE 223
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 223
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 226
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_LANGUAGE_KEY 226
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 229
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_LANGUAGE_DEFAULT 229
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 232
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_COUNTRY_KEY 232
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 235
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_COUNTRY_DEFAULT 235
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 238
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_CHARSET_KEY 238
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 241
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_CHARSET_DEFAULT 241
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 244
LongVariable Avoid excessively long variable names like LOCALE_OVERRIDE_CHARSET_KEY 244
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 249
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 252
LongVariable Avoid excessively long variable names like APPLICATION_ROOT_KEY 252
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 255
LongVariable Avoid excessively long variable names like APPLICATION_ROOT_DEFAULT 255
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 262
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 265
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 268
LongVariable Avoid excessively long variable names like LOGGING_ROOT_DEFAULT 268
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 271
LongVariable Avoid excessively long variable names like SCREEN_PLACEHOLDER 274
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 274
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 277
LongVariable Avoid excessively long variable names like NAVIGATION_PLACEHOLDER 277
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 280
LongVariable Avoid excessively long variable names like PROCESSING_EXCEPTION_PLACEHOLDER 280
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 283
LongVariable Avoid excessively long variable names like STACK_TRACE_PLACEHOLDER 283
LongVariable Avoid excessively long variable names like PARAMETER_ENCODING_KEY 286
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 286
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 289
LongVariable Avoid excessively long variable names like PARAMETER_ENCODING_DEFAULT 289
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 292–293
LongVariable Avoid excessively long variable names like DEFAULT_SERVER_NAME_KEY 292
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 296–297
LongVariable Avoid excessively long variable names like DEFAULT_SERVER_PORT_KEY 296
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 300–301
LongVariable Avoid excessively long variable names like DEFAULT_SERVER_SCHEME_KEY 300
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 304–305
LongVariable Avoid excessively long variable names like DEFAULT_SCRIPT_NAME_KEY 304
LongVariable Avoid excessively long variable names like DEFAULT_CONTEXT_PATH_KEY 308
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 308–309
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 312
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 319

org/apache/turbine/modules/Action.java

Rule Violation Line
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 41
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 53
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 62
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 62

org/apache/turbine/modules/ActionLoader.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 59
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 62

org/apache/turbine/modules/GenericLoader.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 42–222
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 45
ShortVariable Avoid variables with short names like ab 45
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 48
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 51
RedundantFieldInitializer Avoid using redundant field initializer for 'reload' 54
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 54
AvoidFieldNameMatchingMethodName Field reload has the same name as a method 54
SuspiciousConstantFieldName The field name indicates a constant but its modifiers do not 60
RedundantFieldInitializer Avoid using redundant field initializer for 'TURBINE_PACKAGES' 60
MethodArgumentCouldBeFinal Parameter 'cacheSizeSupplier' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'assemblerClass' is not assigned and could be declared final 68
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 85
MethodArgumentCouldBeFinal Parameter 'reload' is not assigned and could be declared final 109
LinguisticNaming Linguistics Antipattern - The setter 'setReload' should not return any type except void linguistically 109–113
NonThreadSafeSingleton Singleton is not thread safe 134–140
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 136–137
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 136–137
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 136–137
LocalVariableCouldBeFinal Local variable 'turbinePackages' could be declared final 136–137
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 136–137
LocalVariableCouldBeFinal Local variable 'packages' could be declared final 142
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 144
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 161
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 176
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 176
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 177
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 194
LocalVariableCouldBeFinal Local variable 'packages' could be declared final 203
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 208

org/apache/turbine/modules/Layout.java

Rule Violation Line
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 41
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 52
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 61
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 61

org/apache/turbine/modules/LayoutLoader.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 59
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 62

org/apache/turbine/modules/Loader.java

Rule Violation Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 37

org/apache/turbine/modules/Navigation.java

Rule Violation Line
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 42
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 57
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 67
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 68

org/apache/turbine/modules/NavigationLoader.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 63
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 63
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 64
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 67
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 78
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 78

org/apache/turbine/modules/Page.java

Rule Violation Line
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 42
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 54
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 63
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 64

org/apache/turbine/modules/PageLoader.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 59
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 63

org/apache/turbine/modules/ScheduledJob.java

Rule Violation Line
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 47
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 58

org/apache/turbine/modules/ScheduledJobLoader.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 59
MethodArgumentCouldBeFinal Parameter 'job' is not assigned and could be declared final 59
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 60
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 63
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 83
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 83

org/apache/turbine/modules/Screen.java

Rule Violation Line
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 45
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 59
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 69
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 70
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 89
LocalVariableCouldBeFinal Local variable 'data' could be declared final 91
CloseResource Ensure that resources like this RunData object are closed after use 91
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 92
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 101
MethodArgumentCouldBeFinal Parameter 'layout' is not assigned and could be declared final 101
LocalVariableCouldBeFinal Local variable 'data' could be declared final 103
CloseResource Ensure that resources like this RunData object are closed after use 103
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 104

org/apache/turbine/modules/ScreenLoader.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 65
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 65
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 66
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 69
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 82
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 82

org/apache/turbine/modules/actions/AccessController.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 71–119
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 78
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 91
LocalVariableCouldBeFinal Local variable 'data' could be declared final 94
CloseResource Ensure that resources like this RunData object are closed after use 94
LocalVariableCouldBeFinal Local variable 'user' could be declared final 95
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 95
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 98
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 102–103
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 108–109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 117

org/apache/turbine/modules/actions/DefaultAction.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 36–51
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 45
CloseResource Ensure that resources like this RunData object are closed after use 48
LocalVariableCouldBeFinal Local variable 'data' could be declared final 48
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 49
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 49

org/apache/turbine/modules/actions/InitContextsAction.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 44–97
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 48
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 60
LocalVariableCouldBeFinal Local variable 'data' could be declared final 63
CloseResource Ensure that resources like this RunData object are closed after use 63
LocalVariableCouldBeFinal Local variable 'contextPropsList' could be declared final 71
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 71
LocalVariableCouldBeFinal Local variable 'contextKeys' could be declared final 72
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 72–89
LocalVariableCouldBeFinal Local variable 'key' could be declared final 74
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 75
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 75
LocalVariableCouldBeFinal Local variable 'start' could be declared final 75
LocalVariableCouldBeFinal Local variable 'end' could be declared final 76
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 76
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 76
LocalVariableCouldBeFinal Local variable 'contextName' could be declared final 77
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 77
UnusedAssignment The initializer for variable 'contextProps' is never used (overwritten on lines 81 and 85) 78
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 85
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 87
LocalVariableCouldBeFinal Local variable 'contextProps' could be declared final 91
LocalVariableCouldBeFinal Local variable 'context' could be declared final 93
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 93
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 94

org/apache/turbine/modules/actions/LegacyVelocityAction.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 36–85
AbstractNaming Abstract classes should be named AbstractXXX 36–85
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 46
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 56
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 56
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 71
LocalVariableCouldBeFinal Local variable 'data' could be declared final 79
CloseResource Ensure that resources like this RunData object are closed after use 79
LocalVariableCouldBeFinal Local variable 'pp' could be declared final 80
ShortVariable Avoid variables with short names like pp 80
LocalVariableCouldBeFinal Local variable 'context' could be declared final 81

org/apache/turbine/modules/actions/LegacyVelocitySecureAction.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 41–69
AtLeastOneConstructor Each class should declare at least one constructor 41–69
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 51
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 68

org/apache/turbine/modules/actions/LoginUser.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 48–157
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 61
ImmutableField Private field 'loginError' could be made final; it is only initialized in the declaration or constructor. 64
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 64
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 67
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 70
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 85
CloseResource Ensure that resources like this RunData object are closed after use 88
LocalVariableCouldBeFinal Local variable 'data' could be declared final 88
LocalVariableCouldBeFinal Local variable 'username' could be declared final 89
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 90
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 90
LocalVariableCouldBeFinal Local variable 'password' could be declared final 90
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 90
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 99
LocalVariableCouldBeFinal Local variable 'user' could be declared final 105
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 111
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 114
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 132
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 134
LocalVariableCouldBeFinal Local variable 'anonymousUser' could be declared final 142

org/apache/turbine/modules/actions/LogoutUser.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 41–123
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 45
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 48
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 51
ImmutableField Private field 'actionLogout' could be made final; it is only initialized in the declaration or constructor. 51
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 54
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 75
CloseResource Ensure that resources like this RunData object are closed after use 78
LocalVariableCouldBeFinal Local variable 'data' could be declared final 78
LocalVariableCouldBeFinal Local variable 'user' could be declared final 81
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 81
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 95
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 99
LocalVariableCouldBeFinal Local variable 'anonymousUser' could be declared final 102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 103
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 104
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 109
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 109
LiteralsFirstInComparisons Position literals first in String comparisons 118

org/apache/turbine/modules/actions/VelocityAction.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 36–96
AtLeastOneConstructor Each class should declare at least one constructor 36–96
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 57
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 70
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 76
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 92
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 92

org/apache/turbine/modules/actions/VelocitySecureAction.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 42–70
AbstractNaming Abstract classes should be named AbstractXXX 42–70
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 52
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 69

org/apache/turbine/modules/actions/sessionvalidator/DefaultSessionValidator.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 57–129
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 64
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 67
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 70
LongVariable Avoid excessively long variable names like loginMessageNoScreen 70
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 84
CloseResource Ensure that resources like this RunData object are closed after use 87
LocalVariableCouldBeFinal Local variable 'data' could be declared final 87
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 89
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 92
LocalVariableCouldBeFinal Local variable 'anonymousUser' could be declared final 95
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 101
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 101
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 118
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 127
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 127

org/apache/turbine/modules/actions/sessionvalidator/SessionValidator.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 53–124
AtLeastOneConstructor Each class should declare at least one constructor 53–124
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 57
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 66
LongVariable Avoid excessively long variable names like templateInvalidState 66
LongVariable Avoid excessively long variable names like screenInvalidState 69
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 69
MethodArgumentCouldBeFinal Parameter 'screenOnly' is not assigned and could be declared final 79
CognitiveComplexity The method 'handleFormCounterToken(RunData, boolean)' has a cognitive complexity of 20, current threshold is 15 79–122
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 79
AvoidDuplicateLiterals The String literal "_session_access_counter" appears 5 times in this file; the first occurrence is on line 81 81
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 81
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 85
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 86–87
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 90
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 98
CollapsibleIfStatements These nested if statements could be combined 98–117
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 99–100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 102
ConfusingTernary Avoid if (x != y) ..; else ..; 102–114
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 102–114
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 104–106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 105–106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 105–106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 107
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 111–112
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 112
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 115

org/apache/turbine/modules/actions/sessionvalidator/TemplateSecureSessionValidator.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 56–149
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 65
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 68
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 84
CloseResource Ensure that resources like this RunData object are closed after use 87
LocalVariableCouldBeFinal Local variable 'data' could be declared final 87
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 89
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 92
LocalVariableCouldBeFinal Local variable 'anonymousUser' could be declared final 95
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 101
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 101
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 114
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 124
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 125
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 125
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 129
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 141
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 141
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 147
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 147

org/apache/turbine/modules/actions/sessionvalidator/TemplateSessionValidator.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 46–101
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 60
LocalVariableCouldBeFinal Local variable 'data' could be declared final 62
CloseResource Ensure that resources like this RunData object are closed after use 62
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 64
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 67
LocalVariableCouldBeFinal Local variable 'anonymousUser' could be declared final 70
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 76
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 77
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 77
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 81
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 93
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 93
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 99
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 99

org/apache/turbine/modules/layouts/DirectResponseLayout.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 37–56
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 46
LocalVariableCouldBeFinal Local variable 'data' could be declared final 49
CloseResource Ensure that resources like this RunData object are closed after use 49
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 50

org/apache/turbine/modules/layouts/JspLayout.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 42–80
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 49
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 58
LocalVariableCouldBeFinal Local variable 'data' could be declared final 61
CloseResource Ensure that resources like this RunData object are closed after use 61
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 62
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 62
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 63
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 76
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 76
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 76

org/apache/turbine/modules/layouts/VelocityCachedLayout.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 42–61
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 54
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 54
MethodArgumentCouldBeFinal Parameter 'templateName' is not assigned and could be declared final 54
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 59

org/apache/turbine/modules/layouts/VelocityDirectLayout.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 42–58
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 48
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 48

org/apache/turbine/modules/layouts/VelocityLayout.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 43–116
AbstractNaming Abstract classes should be named AbstractXXX 43–116
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 46
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 53
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 63
CloseResource Ensure that resources like this RunData object are closed after use 66
LocalVariableCouldBeFinal Local variable 'data' could be declared final 66
LocalVariableCouldBeFinal Local variable 'context' could be declared final 68
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 76
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 76
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 76
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 79
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 79
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 79
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 80
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 80
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 80
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 97
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 108
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 108
MethodArgumentCouldBeFinal Parameter 'templateName' is not assigned and could be declared final 108
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 113–114

org/apache/turbine/modules/layouts/VelocityOnlyLayout.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 65–93
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 69
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 75
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 75
LocalVariableCouldBeFinal Local variable 'screenName' could be declared final 77
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 77
LocalVariableCouldBeFinal Local variable 'results' could be declared final 83
LocalVariableCouldBeFinal Local variable 'returnValue' could be declared final 84

org/apache/turbine/modules/layouts/VelocityXslLayout.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 55–102
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 59
UnusedPrivateField Avoid unused private fields such as 'screenLoader'. 63
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 73
CloseResource Ensure that resources like this RunData object are closed after use 76
LocalVariableCouldBeFinal Local variable 'data' could be declared final 76
LocalVariableCouldBeFinal Local variable 'context' could be declared final 78
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 80
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 80
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 88
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 88
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 88
LocalVariableCouldBeFinal Local variable 'temp' could be declared final 93–94
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 99
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 99
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 100

org/apache/turbine/modules/navigations/BaseJspNavigation.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38–80
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 46
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 55
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 69
LocalVariableCouldBeFinal Local variable 'data' could be declared final 72
CloseResource Ensure that resources like this RunData object are closed after use 72
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 74
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 74
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 74

org/apache/turbine/modules/navigations/LegacyVelocityNavigation.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 35–61
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 47
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 47
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 48
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 57
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 57

org/apache/turbine/modules/navigations/TemplateNavigation.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 34–68
AtLeastOneConstructor Each class should declare at least one constructor 34–68
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 44
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 52
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 62

org/apache/turbine/modules/navigations/VelocityNavigation.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 44–109
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. 56
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 67
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 68
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 69
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 83
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 97
CloseResource Ensure that resources like this RunData object are closed after use 100
LocalVariableCouldBeFinal Local variable 'data' could be declared final 100
LocalVariableCouldBeFinal Local variable 'context' could be declared final 101
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 103
LongVariable Avoid excessively long variable names like navigationTemplate 103
LocalVariableCouldBeFinal Local variable 'navigationTemplate' could be declared final 103
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 103
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 104–105

org/apache/turbine/modules/pages/DefaultPage.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 92–207
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 95
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 99
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 103
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 107
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 116
CloseResource Ensure that resources like this RunData object are closed after use 119
LocalVariableCouldBeFinal Local variable 'data' could be declared final 119
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 126
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 132
LocalVariableCouldBeFinal Local variable 'screenName' could be declared final 141
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 141
LocalVariableCouldBeFinal Local variable 'aScreen' could be declared final 149
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 150
LocalVariableCouldBeFinal Local variable 'layout' could be declared final 150
ConfusingTernary Avoid if (x != y) ..; else ..; 154–161
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 176
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 177
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 189
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 190
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 202
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 203

org/apache/turbine/modules/pages/JspPage.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 39–69
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 44
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 51
LocalVariableCouldBeFinal Local variable 'response' could be declared final 58
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 60
EmptyCatchBlock Avoid empty catch blocks 62–66

org/apache/turbine/modules/pages/TemplatePage.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 82–129
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 87
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 97
LocalVariableCouldBeFinal Local variable 'data' could be declared final 100
CloseResource Ensure that resources like this RunData object are closed after use 100
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 105
LocalVariableCouldBeFinal Local variable 'template' could be declared final 110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 110
LocalVariableCouldBeFinal Local variable 'layoutTemplate' could be declared final 113–114
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 115
LocalVariableCouldBeFinal Local variable 'screen' could be declared final 117
LocalVariableCouldBeFinal Local variable 'errMsg' could be declared final 121–122

org/apache/turbine/modules/pages/VelocityPage.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 39–74
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 44
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 54
CloseResource Ensure that resources like this RunData object are closed after use 57
LocalVariableCouldBeFinal Local variable 'data' could be declared final 57
LocalVariableCouldBeFinal Local variable 'context' could be declared final 58
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 59–60
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 59–60
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 68
LocalVariableCouldBeFinal Local variable 'context' could be declared final 71

org/apache/turbine/modules/screens/BaseJspScreen.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 39–96
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 51
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 61
CloseResource Ensure that resources like this RunData object are closed after use 64
LocalVariableCouldBeFinal Local variable 'data' could be declared final 64
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 65
LocalVariableCouldBeFinal Local variable 'screenTemplate' could be declared final 65
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 65
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 67–68
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 91

org/apache/turbine/modules/screens/JSONScreen.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 82–143
LongVariable Avoid excessively long variable names like JSONRPC_CONTENT_TYPE 84
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 90
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 96
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 109
LocalVariableCouldBeFinal Local variable 'data' could be declared final 111
CloseResource Ensure that resources like this RunData object are closed after use 111
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 112
LocalVariableCouldBeFinal Local variable 'request' could be declared final 113
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 113
LocalVariableCouldBeFinal Local variable 'charset' could be declared final 116
ShortVariable Avoid variables with short names like in 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 117
CloseResource Ensure that resources like this InputStreamReader object are closed after use 117
LocalVariableCouldBeFinal Local variable 'in' could be declared final 117
LocalVariableCouldBeFinal Local variable 'cdata' could be declared final 120
LocalVariableCouldBeFinal Local variable 'buf' could be declared final 121
AssignmentInOperand Avoid assignments in operands 123
LocalVariableCouldBeFinal Local variable 'json_bridge' could be declared final 130
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 130
LocalVariableCouldBeFinal Local variable 'json_res' could be declared final 133
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 137

org/apache/turbine/modules/screens/JSONSecureScreen.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 77–104
AtLeastOneConstructor Each class should declare at least one constructor 77–104
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 87
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 103

org/apache/turbine/modules/screens/JspErrorScreen.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 34–50
ImmutableField Private field 'templateError' could be made final; it is only initialized in the declaration or constructor. 38
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 38
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 45

org/apache/turbine/modules/screens/LegacyVelocityScreen.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 33–65
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 45
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 45
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 46
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 59
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 60

org/apache/turbine/modules/screens/LegacyVelocitySecureScreen.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 34–77
AtLeastOneConstructor Each class should declare at least one constructor 34–77
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 56
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 76

org/apache/turbine/modules/screens/PlainJSONScreen.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 72–118
DefaultPackage Use explicit scoping instead of the default package private level 78
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the log field if you want a default access modifier 78
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 88
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 101
LocalVariableCouldBeFinal Local variable 'data' could be declared final 103
CloseResource Ensure that resources like this RunData object are closed after use 103
LocalVariableCouldBeFinal Local variable 'charset' could be declared final 105
LocalVariableCouldBeFinal Local variable 'json_res' could be declared final 107
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 107
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 112
StringToString Avoid calling toString() on String objects; this is unnecessary. 114

org/apache/turbine/modules/screens/PlainJSONSecureAnnotatedScreen.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 32–73
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 43
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 60
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 60
CloseResource Ensure that resources like this RunData object are closed after use 61
LocalVariableCouldBeFinal Local variable 'data' could be declared final 61
LocalVariableCouldBeFinal Local variable 'methods' could be declared final 62
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 62
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 64–71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 64–71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 64–71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 64–71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 64–71
LiteralsFirstInComparisons Position literals first in String comparisons 65

org/apache/turbine/modules/screens/RawScreen.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 45–96
AbstractNaming Abstract classes should be named AbstractXXX 45–96
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 56
CloseResource Ensure that resources like this RunData object are closed after use 59
LocalVariableCouldBeFinal Local variable 'data' could be declared final 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 60
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 60
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 61
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 83
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 92

org/apache/turbine/modules/screens/TemplateScreen.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 52–204
AtLeastOneConstructor Each class should declare at least one constructor 52–204
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 59
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 63
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 72
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 83
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 92
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 106
UnusedAssignment The initializer for variable 'out' is never used (overwritten on line 114) 109
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 135
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 135
LocalVariableCouldBeFinal Local variable 'data' could be declared final 137
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 138
LocalVariableCouldBeFinal Local variable 'ti' could be declared final 138
ShortVariable Avoid variables with short names like ti 138
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 139
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 139
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 141
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 148
EmptyCatchBlock Avoid empty catch blocks 148–151
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 173
MethodArgumentCouldBeFinal Parameter 'screen' is not assigned and could be declared final 173
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 173
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 174
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 199
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 199
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 200

org/apache/turbine/modules/screens/VelocityCachedScreen.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 39–84
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 50
LocalVariableCouldBeFinal Local variable 'data' could be declared final 53
CloseResource Ensure that resources like this RunData object are closed after use 53
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 54
LocalVariableCouldBeFinal Local variable 'context' could be declared final 54
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 56
LocalVariableCouldBeFinal Local variable 'screenTemplate' could be declared final 56
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 56
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 57–58
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 71

org/apache/turbine/modules/screens/VelocityDirectScreen.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 40–89
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 51
CloseResource Ensure that resources like this RunData object are closed after use 54
LocalVariableCouldBeFinal Local variable 'data' could be declared final 54
LocalVariableCouldBeFinal Local variable 'context' could be declared final 55
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 55
LocalVariableCouldBeFinal Local variable 'screenTemplate' could be declared final 57
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 57
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 57
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 58–59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 72
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 75
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 84

org/apache/turbine/modules/screens/VelocityErrorScreen.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 36–58
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 47
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 47
LocalVariableCouldBeFinal Local variable 'data' could be declared final 50
CloseResource Ensure that resources like this RunData object are closed after use 50
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 52
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 52
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 54

org/apache/turbine/modules/screens/VelocityScreen.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 48–152
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 56
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 60
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 63
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 74
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 75
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 76
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 90
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 104
LocalVariableCouldBeFinal Local variable 'data' could be declared final 107
CloseResource Ensure that resources like this RunData object are closed after use 107
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 108
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 110
LocalVariableCouldBeFinal Local variable 'context' could be declared final 110
LocalVariableCouldBeFinal Local variable 'screenTemplate' could be declared final 112
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 112
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 112
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 113–114
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 131
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 139

org/apache/turbine/modules/screens/VelocitySecureScreen.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 41–85
AtLeastOneConstructor Each class should declare at least one constructor 41–85
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 64
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 84

org/apache/turbine/modules/screens/error/InvalidState.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 46–86
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 55
LocalVariableCouldBeFinal Local variable 'data' could be declared final 58
CloseResource Ensure that resources like this RunData object are closed after use 58
LocalVariableCouldBeFinal Local variable 'body' could be declared final 59
LocalVariableCouldBeFinal Local variable 'message' could be declared final 62
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 67 characters appended. 62
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 170 characters appended. 63
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 63
ShortVariable Avoid variables with short names like sb 63
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 7 consecutive times with literals. Use a single append with a single combined String. 64
ShortVariable Avoid variables with short names like pp 73
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 74
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 74
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 75
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 77
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 77
LocalVariableCouldBeFinal Local variable 'back' could be declared final 77
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 79
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 79
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 82

org/apache/turbine/om/OMTool.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 41
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 49
ImmutableField Private field 'pullMap' could be made final; it is only initialized in the declaration or constructor. 49
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 56
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 62
LocalVariableCouldBeFinal Local variable 'className' could be declared final 65
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 75
DefaultPackage Use explicit scoping instead of the default package private level 95
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the omName field if you want a default access modifier 95
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 95
MethodArgumentCouldBeFinal Parameter 'omName' is not assigned and could be declared final 97
LinguisticNaming Linguistics Antipattern - The setter 'setKey' should not return any type except void linguistically 102–119
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 102
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 103
ShortVariable Avoid variables with short names like om 105
UnusedAssignment The initializer for variable 'om' is never used (overwritten on lines 110 and 114) 105
LocalVariableCouldBeFinal Local variable 'inputKey' could be declared final 106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 114
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 128
MethodArgumentCouldBeFinal Parameter 'omName' is not assigned and could be declared final 128
ShortVariable Avoid variables with short names like ph 130
LocalVariableCouldBeFinal Local variable 'ph' could be declared final 130
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 133
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 146
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 146
MethodArgumentCouldBeFinal Parameter 'omName' is not assigned and could be declared final 146
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 148
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 153
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 153

org/apache/turbine/om/Retrievable.java

Rule Violation Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 52

org/apache/turbine/om/Retriever.java

Rule Violation Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 44

org/apache/turbine/om/RetrieverFactory.java

Rule Violation Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 43

org/apache/turbine/om/security/DefaultUserImpl.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 1–758
GodClass Possible God Class (WMC=67, ATFD=31, TCC=15.137%) 44–758
RedundantFieldInitializer Avoid using redundant field initializer for 'lastAccessDate' 50
RedundantFieldInitializer Avoid using redundant field initializer for 'permStorage' 53
UnusedAssignment The field initializer for 'tempStorage' is never used (overwritten on line 71) 56
RedundantFieldInitializer Avoid using redundant field initializer for 'tempStorage' 56
RedundantFieldInitializer Avoid using redundant field initializer for 'userDelegate' 59
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 66
MethodArgumentCouldBeFinal Parameter 'hsbe' is not assigned and could be declared final 82
MethodArgumentCouldBeFinal Parameter 'hsbe' is not assigned and could be declared final 94
LocalVariableCouldBeFinal Local variable 'securityService' could be declared final 100–102
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 101–102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 103
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 106
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 135
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 158
ShortVariable Avoid variables with short names like id 158
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 189
MethodArgumentCouldBeFinal Parameter 'firstName' is not assigned and could be declared final 211
MethodArgumentCouldBeFinal Parameter 'lastName' is not assigned and could be declared final 233
MethodArgumentCouldBeFinal Parameter 'address' is not assigned and could be declared final 255
MethodArgumentCouldBeFinal Parameter 'objectdata' is not assigned and could be declared final 280
MethodArgumentCouldBeFinal Parameter 'userGroupRoleSet' is not assigned and could be declared final 305
MethodArgumentCouldBeFinal Parameter 'userGroupRole' is not assigned and could be declared final 319
MethodArgumentCouldBeFinal Parameter 'userGroupRole' is not assigned and could be declared final 333
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 348
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 350
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 366
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 368
MethodArgumentCouldBeFinal Parameter 'cnt' is not assigned and could be declared final 399
MethodArgumentCouldBeFinal Parameter 'cnt' is not assigned and could be declared final 411
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 449–467
LocalVariableCouldBeFinal Local variable 'objectdata' could be declared final 453
MethodArgumentCouldBeFinal Parameter 'permStorage' is not assigned and could be declared final 476
MethodArgumentCouldBeFinal Parameter 'tempStorage' is not assigned and could be declared final 507
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 522
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 524
MethodArgumentCouldBeFinal Parameter 'def' is not assigned and could be declared final 536
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 536
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 540
LocalVariableCouldBeFinal Local variable 'val' could be declared final 540
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 541
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 543
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 556
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 556
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 558
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 568
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 570
MethodArgumentCouldBeFinal Parameter 'def' is not assigned and could be declared final 582
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 582
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 587
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 593
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 607
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 607
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 609
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 619
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 621
MethodArgumentCouldBeFinal Parameter 'confirm' is not assigned and could be declared final 641
MethodArgumentCouldBeFinal Parameter 'createDate' is not assigned and could be declared final 663
MethodArgumentCouldBeFinal Parameter 'lastLogin' is not assigned and could be declared final 685
LocalVariableCouldBeFinal Local variable 'loggedIn' could be declared final 698
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 699
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 709
LocalVariableCouldBeFinal Local variable 'value' could be declared final 725
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 726
MethodArgumentCouldBeFinal Parameter 'userDelegate' is not assigned and could be declared final 754

org/apache/turbine/om/security/User.java

Rule Violation Line
LongVariable Avoid excessively long variable names like SESSION_ACCESS_COUNTER 60
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 288

org/apache/turbine/pipeline/CleanUpValve.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 49–52
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 58
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 58
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 65
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 79
CloseResource Ensure that resources like this RunData object are closed after use 81
LocalVariableCouldBeFinal Local variable 'data' could be declared final 81
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 84
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 88–89
LongVariable Avoid excessively long variable names like invalidatedSession 91
EmptyCatchBlock Avoid empty catch blocks 91–95

org/apache/turbine/pipeline/DefaultACLCreationValve.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 41–75
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 46
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 49
LongVariable Avoid excessively long variable names like actionAccessController 49
ImmutableField Private field 'actionAccessController' could be made final; it is only initialized in the declaration or constructor. 49
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 55
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 55
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 67

org/apache/turbine/pipeline/DefaultLoginValve.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 50–166
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 58
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 61
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 67
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 67
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 74
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 91
CognitiveComplexity The method 'process(PipelineData)' has a cognitive complexity of 21, current threshold is 15 91–148
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 92
CloseResource Ensure that resources like this RunData object are closed after use 94
LocalVariableCouldBeFinal Local variable 'data' could be declared final 94
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 100
LocalVariableCouldBeFinal Local variable 'actionName' could be declared final 100
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 101
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 103
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 118
LocalVariableCouldBeFinal Local variable 'names' could be declared final 118
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 119–141
LocalVariableCouldBeFinal Local variable 'nameList' could be declared final 123
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 124
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 126
LocalVariableCouldBeFinal Local variable 'session' could be declared final 129
LocalVariableCouldBeFinal Local variable 'name' could be declared final 130
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 134
LongVariable Avoid excessively long variable names like invalidatedSession 136
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 155
ShortVariable Avoid variables with short names like ti 160
LocalVariableCouldBeFinal Local variable 'ti' could be declared final 160

org/apache/turbine/pipeline/DefaultPipelineData.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 44–104
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 46
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 46
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 56
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 56
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 82
MethodArgumentCouldBeFinal Parameter 'innerKey' is not assigned and could be declared final 82
LocalVariableCouldBeFinal Local variable 'innerMap' could be declared final 84
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) 89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 98
LocalVariableCouldBeFinal Local variable 'rds' could be declared final 98

org/apache/turbine/pipeline/DefaultSessionTimeoutValve.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 43–67
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 47
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 53
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 53
CloseResource Ensure that resources like this RunData object are closed after use 56
LocalVariableCouldBeFinal Local variable 'runData' could be declared final 56
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 61

org/apache/turbine/pipeline/DefaultSessionValidationValve.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 41–78
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 46
ImmutableField Private field 'actionSessionValidator' could be made final; it is only initialized in the declaration or constructor. 49
LongVariable Avoid excessively long variable names like actionSessionValidator 49
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 49
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 55
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 55
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 70

org/apache/turbine/pipeline/DefaultSetEncodingValve.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 47–92
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 56
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 56
LocalVariableCouldBeFinal Local variable 'req' could be declared final 59
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 63
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 87

org/apache/turbine/pipeline/DetermineActionValve.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 40–75
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 50
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 50
LocalVariableCouldBeFinal Local variable 'data' could be declared final 53
CloseResource Ensure that resources like this RunData object are closed after use 53
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 54
LocalVariableCouldBeFinal Local variable 'action' could be declared final 56–57
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 57
ConfusingTernary Avoid if (x != y) ..; else ..; 59–67

org/apache/turbine/pipeline/DetermineRedirectRequestedValve.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 48–51
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 57
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 57
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 73
LocalVariableCouldBeFinal Local variable 'data' could be declared final 76
CloseResource Ensure that resources like this RunData object are closed after use 76
LocalVariableCouldBeFinal Local variable 'requestRedirected' could be declared final 78
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 78
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 81
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 87

org/apache/turbine/pipeline/DetermineTargetValve.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 44–77
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 53
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 53
LocalVariableCouldBeFinal Local variable 'runData' could be declared final 56
CloseResource Ensure that resources like this RunData object are closed after use 56
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 57
LocalVariableCouldBeFinal Local variable 'target' could be declared final 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 59
ConfusingTernary Avoid if (x != y) ..; else ..; 61–69

org/apache/turbine/pipeline/ExecutePageValve.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 43–120
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 48
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 52
ImmutableField Private field 'pageDefault' could be made final; it is only initialized in the declaration or constructor. 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 55
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 61
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 61
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 68
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 84
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 85

org/apache/turbine/pipeline/Pipeline.java

Rule Violation Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 60

org/apache/turbine/pipeline/TurbinePipeline.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 48–184
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 71
ImmutableField Private field 'state' could be made final; it is only initialized in the declaration or constructor. 71
LocalVariableCouldBeFinal Local variable 'v' could be declared final 84
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 97
MethodArgumentCouldBeFinal Parameter 'valve' is not assigned and could be declared final 116
MethodArgumentCouldBeFinal Parameter 'valves' is not assigned and could be declared final 139
MethodArgumentCouldBeFinal Parameter 'valve' is not assigned and could be declared final 148
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 157
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 161
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 171
LocalVariableCouldBeFinal Local variable 'current' could be declared final 175
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 181

org/apache/turbine/pipeline/Valve.java

Rule Violation Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 100

org/apache/turbine/pipeline/XmlValve.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 34–58
MethodArgumentCouldBeFinal Parameter 'clazz' is not assigned and could be declared final 54

org/apache/turbine/pipeline/XmlValveAdapter.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 29–52
MethodArgumentCouldBeFinal Parameter 'xmlValve' is not assigned and could be declared final 35
LocalVariableCouldBeFinal Local variable 'valveClass' could be declared final 37
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 38
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 38
MethodArgumentCouldBeFinal Parameter 'valve' is not assigned and could be declared final 45
LocalVariableCouldBeFinal Local variable 'xmlValve' could be declared final 47
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 48

org/apache/turbine/services/BaseInitable.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 41
RedundantFieldInitializer Avoid using redundant field initializer for 'isInitialized' 41
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 50–53
MethodArgumentCouldBeFinal Parameter 'broker' is not assigned and could be declared final 61
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 88
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 137

org/apache/turbine/services/BaseInitableBroker.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 59–278
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 63
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 63
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 63
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 70
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 73
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 96
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 96
LocalVariableCouldBeFinal Local variable 'pos' could be declared final 102
LocalVariableCouldBeFinal Local variable 'msg' could be declared final 105–106
LocalVariableCouldBeFinal Local variable 'instance' could be declared final 118
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 119
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 122
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 143
LocalVariableCouldBeFinal Local variable 'initable' could be declared final 147
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 148
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 150
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 176
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 177
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 227
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 228
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 236
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 236
AvoidRethrowingException A catch statement that catches an exception only to rethrow it should be avoided. 239–242
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 243–269
UnusedAssignment The initializer for variable 'msg' is never used (overwritten on lines 250, 255, 260 and 265) 246
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 248
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 253
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 258

org/apache/turbine/services/BaseService.java

Rule Violation Line
DataClass The class 'BaseService' is suspected to be a Data Class (WOC=16.667%, NOPA=0, NOAM=5, WMC=8) 37–125
AtLeastOneConstructor Each class should declare at least one constructor 37–125
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 45
MethodArgumentCouldBeFinal Parameter 'broker' is not assigned and could be declared final 58
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 69
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 116
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 121

org/apache/turbine/services/BaseUnicastRemoteService.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 45
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 46
CallSuperInConstructor It is a good practice to call super() in a constructor 55–62
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 59
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 60
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 61
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 74
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 80
MethodArgumentCouldBeFinal Parameter 'broker' is not assigned and could be declared final 87
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 102
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 114
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 141
MethodArgumentCouldBeFinal Parameter 'broker' is not assigned and could be declared final 162

org/apache/turbine/services/FieldAnnotatedTurbineBaseService.java

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

org/apache/turbine/services/InitableBroker.java

Rule Violation Line
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 97

org/apache/turbine/services/InitializationException.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 47
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 60
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 60
ShortVariable Avoid variables with short names like t 60

org/apache/turbine/services/InstantiationException.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 51
ShortVariable Avoid variables with short names like t 63
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 63
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 63

org/apache/turbine/services/MethodAnnotatedTurbineBaseService.java

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

org/apache/turbine/services/ServiceBroker.java

Rule Violation Line
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 95

org/apache/turbine/services/ServiceManager.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'setServiceObject': the method is declared in an interface type 79
UnnecessaryModifier Unnecessary modifier 'public' on method 'getServiceObject': the method is declared in an interface type 87

org/apache/turbine/services/TurbineBaseService.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 59–124
AtLeastOneConstructor Each class should declare at least one constructor 59–124
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 72
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 92

org/apache/turbine/services/TurbineServiceProvider.java

Rule Violation Line
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 42

org/apache/turbine/services/TurbineServices.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'manager' is not assigned and could be declared final 67
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 67–75
LocalVariableCouldBeFinal Local variable 'previous' could be declared final 69

org/apache/turbine/services/assemblerbroker/TurbineAssemblerBrokerService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 55–306
RedundantFieldInitializer Avoid using redundant field initializer for 'factories' 64
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 64
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 67
RedundantFieldInitializer Avoid using redundant field initializer for 'assemblerCache' 67
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 70
RedundantFieldInitializer Avoid using redundant field initializer for 'loaderCache' 70
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 73
AvoidDuplicateLiterals The String literal "unchecked" appears 4 times in this file; the first occurrence is on line 84 84
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 85
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 103
LocalVariableCouldBeFinal Local variable 'names' could be declared final 103
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 105
LocalVariableCouldBeFinal Local variable 'name2' could be declared final 107
LocalVariableCouldBeFinal Local variable 'factory' could be declared final 109
LocalVariableCouldBeFinal Local variable 'af' could be declared final 113–114
ShortVariable Avoid variables with short names like af 113
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 114
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 114
AvoidRethrowingException A catch statement that catches an exception only to rethrow it should be avoided. 118–121
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 124–128
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 146
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 148
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 148–156
LocalVariableCouldBeFinal Local variable 'i' could be declared final 148
LocalVariableCouldBeFinal Local variable 'type' could be declared final 150
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 152
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 164–166
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 170–172
LocalVariableCouldBeFinal Local variable 'cacheSize' could be declared final 170–172
MethodArgumentCouldBeFinal Parameter 'factory' is not assigned and could be declared final 190
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 192
CognitiveComplexity The method 'getAssembler(Class, String)' has a cognitive complexity of 21, current threshold is 15 211–260
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 211
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 211
CyclomaticComplexity The method 'getAssembler(Class, String)' has a cyclomatic complexity of 10. 211–260
LocalVariableCouldBeFinal Local variable 'key' could be declared final 214
LocalVariableCouldBeFinal Local variable 'facs' could be declared final 225
LocalVariableCouldBeFinal Local variable 'it' could be declared final 227
LocalVariableCouldBeFinal Local variable 'fac' could be declared final 229
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 233
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 235
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 240
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 240
LocalVariableCouldBeFinal Local variable 'oldAssembler' could be declared final 249
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 250–253
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 273
LocalVariableCouldBeFinal Local variable 'facs' could be declared final 285
LocalVariableCouldBeFinal Local variable 'it' could be declared final 287
LocalVariableCouldBeFinal Local variable 'fac' could be declared final 289
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 290

org/apache/turbine/services/assemblerbroker/util/java/JavaActionFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 46

org/apache/turbine/services/assemblerbroker/util/java/JavaBaseFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 44–144
AbstractNaming Abstract classes should be named AbstractXXX 44–144
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 51
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 57
CognitiveComplexity The method 'getAssembler(String, String)' has a cognitive complexity of 19, current threshold is 15 67–124
MethodArgumentCouldBeFinal Parameter 'packageName' is not assigned and could be declared final 67
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 67
LocalVariableCouldBeFinal Local variable 'p' could be declared final 75
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 77
ShortVariable Avoid variables with short names like sb 77
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 77
LocalVariableCouldBeFinal Local variable 'className' could be declared final 80
LocalVariableCouldBeFinal Local variable '_servClass' could be declared final 90
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 91–94
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 96
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 96
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 142

org/apache/turbine/services/assemblerbroker/util/java/JavaLayoutFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 46

org/apache/turbine/services/assemblerbroker/util/java/JavaNavigationFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 46

org/apache/turbine/services/assemblerbroker/util/java/JavaPageFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 46

org/apache/turbine/services/assemblerbroker/util/java/JavaScheduledJobFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 46

org/apache/turbine/services/assemblerbroker/util/java/JavaScreenFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 46

org/apache/turbine/services/assemblerbroker/util/python/PythonActionFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38–76
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 49

org/apache/turbine/services/assemblerbroker/util/python/PythonBaseFactory.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 48–177
AtLeastOneConstructor Each class should declare at least one constructor 48–177
LongVariable Avoid excessively long variable names like PYTHON_CONFIG_FILE 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 61
MethodArgumentCouldBeFinal Parameter 'subDirectory' is not assigned and could be declared final 71
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 71
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 72
LocalVariableCouldBeFinal Local variable 'path' could be declared final 74
LocalVariableCouldBeFinal Local variable 'confName' could be declared final 86
LocalVariableCouldBeFinal Local variable 'fName' could be declared final 89
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 91
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 92
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 92
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 93
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 94
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 94
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 95
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 95
LocalVariableCouldBeFinal Local variable 'f' could be declared final 98
ShortVariable Avoid variables with short names like f 98
UseProperClassLoader In J2EE, getClassLoader() might not work as expected. Use Thread.currentThread().getContextClassLoader() instead. 112
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 112
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 130–139
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 132–138
ShortVariable Avoid variables with short names like t 143
LocalVariableCouldBeFinal Local variable 't' could be declared final 143
ExceptionAsFlowControl Avoid using exceptions as flow control. 146
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 146
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 175

org/apache/turbine/services/assemblerbroker/util/python/PythonLayoutFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38–76
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 49

org/apache/turbine/services/assemblerbroker/util/python/PythonNavigationFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38–76
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 49

org/apache/turbine/services/assemblerbroker/util/python/PythonPageFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38–76
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 49

org/apache/turbine/services/assemblerbroker/util/python/PythonScreenFactory.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38–76
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 49

org/apache/turbine/services/avaloncomponent/AvalonComponentService.java

Rule Violation Line
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 37
LongVariable Avoid excessively long variable names like AVALON_LOG_CATEGORY 40
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 40
LongVariable Avoid excessively long variable names like COMPONENT_CONFIG_KEY 43
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 43
LongVariable Avoid excessively long variable names like COMPONENT_CONFIG_VALUE 46
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 46
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 49
LongVariable Avoid excessively long variable names like COMPONENT_ROLE_KEY 49
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 52
LongVariable Avoid excessively long variable names like COMPONENT_ROLE_VALUE 52
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 55
LongVariable Avoid excessively long variable names like COMPONENT_LOOKUP_KEY 55
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 58
LongVariable Avoid excessively long variable names like COMPONENT_APP_ROOT 58

org/apache/turbine/services/avaloncomponent/TurbineYaafiComponentService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 44–294
LongVariable Avoid excessively long variable names like CONTAINER_CONFIGURATION_KEY 52
LongVariable Avoid excessively long variable names like CONTAINER_CONFIGURATION_VALUE 55
LongVariable Avoid excessively long variable names like COMPONENT_PARAMETERS_KEY 58
LongVariable Avoid excessively long variable names like COMPONENT_PARAMETERS_VALUE 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 64
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 81
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 114
LocalVariableCouldBeFinal Local variable 'home' could be declared final 117
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 117
LocalVariableCouldBeFinal Local variable 'config' could be declared final 121–122
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 132
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 148
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 159
MethodArgumentCouldBeFinal Parameter 'component' is not assigned and could be declared final 170
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 179
MethodArgumentCouldBeFinal Parameter 'applicationRoot' is not assigned and could be declared final 193
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 193
LocalVariableCouldBeFinal Local variable 'result' could be declared final 196
LongVariable Avoid excessively long variable names like containerConfiguration 207
LocalVariableCouldBeFinal Local variable 'containerConfiguration' could be declared final 207–209
LongVariable Avoid excessively long variable names like roleConfigurationFileName 217
LocalVariableCouldBeFinal Local variable 'roleConfigurationFileName' could be declared final 217–220
LongVariable Avoid excessively long variable names like componentConfigurationFileName 224
LocalVariableCouldBeFinal Local variable 'componentConfigurationFileName' could be declared final 224–227
LongVariable Avoid excessively long variable names like parametersFileName 231
LocalVariableCouldBeFinal Local variable 'parametersFileName' could be declared final 231–234
LocalVariableCouldBeFinal Local variable 'containerConfiguration' could be declared final 244–247
LongVariable Avoid excessively long variable names like containerConfiguration 244
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 272
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 281
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 281
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 287–292
LocalVariableCouldBeFinal Local variable 'msg' could be declared final 289

org/apache/turbine/services/intake/IntakeTool.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 54–551
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 65
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 65
RedundantFieldInitializer Avoid using redundant field initializer for 'groups' 65
ShortVariable Avoid variables with short names like pp 68
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 68
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 70
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 70
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 71
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 71
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 72
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 72
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 75
RedundantFieldInitializer Avoid using redundant field initializer for 'pullMap' 75
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 81
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 86–88
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 94
LocalVariableCouldBeFinal Local variable 'groupNames' could be declared final 98
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 109
LocalVariableCouldBeFinal Local variable 'groupKeys' could be declared final 115
UnusedAssignment The initializer for variable 'groupNames' is never used (overwritten on lines 119 and 123) 116
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 134–135
LocalVariableCouldBeFinal Local variable 'foundGroups' could be declared final 134–135
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 139–140
ShortVariable Avoid variables with short names like vp 155
MethodArgumentCouldBeFinal Parameter 'vp' is not assigned and could be declared final 155
LocalVariableCouldBeFinal Local variable 'group' could be declared final 157
LocalVariableCouldBeFinal Local variable 'group' could be declared final 183
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 197
MethodArgumentCouldBeFinal Parameter 'sb' is not assigned and could be declared final 210
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 210
ShortVariable Avoid variables with short names like sb 210
LocalVariableCouldBeFinal Local variable 'group' could be declared final 230
DefaultPackage Use explicit scoping instead of the default package private level 252
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 252
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the groupName field if you want a default access modifier 252
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 259
LinguisticNaming Linguistics Antipattern - The setter 'setKey' should not return any type except void linguistically 283–287
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 283
MethodArgumentCouldBeFinal Parameter 'create' is not assigned and could be declared final 297
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 297
LinguisticNaming Linguistics Antipattern - The setter 'setKey' should not return any type except void linguistically 297–315
ShortVariable Avoid variables with short names like g 300
LocalVariableCouldBeFinal Local variable 'inputKey' could be declared final 302
MethodArgumentCouldBeFinal Parameter 'obj' is not assigned and could be declared final 323
ShortVariable Avoid variables with short names like g 325
UnusedAssignment The initializer for variable 'g' is never used (overwritten on lines 333 and 337) 325
LocalVariableCouldBeFinal Local variable 'inputKey' could be declared final 329–330
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 341
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 357
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 370
MethodArgumentCouldBeFinal Parameter 'throwExceptions' is not assigned and could be declared final 370
LocalVariableCouldBeFinal Local variable 'group' could be declared final 384
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 398
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 398
MethodArgumentCouldBeFinal Parameter 'create' is not assigned and could be declared final 413
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 413
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 413
LocalVariableCouldBeFinal Local variable 'ph' could be declared final 425
ShortVariable Avoid variables with short names like ph 425
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 426
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 435
LocalVariableCouldBeFinal Local variable 'groupKeys' could be declared final 442
LocalVariableCouldBeFinal Local variable 'groupKey' could be declared final 448
LocalVariableCouldBeFinal Local variable 'allGroups' could be declared final 475
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 475
LocalVariableCouldBeFinal Local variable 'group' could be declared final 478
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 495
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 495
LocalVariableCouldBeFinal Local variable 'group' could be declared final 521
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 536

org/apache/turbine/services/jsonrpc/JSONProcessor.java

Rule Violation Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 40–87
MethodArgumentCouldBeFinal Parameter 'json_bridge' is not assigned and could be declared final 51
MethodArgumentCouldBeFinal Parameter 'request' is not assigned and could be declared final 51
MethodArgumentCouldBeFinal Parameter 'cdata' is not assigned and could be declared final 51
UnusedAssignment The initializer for variable 'json_req' is never used (overwritten on line 58) 54
UnusedAssignment The initializer for variable 'json_res' is never used (overwritten on lines 75 and 80) 55
LocalVariableCouldBeFinal Local variable 'methodName' could be declared final 61
LocalVariableCouldBeFinal Local variable 'arguments' could be declared final 62
LocalVariableCouldBeFinal Local variable 'object_id' could be declared final 65
ShortVariable Avoid variables with short names like sb 66
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 66
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 69
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 71
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 71

org/apache/turbine/services/jsonrpc/TurbineJsonRpcService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 37–102
MethodArgumentCouldBeFinal Parameter 'cdata' is not assigned and could be declared final 45
MethodArgumentCouldBeFinal Parameter 'request' is not assigned and could be declared final 46
MethodArgumentCouldBeFinal Parameter 'json_bridge' is not assigned and could be declared final 46
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 52
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 52
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 54
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 58
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 58
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 58
LocalVariableCouldBeFinal Local variable 'json_bridge' could be declared final 60
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 61
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 65
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 77

org/apache/turbine/services/jsp/JspService.java

Rule Violation Line
LongVariable Avoid excessively long variable names like BUFFER_SIZE_DEFAULT 56

org/apache/turbine/services/jsp/TurbineJspService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 53–305
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 58
LongVariable Avoid excessively long variable names like relativeTemplatePaths 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 64
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 87
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 101
LocalVariableCouldBeFinal Local variable 'req' could be declared final 103
LocalVariableCouldBeFinal Local variable 'templateLink' could be declared final 110
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 113
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 114
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 138
MethodArgumentCouldBeFinal Parameter 'templateName' is not assigned and could be declared final 138
MethodArgumentCouldBeFinal Parameter 'isForward' is not assigned and could be declared final 138
LocalVariableCouldBeFinal Local variable 'data' could be declared final 146
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 146
LongVariable Avoid excessively long variable names like relativeTemplateName 149
LocalVariableCouldBeFinal Local variable 'relativeTemplateName' could be declared final 149
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 158–159
LocalVariableCouldBeFinal Local variable 'dispatcher' could be declared final 158–159
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 158–159
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 170
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 170
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 175
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 180–181
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 180–181
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 182
MethodArgumentCouldBeFinal Parameter 'templateName' is not assigned and could be declared final 205
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 205
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 215
LocalVariableCouldBeFinal Local variable 'config' could be declared final 217
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 221
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 232–233
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 244
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 246
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 258
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 258
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 273
LocalVariableCouldBeFinal Local variable 'relativeTemplate' could be declared final 275
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 284
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 296
SimplifyStartsWith This call to String.startsWith can be rewritten using String.charAt(0) 298
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 301

org/apache/turbine/services/jsp/util/JspNavigation.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 53
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 60
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 69
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 75
LocalVariableCouldBeFinal Local variable 'templateService' 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) 77
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 79
LocalVariableCouldBeFinal Local variable 'message' could be declared final 81–82
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 86
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 86
EmptyCatchBlock Avoid empty catch blocks 88–91

org/apache/turbine/services/jsp/util/JspScreenPlaceholder.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 57
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 64
LocalVariableCouldBeFinal Local variable 'abs' could be declared final 67–68
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 81
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 82
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 82
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 83
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 86
LocalVariableCouldBeFinal Local variable 'message' could be declared final 88–89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 93
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 93
EmptyCatchBlock Avoid empty catch blocks 95–98

org/apache/turbine/services/localization/DateTimeFormatterInterface.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on field 'DATE_TIME_FORMAT_KEY': the field is declared in an interface type 33
LongVariable Avoid excessively long variable names like DATE_TIME_FORMAT_KEY 33
LongVariable Avoid excessively long variable names like DATE_TIME_ZONEID_KEY 35
UnnecessaryModifier Unnecessary modifier 'final' on field 'DATE_TIME_ZONEID_KEY': the field is declared in an interface type 35
UnnecessaryModifier Unnecessary modifier 'final' on field 'USE_TURBINE_LOCALE_KEY': the field is declared in an interface type 37
LongVariable Avoid excessively long variable names like USE_TURBINE_LOCALE_KEY 37
LongVariable Avoid excessively long variable names like USE_REQUEST_LOCALE_KEY 39
UnnecessaryModifier Unnecessary modifier 'final' on field 'USE_REQUEST_LOCALE_KEY': the field is declared in an interface type 39
LongVariable Avoid excessively long variable names like DATE_TIME_FORMAT_DEFAULT 42
UnnecessaryModifier Unnecessary modifier 'final' on field 'DATE_TIME_FORMAT_DEFAULT': the field is declared in an interface type 42

org/apache/turbine/services/localization/DateTimeFormatterService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 48–257
RedundantFieldInitializer Avoid using redundant field initializer for 'formatPattern' 52
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 52
RedundantFieldInitializer Avoid using redundant field initializer for 'dateTimeFormat' 54
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 54
RedundantFieldInitializer Avoid using redundant field initializer for 'locale' 56
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 90–91
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 93–94
LocalVariableCouldBeFinal Local variable 'useTurbineLocale' could be declared final 93–94
LocalVariableCouldBeFinal Local variable 'localeSetter' could be declared final 96–98
LocalVariableCouldBeFinal Local variable 'zoneIdStr' could be declared final 101–102
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 101–102
LocalVariableCouldBeFinal Local variable 'zoneIdSet' could be declared final 103–104
ConfusingTernary Avoid if (x != y) ..; else ..; 103–104
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 107–108
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 107–108
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 117
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 123
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 123
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 129
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 129
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 129
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 135
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 135
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 135
MethodArgumentCouldBeFinal Parameter 'zoneId' is not assigned and could be declared final 136
UnusedAssignment The initializer for variable 'result' is never used (overwritten on lines 141 and 164) 137
ConfusingTernary Avoid if (x != y) ..; else ..; 147–153
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 149
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 152
ConfusingTernary Avoid if (x != y) ..; else ..; 154–160
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 156
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 159
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 164
MethodArgumentCouldBeFinal Parameter 'outgoingFormatPattern' is not assigned and could be declared final 175
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 175
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 175
LongVariable Avoid excessively long variable names like incomingFormatPattern 175
LongVariable Avoid excessively long variable names like outgoingFormatPattern 175
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 179
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 185
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 186
LocalVariableCouldBeFinal Local variable 'incomingFormat' could be declared final 188
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 199
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 199
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 204
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 210
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 211
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 218–219
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 219
MethodArgumentCouldBeFinal Parameter 'outgoingFormat' is not assigned and could be declared final 223
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 223
MethodArgumentCouldBeFinal Parameter 'incomingFormat' is not assigned and could be declared final 229
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 229
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 235
MethodArgumentCouldBeFinal Parameter 'outgoingFormat' is not assigned and could be declared final 235
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 235
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 244
MethodArgumentCouldBeFinal Parameter 'zoneId' is not assigned and could be declared final 253

org/apache/turbine/services/localization/LocalizationTool.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 46
LongVariable Avoid excessively long variable names like localizationService 46
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 52
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 75
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 79
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 109
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 122
MethodArgumentCouldBeFinal Parameter 'args' is not assigned and could be declared final 122
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 134
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 152

org/apache/turbine/services/localization/RundataLocalizationService.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 43–79
AtLeastOneConstructor Each class should declare at least one constructor 43–79
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 48
LocalVariableCouldBeFinal Local variable 'user' could be declared final 49
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 51
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 55
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 55
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 61
LocalVariableCouldBeFinal Local variable 'locale' could be declared final 61
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 64
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 69
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 72
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 74

org/apache/turbine/services/naming/TurbineNamingService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 50–171
RedundantFieldInitializer Avoid using redundant field initializer for 'contextPropsList' 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 64
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 64
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 81
LocalVariableCouldBeFinal Local variable 'contextKeys' could be declared final 86
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 86–113
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 86
LocalVariableCouldBeFinal Local variable 'key' could be declared final 89
LocalVariableCouldBeFinal Local variable 'end' could be declared final 90
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 90
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 90
LocalVariableCouldBeFinal Local variable 'contextName' could be declared final 97
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 97
UnusedAssignment The initializer for variable 'contextProps' is never used (overwritten on lines 102 and 106) 98
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 106
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 109–110
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 109
LocalVariableCouldBeFinal Local variable 'entry' could be declared final 115
LocalVariableCouldBeFinal Local variable 'key' could be declared final 117
LocalVariableCouldBeFinal Local variable 'contextProps' could be declared final 118
LocalVariableCouldBeFinal Local variable 'context' could be declared final 119
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 119
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 129–130
MethodArgumentCouldBeFinal Parameter 'contextName' is not assigned and could be declared final 146
UnusedAssignment The initializer for variable 'contextProps' is never used (overwritten on lines 154 and 158) 150
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 164
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 166

org/apache/turbine/services/pull/PullService.java

Rule Violation Line
LongVariable Avoid excessively long variable names like TOOL_RESOURCES_DIR_KEY 82
LongVariable Avoid excessively long variable names like TOOL_RESOURCES_DIR_DEFAULT 88
LongVariable Avoid excessively long variable names like TOOLS_PER_REQUEST_REFRESH_KEY 94
LongVariable Avoid excessively long variable names like TOOLS_PER_REQUEST_REFRESH_DEFAULT 97
LongVariable Avoid excessively long variable names like SESSION_TOOLS_ATTRIBUTE_PREFIX 100

org/apache/turbine/services/pull/tools/ContentTool.java

Rule Violation Line
LongVariable Avoid excessively long variable names like CONTENT_TOOL_PREFIX 54
LongVariable Avoid excessively long variable names like CONTENT_TOOL_ENCODING_KEY 62
LongVariable Avoid excessively long variable names like CONTENT_TOOL_ENCODING_DEFAULT 65
LongVariable Avoid excessively long variable names like CONTENT_TOOL_RELATIVE_KEY 68
LongVariable Avoid excessively long variable names like CONTENT_TOOL_RELATIVE_DEFAULT 71
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the wantEncoding field if you want a default access modifier 74
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 74
RedundantFieldInitializer Avoid using redundant field initializer for 'wantEncoding' 74
DefaultPackage Use explicit scoping instead of the default package private level 74
DefaultPackage Use explicit scoping instead of the default package private level 77
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 77
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the wantRelative field if you want a default access modifier 77
RedundantFieldInitializer Avoid using redundant field initializer for 'wantRelative' 77
RedundantFieldInitializer Avoid using redundant field initializer for 'dataURI' 80
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 80
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 85–88
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 107
LocalVariableCouldBeFinal Local variable 'pipelineData' could be declared final 114
CloseResource Ensure that resources like this PipelineData object are closed after use 114
LocalVariableCouldBeFinal Local variable 'runData' could be declared final 115
CloseResource Ensure that resources like this RunData object are closed after use 115
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 124–125
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 125
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 158
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 175
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 191

org/apache/turbine/services/pull/tools/TemplateLink.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 61–633
LongVariable Avoid excessively long variable names like TEMPLATE_LINK_PREFIX 63
LongVariable Avoid excessively long variable names like TEMPLATE_LINK_RELATIVE_KEY 66
LongVariable Avoid excessively long variable names like TEMPLATE_LINK_RELATIVE_DEFAULT 69
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 72
RedundantFieldInitializer Avoid using redundant field initializer for 'wantRelative' 72
LongVariable Avoid excessively long variable names like TEMPLATE_LINK_ENCODING_KEY 80
LongVariable Avoid excessively long variable names like TEMPLATE_LINK_ENCODING_DEFAULT 83
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the wantEncoding field if you want a default access modifier 86
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 86
RedundantFieldInitializer Avoid using redundant field initializer for 'wantEncoding' 86
DefaultPackage Use explicit scoping instead of the default package private level 86
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 89
RedundantFieldInitializer Avoid using redundant field initializer for 'template' 89
RedundantFieldInitializer Avoid using redundant field initializer for 'templateURI' 92
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 92
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 102–105
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 124
CloseResource Ensure that resources like this PipelineData object are closed after use 131
LocalVariableCouldBeFinal Local variable 'pipelineData' could be declared final 131
LocalVariableCouldBeFinal Local variable 'runData' could be declared final 132
CloseResource Ensure that resources like this RunData object are closed after use 132
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 140–141
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 141
LinguisticNaming Linguistics Antipattern - The setter 'setEncodeURLOff' should not return any type except void linguistically 184–188
LinguisticNaming Linguistics Antipattern - The setter 'setPage' should not return any type except void linguistically 196–202
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 196
LinguisticNaming Linguistics Antipattern - The setter 'setAction' should not return any type except void linguistically 224–229
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 224
MethodArgumentCouldBeFinal Parameter 'event' is not assigned and could be declared final 241
LinguisticNaming Linguistics Antipattern - The setter 'setActionEvent' should not return any type except void linguistically 241–246
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 241
LinguisticNaming Linguistics Antipattern - The setter 'setScreen' should not return any type except void linguistically 257–262
MethodArgumentCouldBeFinal Parameter 'screen' is not assigned and could be declared final 257
LinguisticNaming Linguistics Antipattern - The setter 'setReference' should not return any type except void linguistically 270–274
MethodArgumentCouldBeFinal Parameter 'reference' is not assigned and could be declared final 270
MethodArgumentCouldBeFinal Parameter 'pp' is not assigned and could be declared final 302
ShortVariable Avoid variables with short names like pp 302
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 315
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 315
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 328
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 328
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 341
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 341
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 354
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 354
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 367
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 367
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 380
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 380
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 393
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 393
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 406
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 406
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 419
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 419
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 432
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 432
ShortVariable Avoid variables with short names like pp 445
MethodArgumentCouldBeFinal Parameter 'pp' is not assigned and could be declared final 445
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 468
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 491
LocalVariableCouldBeFinal Local variable 'output' could be declared final 521
LocalVariableCouldBeFinal Local variable 'output' could be declared final 556

org/apache/turbine/services/pull/tools/UITool.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 65–390
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 78
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 84
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 132
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 160
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 174
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 188
MethodArgumentCouldBeFinal Parameter 'skin' is not assigned and could be declared final 206
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 206
MethodArgumentCouldBeFinal Parameter 'imageId' is not assigned and could be declared final 225
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 225
MethodArgumentCouldBeFinal Parameter 'imageId' is not assigned and could be declared final 243
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 243
MethodArgumentCouldBeFinal Parameter 'imageId' is not assigned and could be declared final 255
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 274
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 292
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 322
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 322
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 340
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 340
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 352
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 364
LocalVariableCouldBeFinal Local variable 'pipelineData' could be declared final 378
CloseResource Ensure that resources like this PipelineData object are closed after use 378
LocalVariableCouldBeFinal Local variable 'runData' could be declared final 379
CloseResource Ensure that resources like this RunData object are closed after use 379

org/apache/turbine/services/pull/util/DateFormatter.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38–119
LongVariable Avoid excessively long variable names like DATE_FORMAT_DEFAULT 42
RedundantFieldInitializer Avoid using redundant field initializer for 'dateFormat' 50
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 50
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 64
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 66–67
MethodArgumentCouldBeFinal Parameter 'theDate' is not assigned and could be declared final 90
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 103
MethodArgumentCouldBeFinal Parameter 'theDate' is not assigned and could be declared final 103
UnusedAssignment The initializer for variable 'result' is never used (overwritten on lines 110 and 115) 105
LocalVariableCouldBeFinal Local variable 'sdf' could be declared final 106

org/apache/turbine/services/pull/util/DateTimeFormatterTool.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 54–218
TooManyMethods This class has too many methods, consider refactoring it. 56–218
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 59
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 65
LongVariable Avoid excessively long variable names like localizationService 65
RedundantFieldInitializer Avoid using redundant field initializer for 'overrideFromRequestLocale' 69
SingularField Perhaps 'overrideFromRequestLocale' could be replaced by a local variable. 69
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 69
LongVariable Avoid excessively long variable names like overrideFromRequestLocale 69
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 93
LocalVariableCouldBeFinal Local variable 'serviceManager' could be declared final 99
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 103–104
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 135
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 140
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 151
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 153
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 153
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 157
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 157
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 159
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 163
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 163
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 163
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 165
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 169
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 169
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 169
MethodArgumentCouldBeFinal Parameter 'zoneId' is not assigned and could be declared final 170
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 171
LongVariable Avoid excessively long variable names like incomingFormatPattern 175
LongVariable Avoid excessively long variable names like outgoingFormatPattern 175
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 175
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 175
MethodArgumentCouldBeFinal Parameter 'outgoingFormatPattern' is not assigned and could be declared final 175
MethodArgumentCouldBeFinal Parameter 'incomingFormatPattern' is not assigned and could be declared final 175
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 177
MethodArgumentCouldBeFinal Parameter 'outgoingFormat' is not assigned and could be declared final 181
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 181
MethodArgumentCouldBeFinal Parameter 'incomingFormat' is not assigned and could be declared final 182
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 182
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 184
MethodArgumentCouldBeFinal Parameter 'outgoingFormat' is not assigned and could be declared final 188
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 188
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 190
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 190
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 194
MethodArgumentCouldBeFinal Parameter 'incomingFormat' is not assigned and could be declared final 194
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 196
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 196
MethodArgumentCouldBeFinal Parameter 'outgoingFormat' is not assigned and could be declared final 200
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 200
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 200
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 202
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 202
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 209
ConfusingTernary Avoid if (x != y) ..; else ..; 215
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 215

org/apache/turbine/services/pull/util/SessionData.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 39–118
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 42
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 50
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 73
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 84
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 96
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 96
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 116

org/apache/turbine/services/rundata/RunDataService.java

Rule Violation Line
LongVariable Avoid excessively long variable names like PARAMETER_PARSER_KEY 54

org/apache/turbine/services/rundata/TurbineRunDataService.java

Rule Violation Line
LongVariable Avoid excessively long variable names like DEFAULT_PARAMETER_PARSER 70
LongVariable Avoid excessively long variable names like DEFAULT_COOKIE_PARSER 74
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 78
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 81
RedundantFieldInitializer Avoid using redundant field initializer for 'pool' 84
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 84
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 87
RedundantFieldInitializer Avoid using redundant field initializer for 'parserService' 87
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 92–95
CyclomaticComplexity The method 'init()' has a cyclomatic complexity of 11. 103–168
CognitiveComplexity The method 'init()' has a cognitive complexity of 18, current threshold is 15 103–168
LocalVariableCouldBeFinal Local variable 'def' could be declared final 107–112
UseShortArrayInitializer Array initialization can be written shorter 107–112
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 116
LocalVariableCouldBeFinal Local variable 'plist' could be declared final 121–126
UseShortArrayInitializer Array initialization can be written shorter 121–126
LocalVariableCouldBeFinal Local variable 'i' could be declared final 127
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 127–148
ShortVariable Avoid variables with short names like j 131
LocalVariableCouldBeFinal Local variable 'plistKey' could be declared final 132
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 134
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 134
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 136
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 136
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 138–142
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 151
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 159
MethodArgumentCouldBeFinal Parameter 'req' is not assigned and could be declared final 192
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 193
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 194
CyclomaticComplexity The method 'getRunData(String, HttpServletRequest, HttpServletResponse, ServletConfig)' has a cyclomatic complexity of 12. 213–287
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 213
MethodArgumentCouldBeFinal Parameter 'req' is not assigned and could be declared final 214
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 215
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 216
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 218
LocalVariableCouldBeFinal Local variable 'cfg' could be declared final 233
LocalVariableCouldBeFinal Local variable 'runDataClazz' could be declared final 242
LocalVariableCouldBeFinal Local variable 'parameterParserClazz' could be declared final 243
LongVariable Avoid excessively long variable names like parameterParserClazz 243
LocalVariableCouldBeFinal Local variable 'cookieParserClazz' could be declared final 244
ShortVariable Avoid variables with short names like pp 248
LocalVariableCouldBeFinal Local variable 'pp' could be declared final 248
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 249
ShortVariable Avoid variables with short names like cp 252
LocalVariableCouldBeFinal Local variable 'cp' could be declared final 252
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 253
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 276
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 276
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 277
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 277
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 280
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 280
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 281
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 281
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 296
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 303
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 312
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 312

org/apache/turbine/services/schedule/AbstractJobEntry.java

Rule Violation Line
ModifiedCyclomaticComplexity The class 'AbstractJobEntry' has a Modified Cyclomatic Complexity of 2 (Highest = 10). 35–478
StdCyclomaticComplexity The class 'AbstractJobEntry' has a Standard Cyclomatic Complexity of 2 (Highest = 10). 35–478
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 41
RedundantFieldInitializer Avoid using redundant field initializer for 'jobIsActive' 41
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 44
RedundantFieldInitializer Avoid using redundant field initializer for 'runtime' 44
MethodArgumentCouldBeFinal Parameter 'sec' is not assigned and could be declared final 94
MethodArgumentCouldBeFinal Parameter 'min' is not assigned and could be declared final 95
MethodArgumentCouldBeFinal Parameter 'hour' is not assigned and could be declared final 96
MethodArgumentCouldBeFinal Parameter 'wd' is not assigned and could be declared final 97
ShortVariable Avoid variables with short names like wd 97
MethodArgumentCouldBeFinal Parameter 'day_mo' is not assigned and could be declared final 98
MethodArgumentCouldBeFinal Parameter 'task' is not assigned and could be declared final 99
ShortVariable Avoid variables with short names like je 129
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 129
MethodArgumentCouldBeFinal Parameter 'isActive' is not assigned and could be declared final 140
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 187
LocalVariableCouldBeFinal Local variable 'schedrun' could be declared final 210
LocalVariableCouldBeFinal Local variable 'now' could be declared final 211
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 218
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 225
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 238
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 244
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 258
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 264
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 277
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 283
StdCyclomaticComplexity The method 'evaluateJobType' has a Standard Cyclomatic Complexity of 10. 304–375
CyclomaticComplexity The method 'evaluateJobType()' has a cyclomatic complexity of 21. 304–375
ModifiedCyclomaticComplexity The method 'evaluateJobType' has a Modified Cyclomatic Complexity of 10. 304–375
CognitiveComplexity The method 'evaluateJobType()' has a cognitive complexity of 37, current threshold is 15 304–375
AvoidDuplicateLiterals The String literal "Error in JobEntry. Bad Job parameter." appears 5 times in this file; the first occurrence is on line 323 323
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 326
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 337
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 349
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 361
ShortVariable Avoid variables with short names like v 391
ShortVariable Avoid variables with short names like v 405
ShortVariable Avoid variables with short names like v 419
ShortVariable Avoid variables with short names like v 433
ShortVariable Avoid variables with short names like v 447
ShortVariable Avoid variables with short names like v 461
ShortVariable Avoid variables with short names like v 477

org/apache/turbine/services/schedule/AbstractSchedulerService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 41–364
TooManyMethods This class has too many methods, consider refactoring it. 42–364
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 47
RedundantFieldInitializer Avoid using redundant field initializer for 'scheduleQueue' 47
ImmutableField Private field 'enabled' could be made final; it is only initialized in the declaration or constructor. 50
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 53
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 53
LongVariable Avoid excessively long variable names like houseKeepingThread 53
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 56
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 56
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 69
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 71
LocalVariableCouldBeFinal Local variable 'jobs' could be declared final 78
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 84
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 108
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 111
ShortVariable Avoid variables with short names like wd 118
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 141
ShortVariable Avoid variables with short names like je 141
ShortVariable Avoid variables with short names like je 155
ShortVariable Avoid variables with short names like je 166
MethodArgumentCouldBeFinal Parameter 'enabled' is not assigned and could be declared final 185
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 205–209
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 215–224
LocalVariableCouldBeFinal Local variable 'thread' could be declared final 218
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 218
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 233
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 233–236
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 241–244
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 243
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 252–275
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 262
UseNotifyAllInsteadOfNotify Call Thread.notifyAll() rather than Thread.notify() 272
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 284–326
LocalVariableCouldBeFinal Local variable 'je' could be declared final 292
ShortVariable Avoid variables with short names like je 292
LocalVariableCouldBeFinal Local variable 'now' could be declared final 301
LocalVariableCouldBeFinal Local variable 'when' could be declared final 302
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 302
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 314
ShortVariable Avoid variables with short names like je 340
LocalVariableCouldBeFinal Local variable 'je' could be declared final 340
ConfusingTernary Avoid if (x != y) ..; else ..; 341–351
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 343
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 346
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 346
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 354

org/apache/turbine/services/schedule/JobEntry.java

Rule Violation Line
ShortVariable Avoid variables with short names like v 74
ShortVariable Avoid variables with short names like v 88

org/apache/turbine/services/schedule/JobEntryNonPersistent.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 32
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 33
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 35
ShortVariable Avoid variables with short names like wd 35
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 36
AvoidFieldNameMatchingMethodName Field isnew has the same name as a method 38
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 38
MethodArgumentCouldBeFinal Parameter 'sec' is not assigned and could be declared final 79
MethodArgumentCouldBeFinal Parameter 'min' is not assigned and could be declared final 80
MethodArgumentCouldBeFinal Parameter 'hour' is not assigned and could be declared final 81
MethodArgumentCouldBeFinal Parameter 'wd' is not assigned and could be declared final 82
ShortVariable Avoid variables with short names like wd 82
MethodArgumentCouldBeFinal Parameter 'day_mo' is not assigned and could be declared final 83
MethodArgumentCouldBeFinal Parameter 'task' is not assigned and could be declared final 84
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 96
MethodArgumentCouldBeFinal Parameter 'obj' is not assigned and could be declared final 103
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 107
LocalVariableCouldBeFinal Local variable '_isnew' could be declared final 119
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 141
ShortVariable Avoid variables with short names like v 141
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 163
ShortVariable Avoid variables with short names like v 163
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 185
ShortVariable Avoid variables with short names like v 185
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 207
ShortVariable Avoid variables with short names like v 207
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 229
ShortVariable Avoid variables with short names like v 229
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 251
ShortVariable Avoid variables with short names like v 251
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 273
ShortVariable Avoid variables with short names like v 273

org/apache/turbine/services/schedule/JobEntryQuartz.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 45
AvoidFieldNameMatchingMethodName Field isnew has the same name as a method 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 47
ImmutableField Private field 'active' could be made final; it is only initialized in the declaration or constructor. 48
LongVariable Avoid excessively long variable names like DEFAULT_JOB_GROUP_NAME 53
MethodArgumentCouldBeFinal Parameter 'jobTrigger' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'jobDetail' is not assigned and could be declared final 81
MethodArgumentCouldBeFinal Parameter 'jobTrigger' is not assigned and could be declared final 81
LocalVariableCouldBeFinal Local variable '_isnew' could be declared final 95
ShortVariable Avoid variables with short names like v 117
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 117
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 139
ShortVariable Avoid variables with short names like v 139
MethodArgumentCouldBeFinal Parameter 'jobTrigger' is not assigned and could be declared final 155
MethodArgumentCouldBeFinal Parameter 'o' is not assigned and could be declared final 172
ShortVariable Avoid variables with short names like o 172
MethodArgumentCouldBeFinal Parameter 'isActive' is not assigned and could be declared final 181
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 201
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 219
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 235
SimplifyBooleanExpressions Avoid unnecessary comparisons in boolean expressions 237
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 248
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 248
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 250
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 252

org/apache/turbine/services/schedule/JobQueue.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 41
RedundantFieldInitializer Avoid using redundant field initializer for 'queue' 41
ImmutableField Private field 'queue' could be made final; it is only initialized in the declaration or constructor. 41
UnusedAssignment The field initializer for 'queue' is never used (overwritten on line 48) 41
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 48
ConfusingTernary Avoid if (x != y) ..; else ..; 70
ShortVariable Avoid variables with short names like je 79
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 79
LocalVariableCouldBeFinal Local variable 'job' could be declared final 83
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 86
LocalVariableCouldBeFinal Local variable 'jobEntry' could be declared final 88
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 92
ReplaceVectorWithList Consider replacing this Vector with the newer java.util.List 104
LooseCoupling Avoid using implementation types like 'Vector'; use the interface instead 104
ConfusingTernary Avoid if (x != y) ..; else ..; 106–113
UseArrayListInsteadOfVector Use ArrayList instead of Vector 108
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 108
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 121
ShortVariable Avoid variables with short names like je 121
MethodArgumentCouldBeFinal Parameter 'jobEntries' is not assigned and could be declared final 132
ShortVariable Avoid variables with short names like je 145
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 145
ShortVariable Avoid variables with short names like je 156
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 156
ShortVariable Avoid variables with short names like je 169
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 169

org/apache/turbine/services/schedule/ScheduleService.java

Rule Violation Line
ShortVariable Avoid variables with short names like wd 84
ShortVariable Avoid variables with short names like je 104
ShortVariable Avoid variables with short names like je 113
ShortVariable Avoid variables with short names like je 122

org/apache/turbine/services/schedule/SchedulerTool.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38–113
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 47
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 53
MethodArgumentCouldBeFinal Parameter 'jobId' is not assigned and could be declared final 97
ShortVariable Avoid variables with short names like je 99

org/apache/turbine/services/schedule/TorqueSchedulerService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38–177
LocalVariableCouldBeFinal Local variable 'jobsTorque' could be declared final 52
LocalVariableCouldBeFinal Local variable 'job' could be declared final 54
MethodArgumentCouldBeFinal Parameter 'task' is not assigned and could be declared final 71
MethodArgumentCouldBeFinal Parameter 'hour' is not assigned and could be declared final 71
MethodArgumentCouldBeFinal Parameter 'sec' is not assigned and could be declared final 71
MethodArgumentCouldBeFinal Parameter 'wd' is not assigned and could be declared final 71
MethodArgumentCouldBeFinal Parameter 'day_mo' is not assigned and could be declared final 71
MethodArgumentCouldBeFinal Parameter 'min' is not assigned and could be declared final 71
ShortVariable Avoid variables with short names like wd 71
LocalVariableCouldBeFinal Local variable 'jet' could be declared final 73
MethodArgumentCouldBeFinal Parameter 'oid' is not assigned and could be declared final 94
LocalVariableCouldBeFinal Local variable 'je' could be declared final 98
ShortVariable Avoid variables with short names like je 98
ShortVariable Avoid variables with short names like je 116
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 116
LocalVariableCouldBeFinal Local variable 'c' could be declared final 121
ShortVariable Avoid variables with short names like c 121
ShortVariable Avoid variables with short names like je 145
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 145

org/apache/turbine/services/schedule/TurbineNonPersistentSchedulerService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 68–179
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 76
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 77
LocalVariableCouldBeFinal Local variable 'jobProps' could be declared final 77
LocalVariableCouldBeFinal Local variable 'jobs' could be declared final 78
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 82
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 84–112
LocalVariableCouldBeFinal Local variable 'jobName' could be declared final 86
LocalVariableCouldBeFinal Local variable 'jobPrefix' could be declared final 87
LocalVariableCouldBeFinal Local variable 'jobId' could be declared final 89
LocalVariableCouldBeFinal Local variable 'sec' could be declared final 97
LocalVariableCouldBeFinal Local variable 'min' could be declared final 98
LocalVariableCouldBeFinal Local variable 'hr' could be declared final 99
ShortVariable Avoid variables with short names like hr 99
LocalVariableCouldBeFinal Local variable 'wkday' could be declared final 100
LocalVariableCouldBeFinal Local variable 'dayOfMonth' could be declared final 101
ShortVariable Avoid variables with short names like je 103
LocalVariableCouldBeFinal Local variable 'je' could be declared final 103–109
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 110
MethodArgumentCouldBeFinal Parameter 'sec' is not assigned and could be declared final 122
MethodArgumentCouldBeFinal Parameter 'hour' is not assigned and could be declared final 122
ShortVariable Avoid variables with short names like wd 122
MethodArgumentCouldBeFinal Parameter 'wd' is not assigned and could be declared final 122
MethodArgumentCouldBeFinal Parameter 'task' is not assigned and could be declared final 122
MethodArgumentCouldBeFinal Parameter 'min' is not assigned and could be declared final 122
MethodArgumentCouldBeFinal Parameter 'day_mo' is not assigned and could be declared final 122
MethodArgumentCouldBeFinal Parameter 'oid' is not assigned and could be declared final 135
LocalVariableCouldBeFinal Local variable 'je' could be declared final 138
ShortVariable Avoid variables with short names like je 138
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 149
ShortVariable Avoid variables with short names like je 149
ShortVariable Avoid variables with short names like je 163
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 163
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 174

org/apache/turbine/services/schedule/WorkerThread.java

Rule Violation Line
UnusedAssignment The field initializer for 'je' is never used (overwritten on line 54) 42
RedundantFieldInitializer Avoid using redundant field initializer for 'je' 42
ImmutableField Private field 'je' could be made final; it is only initialized in the declaration or constructor. 42
ShortVariable Avoid variables with short names like je 42
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 42
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 52
ShortVariable Avoid variables with short names like je 52
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 74
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 77
MethodArgumentCouldBeFinal Parameter 'state' is not assigned and could be declared final 97
UnnecessaryModifier Unnecessary modifier 'final' on method 'logStateChange': private methods cannot be overridden 97–101

org/apache/turbine/services/security/DefaultSecurityService.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 1–1127
CyclomaticComplexity The class 'DefaultSecurityService' has a total cyclomatic complexity of 88 (highest 4). 74–1127
AtLeastOneConstructor Each class should declare at least one constructor 74–1127
GodClass Possible God Class (WMC=88, ATFD=39, TCC=8.956%) 74–1127
ExcessiveClassLength Avoid really long classes. 74–1127
TooManyMethods This class has too many methods, consider refactoring it. 77–1127
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 79
ImmutableField Private field 'readerCount' could be made final; it is only initialized in the declaration or constructor. 79
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 82
RedundantFieldInitializer Avoid using redundant field initializer for 'userManager' 82
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 85
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 88
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 91
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 94
SingularField Perhaps 'backend' could be replaced by a local variable. 96
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 96
UnusedPrivateField Avoid unused private fields such as 'backend'. 96
RedundantFieldInitializer Avoid using redundant field initializer for 'globalGroup' 101
LocalVariableCouldBeFinal Local variable 'manager' could be declared final 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 119
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 120
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 121
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 122
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 124
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 126
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 128–130
LocalVariableCouldBeFinal Local variable 'userManagerClassName' could be declared final 128–130
LongVariable Avoid excessively long variable names like userManagerClassName 128
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 135
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 135
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 139
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 160
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 180
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 186
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 211
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 228
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 236
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 258
MethodArgumentCouldBeFinal Parameter 'permName' is not assigned and could be declared final 274
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 282
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 304
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 321
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 329
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 358
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 361
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 375
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 378
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 395
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 395
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 399
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 413
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 416
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 431
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 444
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 446
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 459
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 462
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 478
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 481
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 495
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 495
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 498
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 510
AvoidDuplicateLiterals The String literal "user is null" appears 4 times in this file; the first occurrence is on line 514 514
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 518
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 533
MethodArgumentCouldBeFinal Parameter 'oldPassword' is not assigned and could be declared final 533
MethodArgumentCouldBeFinal Parameter 'newPassword' is not assigned and could be declared final 534
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 538
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 556
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 556
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 559
UseNotifyAllInsteadOfNotify Call Thread.notifyAll() rather than Thread.notify() 582
ShortVariable Avoid variables with short names like g 646
LocalVariableCouldBeFinal Local variable 'g' could be declared final 646
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 660
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 677
ShortVariable Avoid variables with short names like id 677
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 693
LocalVariableCouldBeFinal Local variable 'role' could be declared final 696
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 714
ShortVariable Avoid variables with short names like id 714
LocalVariableCouldBeFinal Local variable 'role' could be declared final 718
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 736
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 753
ShortVariable Avoid variables with short names like id 753
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 813
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 816
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 835
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 835
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 835
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 856
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 856
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 856
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 878
MethodArgumentCouldBeFinal Parameter 'newRole' is not assigned and could be declared final 878
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 878
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 895
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 914
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 914
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 930
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 930
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 947
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 969
MethodArgumentCouldBeFinal Parameter 'cascadeDelete' is not assigned and could be declared final 969
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 985
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 1000
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 1015
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 1030
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 1045
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 1059
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 1074
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 1090
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 1090
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 1106
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 1106
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 1122
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 1122

org/apache/turbine/services/security/DefaultUserManager.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 76–536
TooManyMethods This class has too many methods, consider refactoring it. 77–536
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 79
RedundantFieldInitializer Avoid using redundant field initializer for 'umDelegate' 79
RedundantFieldInitializer Avoid using redundant field initializer for 'factoryService' 81
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 81
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 98
ShortVariable Avoid variables with short names like u 101
LocalVariableCouldBeFinal Local variable 'u' could be declared final 101
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 113
UseShortArrayInitializer Array initialization can be written shorter 117
LocalVariableCouldBeFinal Local variable 'params' could be declared final 117
LocalVariableCouldBeFinal Local variable 'signature' could be declared final 118
UseShortArrayInitializer Array initialization can be written shorter 118
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 119
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 121
MethodArgumentCouldBeFinal Parameter 'userWrapperClass2' is not assigned and could be declared final 143
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 154
LocalVariableCouldBeFinal Local variable 'manager' could be declared final 156
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 157
LocalVariableCouldBeFinal Local variable 'userWrapperClass' could be declared final 159–161
LocalVariableCouldBeFinal Local variable 'turbineUser' could be declared final 169
UseShortArrayInitializer Array initialization can be written shorter 171
LocalVariableCouldBeFinal Local variable 'params' could be declared final 171
LocalVariableCouldBeFinal Local variable 'signature' could be declared final 172
UseShortArrayInitializer Array initialization can be written shorter 172
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 179
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 196
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 200
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 215
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 233
LocalVariableCouldBeFinal Local variable 'u' could be declared final 236
ShortVariable Avoid variables with short names like u 236
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 255
LocalVariableCouldBeFinal Local variable 'uset' could be declared final 258
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 260–264
LocalVariableCouldBeFinal Local variable 'userList' could be declared final 260–264
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 260–264
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 260–264
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 260–264
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 260–264
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'userList' 266
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 286
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 286
LocalVariableCouldBeFinal Local variable 'u' could be declared final 290
ShortVariable Avoid variables with short names like u 290
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 305
AvoidDuplicateLiterals The String literal "user is null" appears 6 times in this file; the first occurrence is on line 309 309
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 315
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 336
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 357
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 357
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 374
MethodArgumentCouldBeFinal Parameter 'initialPassword' is not assigned and could be declared final 374
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 391
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 414
MethodArgumentCouldBeFinal Parameter 'oldPassword' is not assigned and could be declared final 414
MethodArgumentCouldBeFinal Parameter 'newPassword' is not assigned and could be declared final 415
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 443
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 443
ShortVariable Avoid variables with short names like u 463
LocalVariableCouldBeFinal Local variable 'u' could be declared final 463
MethodArgumentCouldBeFinal Parameter 'u' is not assigned and could be declared final 477
ShortVariable Avoid variables with short names like u 477
LocalVariableCouldBeFinal Local variable 'u' could be declared final 495
ShortVariable Avoid variables with short names like u 495
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 513
ShortVariable Avoid variables with short names like u 515
LocalVariableCouldBeFinal Local variable 'u' could be declared final 515
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 529

org/apache/turbine/services/security/SecurityService.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 1–757
TooManyMethods This class has too many methods, consider refactoring it. 66–757
LongVariable Avoid excessively long variable names like USER_MANAGER_DEFAULT 80
LongVariable Avoid excessively long variable names like USER_WRAPPER_DEFAULT 93
ShortVariable Avoid variables with short names like u 272
ShortVariable Avoid variables with short names like id 538
ShortVariable Avoid variables with short names like id 568
ShortVariable Avoid variables with short names like id 598

org/apache/turbine/services/security/UserManager.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 48–301
ShortVariable Avoid variables with short names like u 258

org/apache/turbine/services/security/passive/PassiveUserManager.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 46–365
TooManyMethods This class has too many methods, consider refactoring it. 47–365
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 54
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 69
AvoidDuplicateLiterals The String literal "PassiveUserManager knows no users" appears 10 times in this file; the first occurrence is on line 72 72
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 85
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 103
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 124
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 147
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 147
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 165
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 184
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 205
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 205
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 222
MethodArgumentCouldBeFinal Parameter 'initialPassword' is not assigned and could be declared final 222
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 237
MethodArgumentCouldBeFinal Parameter 'oldPassword' is not assigned and could be declared final 257
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 257
MethodArgumentCouldBeFinal Parameter 'newPassword' is not assigned and could be declared final 258
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 281
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 281
ShortVariable Avoid variables with short names like u 311
MethodArgumentCouldBeFinal Parameter 'u' is not assigned and could be declared final 311
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 346
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 361

org/apache/turbine/services/servlet/TurbineServletService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 51–254
RedundantFieldInitializer Avoid using redundant field initializer for 'servletContext' 58
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 58
RedundantFieldInitializer Avoid using redundant field initializer for 'servletConfig' 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 61
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 78
MethodArgumentCouldBeFinal Parameter 'uri' is not assigned and could be declared final 95
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 99
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 108
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 114
EmptyCatchBlock Avoid empty catch blocks 117–120
MethodArgumentCouldBeFinal Parameter 'uri' is not assigned and could be declared final 133
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 137
ShortVariable Avoid variables with short names like is 140
UnusedAssignment The initializer for variable 'is' is never used (overwritten on line 141) 140
MethodArgumentCouldBeFinal Parameter 'uri' is not assigned and could be declared final 154
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 158
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 162
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 250

org/apache/turbine/services/session/SessionListener.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 61–141
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 74
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 86
MethodArgumentCouldBeFinal Parameter 'event' is not assigned and could be declared final 98
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 101
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 101
MethodArgumentCouldBeFinal Parameter 'event' is not assigned and could be declared final 110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 112
MethodArgumentCouldBeFinal Parameter 'event' is not assigned and could be declared final 125
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 127
MethodArgumentCouldBeFinal Parameter 'event' is not assigned and could be declared final 137
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 139

org/apache/turbine/services/session/SessionTool.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 38–141
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 45
MethodArgumentCouldBeFinal Parameter 'o' is not assigned and could be declared final 48
ShortVariable Avoid variables with short names like o 48
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 75
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 86
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 102
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 125
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 137

org/apache/turbine/services/session/TurbineSessionService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 55–222
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 60
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 80
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 92
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 111
LocalVariableCouldBeFinal Local variable 'session' could be declared final 128
LocalVariableCouldBeFinal Local variable 'u' could be declared final 130
ShortVariable Avoid variables with short names like u 130
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 131
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 147
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 154
MethodArgumentCouldBeFinal Parameter 'sessionId' is not assigned and could be declared final 169
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 182
LocalVariableCouldBeFinal Local variable 'sessions' could be declared final 184
LocalVariableCouldBeFinal Local variable 'session' could be declared final 185
ShortVariable Avoid variables with short names like u 187
LocalVariableCouldBeFinal Local variable 'u' could be declared final 187
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 217

org/apache/turbine/services/template/BaseTemplateEngineService.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 38–145
AtLeastOneConstructor Each class should declare at least one constructor 38–145
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 53
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 53
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 53
MethodArgumentCouldBeFinal Parameter 'defaultExt' is not assigned and could be declared final 59
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 62
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 62
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 63
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 70
MethodArgumentCouldBeFinal Parameter 'defaultExt' is not assigned and could be declared final 97
LocalVariableCouldBeFinal Local variable 'config' could be declared final 99
LongVariable Avoid excessively long variable names like fileExtensionAssociations 105
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 106
LocalVariableCouldBeFinal Local variable 'copyParams' could be declared final 124–132
LocalVariableCouldBeFinal Local variable 'copyParam' could be declared final 134

org/apache/turbine/services/template/TemplateEngineService.java

Rule Violation Line
LongVariable Avoid excessively long variable names like TEMPLATE_EXTENSIONS 35
LongVariable Avoid excessively long variable names like DEFAULT_TEMPLATE_EXTENSION 37
LongVariable Avoid excessively long variable names like DEFAULT_NAVIGATION 45
LongVariable Avoid excessively long variable names like DEFAULT_ERROR_SCREEN 47
LongVariable Avoid excessively long variable names like DEFAULT_LAYOUT_TEMPLATE 49
LongVariable Avoid excessively long variable names like DEFAULT_SCREEN_TEMPLATE 51
LongVariable Avoid excessively long variable names like DEFAULT_NAVIGATION_TEMPLATE 53
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 60
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 60

org/apache/turbine/services/template/TemplateService.java

Rule Violation Line
LongVariable Avoid excessively long variable names like DEFAULT_TEMPLATE_KEY 49
LongVariable Avoid excessively long variable names like DEFAULT_TEMPLATE_VALUE 52
LongVariable Avoid excessively long variable names like DEFAULT_EXTENSION_KEY 55
LongVariable Avoid excessively long variable names like DEFAULT_EXTENSION_VALUE 58
LongVariable Avoid excessively long variable names like EXTENSION_SEPARATOR 61
LongVariable Avoid excessively long variable names like TEMPLATE_PARTS_SEPARATOR 64
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 218
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 229
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 240
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 251
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 262
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 273

org/apache/turbine/services/template/TurbineTemplateService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 1–817
GodClass Possible God Class (WMC=47, ATFD=75, TCC=21.675%) 181–817
LongVariable Avoid excessively long variable names like LAYOUT_TEMPLATE_KEY 201
LongVariable Avoid excessively long variable names like LAYOUT_TEMPLATE_NAME 204
LongVariable Avoid excessively long variable names like SCREEN_TEMPLATE_KEY 207
LongVariable Avoid excessively long variable names like SCREEN_TEMPLATE_NAME 210
LongVariable Avoid excessively long variable names like NAVIGATION_TEMPLATE_KEY 213
LongVariable Avoid excessively long variable names like NAVIGATION_TEMPLATE_NAME 216
RedundantFieldInitializer Avoid using redundant field initializer for 'mapperRegistry' 222
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 222
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 235
RedundantFieldInitializer Avoid using redundant field initializer for 'useCache' 235
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 238
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 241
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 246
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 256
RedundantFieldInitializer Avoid using redundant field initializer for 'templateEngineRegistry' 256
LongVariable Avoid excessively long variable names like templateEngineRegistry 256
CallSuperInConstructor It is a good practice to call super() in a constructor 261–264
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 261–264
LocalVariableCouldBeFinal Local variable 'config' could be declared final 277
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 279
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 282–283
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 285–286
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 290–291
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 335
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 339
LocalVariableCouldBeFinal Local variable 'dotIndex' could be declared final 342
ShortVariable Avoid variables with short names like sb 357
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 357
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 436
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 450
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 464
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 478
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 492
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 505
LocalVariableCouldBeFinal Local variable 'pp' could be declared final 507
ShortVariable Avoid variables with short names like pp 507
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 508
LocalVariableCouldBeFinal Local variable 'template' could be declared final 508
ConfusingTernary Avoid if (x != y) ..; else ..; 509
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 520
ShortVariable Avoid variables with short names like pp 522
LocalVariableCouldBeFinal Local variable 'pp' could be declared final 522
LocalVariableCouldBeFinal Local variable 'template' could be declared final 523
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 523
ConfusingTernary Avoid if (x != y) ..; else ..; 524
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 536
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 551
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 566
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 582
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 597
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 613
MethodArgumentCouldBeFinal Parameter 'templatePaths' is not assigned and could be declared final 652
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 652
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 654–656
MethodArgumentCouldBeFinal Parameter 'service' is not assigned and could be declared final 666
LocalVariableCouldBeFinal Local variable 'exts' could be declared final 668
LocalVariableCouldBeFinal Local variable 'ext' could be declared final 670
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 684
MethodArgumentCouldBeFinal Parameter 'mapper' is not assigned and could be declared final 697
MethodArgumentCouldBeFinal Parameter 'templateKey' is not assigned and could be declared final 697
ExcessiveMethodLength Avoid really long methods. 711–816
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 711
CyclomaticComplexity The method 'initMapper(Configuration)' has a cyclomatic complexity of 10. 711–816
UseShortArrayInitializer Array initialization can be written shorter 720–723
LocalVariableCouldBeFinal Local variable 'mapperNames' could be declared final 720–723
UseShortArrayInitializer Array initialization can be written shorter 725–728
LocalVariableCouldBeFinal Local variable 'mapperKeys' could be declared final 725–728
LocalVariableCouldBeFinal Local variable 'mapperClasses' could be declared final 730–738
UseShortArrayInitializer Array initialization can be written shorter 730–738
LocalVariableCouldBeFinal Local variable 'ab' could be declared final 740–741
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 740–741
ShortVariable Avoid variables with short names like ab 740
ConfusingTernary Avoid if (x != y) ..; else ..; 749
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 753
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 754
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 755
LocalVariableCouldBeFinal Local variable 'mapperDefaultProperty' could be declared final 757–765
LongVariable Avoid excessively long variable names like mapperDefaultProperty 757
UseShortArrayInitializer Array initialization can be written shorter 757–765
LocalVariableCouldBeFinal Local variable 'mapperSeparator' could be declared final 767
UseShortArrayInitializer Array initialization can be written shorter 767
LocalVariableCouldBeFinal Local variable 'mapperPrefix' could be declared final 769–773
UseShortArrayInitializer Array initialization can be written shorter 769–773
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 777
LocalVariableCouldBeFinal Local variable 'mapperProperty' could be declared final 777
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 778
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 779
LocalVariableCouldBeFinal Local variable 'mapperClass' could be declared final 782–783
UnusedAssignment The initializer for variable 'tm' is never used (overwritten on line 792) 787
ShortVariable Avoid variables with short names like tm 787
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 791
LocalVariableCouldBeFinal Local variable 'factory' could be declared final 791
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 799
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 800
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 801
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 802

org/apache/turbine/services/template/mapper/BaseMapper.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 40–226
DataClass The class 'BaseMapper' is suspected to be a Data Class (WOC=25.000%, NOPA=0, NOAM=8, WMC=21) 40–226
RedundantFieldInitializer Avoid using redundant field initializer for 'useCache' 43
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 49
RedundantFieldInitializer Avoid using redundant field initializer for 'templateCache' 49
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 66–69
MethodArgumentCouldBeFinal Parameter 'cacheSize' is not assigned and could be declared final 84
MethodArgumentCouldBeFinal Parameter 'useCache' is not assigned and could be declared final 102
MethodArgumentCouldBeFinal Parameter 'defaultProperty' is not assigned and could be declared final 120
MethodArgumentCouldBeFinal Parameter 'separator' is not assigned and could be declared final 138
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 166
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 170
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 170
LocalVariableCouldBeFinal Local variable 'tes' could be declared final 171
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 171
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 175
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 178–179
LocalVariableCouldBeFinal Local variable 'defaultName' could be declared final 178–179
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 178–179
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 182
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 193
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 197
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 202
LocalVariableCouldBeFinal Local variable 'res' could be declared final 205

org/apache/turbine/services/template/mapper/BaseTemplateMapper.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 37–117
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 48–51
MethodArgumentCouldBeFinal Parameter 'prefix' is not assigned and could be declared final 66
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 83
LocalVariableCouldBeFinal Local variable 'components' could be declared final 88–89
LocalVariableCouldBeFinal Local variable 'resBuf' could be declared final 93
LocalVariableCouldBeFinal Local variable 'templateComponents' could be declared final 95
LongVariable Avoid excessively long variable names like templateComponents 95
LocalVariableCouldBeFinal Local variable 'dotIndex' could be declared final 98
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 101
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 101
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 103
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 106

org/apache/turbine/services/template/mapper/ClassMapper.java

Rule Violation Line
RedundantFieldInitializer Avoid using redundant field initializer for 'loader' 60
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 70–73
CallSuperInConstructor It is a good practice to call super() in a constructor 70–73
MethodArgumentCouldBeFinal Parameter 'loader' is not assigned and could be declared final 88
CognitiveComplexity The method 'doMapping(String)' has a cognitive complexity of 16, current threshold is 15 102–178
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 102
LocalVariableCouldBeFinal Local variable 'components' could be declared final 107–110
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 121
LocalVariableCouldBeFinal Local variable 'dotIndex' could be declared final 121
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 122
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 127
LiteralsFirstInComparisons Position literals first in String comparisons 127
LocalVariableCouldBeFinal Local variable 'pkg' could be declared final 131
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 132
LocalVariableCouldBeFinal Local variable 'testName' could be declared final 132
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 151
EmptyCatchBlock Avoid empty catch blocks 157–160
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 157

org/apache/turbine/services/template/mapper/DirectMapper.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 43–46
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 57
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 65
LocalVariableCouldBeFinal Local variable 'dotIndex' could be declared final 65
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 66

org/apache/turbine/services/template/mapper/DirectTemplateMapper.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 44–47
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 58
LocalVariableCouldBeFinal Local variable 'components' could be declared final 60–61

org/apache/turbine/services/template/mapper/LayoutTemplateMapper.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 62–65
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 62–65
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 75
CognitiveComplexity The method 'doMapping(String)' has a cognitive complexity of 16, current threshold is 15 75–166
LocalVariableCouldBeFinal Local variable 'components' could be declared final 79–82
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 87
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 93
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 93
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 94
LocalVariableCouldBeFinal Local variable 'tes' could be declared final 94
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 98
LocalVariableCouldBeFinal Local variable 'defaultName' could be declared final 102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 107
LocalVariableCouldBeFinal Local variable 'templatePackage' could be declared final 111
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 115
LocalVariableCouldBeFinal Local variable 'testName' could be declared final 115
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 128
LocalVariableCouldBeFinal Local variable 'templatePath' could be declared final 128
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 141

org/apache/turbine/services/template/mapper/ScreenDefaultTemplateMapper.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 58–61
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 58–61
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 71
LocalVariableCouldBeFinal Local variable 'components' could be declared final 75–78
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 83
UnusedAssignment The updated value of variable 'componentSize' is never used 84
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 89
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 90
LocalVariableCouldBeFinal Local variable 'tes' could be declared final 90
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 94
LocalVariableCouldBeFinal Local variable 'defaultName' could be declared final 97
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 102
LocalVariableCouldBeFinal Local variable 'templatePackage' could be declared final 106
LocalVariableCouldBeFinal Local variable 'testName' could be declared final 110
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 110
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 123
LocalVariableCouldBeFinal Local variable 'templatePath' could be declared final 123
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 136

org/apache/turbine/services/template/mapper/ScreenTemplateMapper.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 47–50
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 60
LocalVariableCouldBeFinal Local variable 'components' could be declared final 62
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 65
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 65
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 66
LocalVariableCouldBeFinal Local variable 'tes' could be declared final 66
LocalVariableCouldBeFinal Local variable 'templatePackage' could be declared final 68
LocalVariableCouldBeFinal Local variable 'testPath' could be declared final 71
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 79

org/apache/turbine/services/ui/TurbineUIService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 57–531
LongVariable Avoid excessively long variable names like SKIN_PROPERTY_DEFAULT 108
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 115
LongVariable Avoid excessively long variable names like DEFAULT_SKIN_CSS_FILE 126
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 131
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 136
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 141
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 147
RedundantFieldInitializer Avoid using redundant field initializer for 'wantRelative' 147
ImmutableField Private field 'skins' could be made final; it is only initialized in the declaration or constructor. 152
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 152
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 169
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 187
LocalVariableCouldBeFinal Local variable 'skinProperties' could be declared final 189
ConfusingTernary Avoid if (x != y) ..; else ..; 190
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 208
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 208
LocalVariableCouldBeFinal Local variable 'skinProperties' could be declared final 210
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 211
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 227
LocalVariableCouldBeFinal Local variable 'skinsDir' could be declared final 240
LocalVariableCouldBeFinal Local variable 'directory' could be declared final 242
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 261
LiteralsFirstInComparisons Position literals first in String comparisons 263
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 280
LongVariable Avoid excessively long variable names like defaultSkinProperties 282
LocalVariableCouldBeFinal Local variable 'skinProperties' could be declared final 290
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 292
ShortVariable Avoid variables with short names like sb 292
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 293
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 294
ShortVariable Avoid variables with short names like is 298
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 304
ConfusingTernary Avoid if (x != y) ..; else ..; 307–322
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 311
ConfusingTernary Avoid if (x != y) ..; else ..; 313–322
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 316
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 321
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 343–344
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 361
MethodArgumentCouldBeFinal Parameter 'imageId' is not assigned and could be declared final 361
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 361
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 374
MethodArgumentCouldBeFinal Parameter 'imageId' is not assigned and could be declared final 374
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 393
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 393
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 406
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 425
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 425
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 426
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 439
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 439
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 448
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 452
LocalVariableCouldBeFinal Local variable 'len' could be declared final 452
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 454
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 454
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 459
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 477
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 477
MethodArgumentCouldBeFinal Parameter 'resourceName' is not assigned and could be declared final 478
MethodArgumentCouldBeFinal Parameter 'subDir' is not assigned and could be declared final 478
ShortVariable Avoid variables with short names like sb 480
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 480
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 481
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 484
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 486
LocalVariableCouldBeFinal Local variable 'du' could be declared final 488
ShortVariable Avoid variables with short names like du 488
LocalVariableCouldBeFinal Local variable 'cfg' could be declared final 501
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 503
LocalVariableCouldBeFinal Local variable 'pullService' could be declared final 504
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 504
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 507
ShortVariable Avoid variables with short names like sb 507
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 508
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 508
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 509
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 509
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 511
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 515
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 516
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 517

org/apache/turbine/services/uniqueid/TurbineUniqueIdService.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 44–152
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 77
LocalVariableCouldBeFinal Local variable 'md' could be declared final 79
ShortVariable Avoid variables with short names like md 79
LocalVariableCouldBeFinal Local variable 'bytesId' could be declared final 80
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 80
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 88
LocalVariableCouldBeFinal Local variable 'current' could be declared final 130
ShortVariable Avoid variables with short names like id 131
UseUnderscoresInNumericLiterals Number 100000000 should separate every third digit with an underscore 135
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 135

org/apache/turbine/services/urlmapper/MappedTemplateLink.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 50–118
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 56

org/apache/turbine/services/urlmapper/URLMapperService.java

Rule Violation Line
ShortVariable Avoid variables with short names like pp 57

org/apache/turbine/services/urlmapper/URLMapperValve.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 39–61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 44
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 50
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 50
CloseResource Ensure that resources like this RunData object are closed after use 53
LocalVariableCouldBeFinal Local variable 'data' could be declared final 53
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 54
LocalVariableCouldBeFinal Local variable 'uri' could be declared final 54
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 54
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 56

org/apache/turbine/services/urlmapper/model/URLMapEntry.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 44–175
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 48
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 48
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 49
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 49
RedundantFieldInitializer Avoid using redundant field initializer for 'relevantKeys' 52
MethodArgumentCouldBeFinal Parameter 'urlPattern' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'implicit' is not assigned and could be declared final 87
MethodArgumentCouldBeFinal Parameter 'ignore' is not assigned and could be declared final 106
MethodArgumentCouldBeFinal Parameter 'override' is not assigned and could be declared final 125
MethodArgumentCouldBeFinal Parameter 'groupNamesMap' is not assigned and could be declared final 145
MethodArgumentCouldBeFinal Parameter 'relevantKeys' is not assigned and could be declared final 165

org/apache/turbine/services/urlmapper/model/URLMappingContainer.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 43–98
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 56
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 64
MethodArgumentCouldBeFinal Parameter 'newURLMapEntries' is not assigned and could be declared final 94

org/apache/turbine/services/urlmapper/model/XmlParameterAdapter.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 35–62
MethodArgumentCouldBeFinal Parameter 'xmlList' is not assigned and could be declared final 41
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 44–46
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 44–46
MethodArgumentCouldBeFinal Parameter 'map' is not assigned and could be declared final 53
LocalVariableCouldBeFinal Local variable 'xmlList' could be declared final 55
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 56–58
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 56–58
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 56–58

org/apache/turbine/services/urlmapper/model/XmlParameterList.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 55–108
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 60
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 63
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 79
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 79
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 86
MethodArgumentCouldBeFinal Parameter 'xmlParameters' is not assigned and could be declared final 104

org/apache/turbine/services/urlmapper/model/XmlPatternAdapter.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 31–50
MethodArgumentCouldBeFinal Parameter 'urlPattern' is not assigned and could be declared final 37
MethodArgumentCouldBeFinal Parameter 'pattern' is not assigned and could be declared final 46

org/apache/turbine/services/velocity/VelocityService.java

Rule Violation Line
LongVariable Avoid excessively long variable names like VELOCITY_EXTENSION 52
LongVariable Avoid excessively long variable names like CATCH_ERRORS_DEFAULT 64
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 76

org/apache/turbine/util/BrowserDetector.java

Rule Violation Line
DataClass The class 'BrowserDetector' is suspected to be a Data Class (WOC=14.286%, NOPA=0, NOAM=4, WMC=9) 41–172
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 44
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 60
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 66
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 71
MethodArgumentCouldBeFinal Parameter 'userAgentString' is not assigned and could be declared final 78
LocalVariableCouldBeFinal Local variable 'userAgent' could be declared final 81
LocalVariableCouldBeFinal Local variable 'version' could be declared final 85
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 97
MethodArgumentCouldBeFinal Parameter 'userAgentString' is not assigned and could be declared final 157
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 168
UnnecessaryModifier Unnecessary modifier 'final' on method 'toFloat': private methods cannot be overridden 168–171
ShortVariable Avoid variables with short names like s 168

org/apache/turbine/util/FormMessage.java

Rule Violation Line
DataClass The class 'FormMessage' is suspected to be a Data Class (WOC=18.182%, NOPA=0, NOAM=5, WMC=12) 33–161
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 52
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 64
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 65
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 78
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 79
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 80
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 113
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 121
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 131
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 141
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 153
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 153
ShortVariable Avoid variables with short names like sb 153
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 154
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 155
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 157

org/apache/turbine/util/FormMessages.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 36
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 36
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 36
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 38
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 38
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 38
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 40
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 40
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 40
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 42
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 42
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 42
MethodArgumentCouldBeFinal Parameter 'returnCode' is not assigned and could be declared final 62
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 62
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 62
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 74
MethodArgumentCouldBeFinal Parameter 'messageName' is not assigned and could be declared final 74
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 74
LocalVariableCouldBeFinal Local variable 'formFieldName' could be declared final 76
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 90
MethodArgumentCouldBeFinal Parameter 'table' is not assigned and could be declared final 90
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 90
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 90
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 90
ConfusingTernary Avoid if (x != y) ..; else ..; 94–107
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 117
MethodArgumentCouldBeFinal Parameter 'table' is not assigned and could be declared final 117
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 117
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 117
UnnecessaryModifier Unnecessary modifier 'final' on method 'getValues': private methods cannot be overridden 117–120
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 128
LocalVariableCouldBeFinal Local variable 'field' could be declared final 142
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 151
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 163
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 163
LocalVariableCouldBeFinal Local variable 'key' could be declared final 165
LocalVariableCouldBeFinal Local variable 'messages' could be declared final 167
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 179
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 191
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 191
LocalVariableCouldBeFinal Local variable 'fields' could be declared final 193
LocalVariableCouldBeFinal Local variable 'field' could be declared final 194
StringToString Avoid calling toString() on String objects; this is unnecessary. 196
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 198

org/apache/turbine/util/GenerateUniqueId.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 40–159
RedundantFieldInitializer Avoid using redundant field initializer for 'session_count' 50
RedundantFieldInitializer Avoid using redundant field initializer for 'lastTimeVal' 51
UseUnderscoresInNumericLiterals Number 2176782336L should separate every third digit with an underscore 61
UseUnderscoresInNumericLiterals Number 46656 should separate every third digit with an underscore 69
LongVariable Avoid excessively long variable names like maxSessionLifespanTics 69
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 85–130
LocalVariableCouldBeFinal Local variable 'sessionId' could be declared final 87
ShortVariable Avoid variables with short names like n 90
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 100–101
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 111–112
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 138–145
MethodArgumentCouldBeFinal Parameter 'jsIdent' is not assigned and could be declared final 138
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 142
MethodArgumentCouldBeFinal Parameter 'args' is not assigned and could be declared final 152

org/apache/turbine/util/HttpUtils.java

Rule Violation Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 40–85
MethodArgumentCouldBeFinal Parameter 'date' is not assigned and could be declared final 56
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 70
MethodArgumentCouldBeFinal Parameter 'expiry' is not assigned and could be declared final 70
LocalVariableCouldBeFinal Local variable 'response' could be declared final 72

org/apache/turbine/util/InputFilterUtils.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 35–68
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 35–68
ShortVariable Avoid variables with short names like s 45
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 45
ShortVariable Avoid variables with short names like s 58
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 58

org/apache/turbine/util/LocaleUtils.java

Rule Violation Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 62–248
RedundantFieldInitializer Avoid using redundant field initializer for 'defaultLocale' 67
RedundantFieldInitializer Avoid using redundant field initializer for 'defaultCharSet' 70
LocalVariableCouldBeFinal Local variable 'inputEncoding' could be declared final 80–82
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 80–82
NonThreadSafeSingleton Singleton is not thread safe 100–113
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 103–105
LocalVariableCouldBeFinal Local variable 'lang' could be declared final 103–105
LocalVariableCouldBeFinal Local variable 'country' could be declared final 107–109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 107–109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 127
CognitiveComplexity The method 'getDefaultCharset()' has a cognitive complexity of 15, current threshold is 15 136–190
NonThreadSafeSingleton Singleton is not thread safe 138–150
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 141–143
LocalVariableCouldBeFinal Local variable 'charSet' could be declared final 141–143
LocalVariableCouldBeFinal Local variable 'locale' could be declared final 158
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 161
LocalVariableCouldBeFinal Local variable 'serviceManager' could be declared final 164
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 165
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 165–178
LocalVariableCouldBeFinal Local variable 'mimeTypeService' could be declared final 169
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 169
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 170
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 172
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 202–203
LocalVariableCouldBeFinal Local variable 'charset' could be declared final 215–216
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 215–216
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 220
MethodArgumentCouldBeFinal Parameter 'charSet' is not assigned and could be declared final 234
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 238

org/apache/turbine/util/ObjectUtils.java

Rule Violation Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 36–102
AbstractNaming Abstract classes should be named AbstractXXX 36–102
MethodArgumentCouldBeFinal Parameter 'map' is not assigned and could be declared final 47
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 48
UnusedAssignment The initializer for variable 'byteArray' is never used (overwritten on line 66) 50
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 50
LocalVariableCouldBeFinal Local variable 'value' could be declared final 52
MethodArgumentCouldBeFinal Parameter 'objectData' is not assigned and could be declared final 81
ShortVariable Avoid variables with short names like in 88
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 94
EmptyCatchBlock Avoid empty catch blocks 94–97

org/apache/turbine/util/RunData.java

Rule Violation Line
ExcessivePublicCount This class has a bunch of public methods and attributes 1–637
ShortVariable Avoid variables with short names like ct 464
ShortVariable Avoid variables with short names like sc 494

org/apache/turbine/util/SecurityCheck.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 51
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. 55
RedundantFieldInitializer Avoid using redundant field initializer for 'data' 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 57
RedundantFieldInitializer Avoid using redundant field initializer for 'securityService' 57
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 63
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 72
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 73
MethodArgumentCouldBeFinal Parameter 'failedScreen' is not assigned and could be declared final 74
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 91
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 91
MethodArgumentCouldBeFinal Parameter 'failedScreen' is not assigned and could be declared final 91
MethodArgumentCouldBeFinal Parameter 'initialize' is not assigned and could be declared final 91
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 109
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 110
LocalVariableCouldBeFinal Local variable 'acl' could be declared final 113
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 115
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 136
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 136
UnusedAssignment The initializer for variable 'roleObject' is never used (overwritten on lines 142 and 148) 138
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 142
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 148
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 149
LocalVariableCouldBeFinal Local variable 'modelManager' could be declared final 150
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 150
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 152
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 154
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 154
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 154
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 172
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 173
LocalVariableCouldBeFinal Local variable 'acl' could be declared final 176
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 178
CognitiveComplexity The method 'hasPermission(String)' has a cognitive complexity of 17, current threshold is 15 204–257
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 204
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 205
UnusedAssignment The initializer for variable 'permissionObject' is never used (overwritten on lines 210 and 216) 207
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 210
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 216
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 217
LocalVariableCouldBeFinal Local variable 'acl' could be declared final 220
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 221
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 222
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 233
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 234
LocalVariableCouldBeFinal Local variable 'modelManager' could be declared final 246
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 247

org/apache/turbine/util/ServerData.java

Rule Violation Line
DataClass The class 'ServerData' is suspected to be a Data Class (WOC=18.750%, NOPA=0, NOAM=10, WMC=22) 42–279
RedundantFieldInitializer Avoid using redundant field initializer for 'serverName' 45
RedundantFieldInitializer Avoid using redundant field initializer for 'serverPort' 48
RedundantFieldInitializer Avoid using redundant field initializer for 'serverScheme' 51
RedundantFieldInitializer Avoid using redundant field initializer for 'scriptName' 54
RedundantFieldInitializer Avoid using redundant field initializer for 'contextPath' 57
MethodArgumentCouldBeFinal Parameter 'serverName' is not assigned and could be declared final 71
MethodArgumentCouldBeFinal Parameter 'serverPort' is not assigned and could be declared final 72
MethodArgumentCouldBeFinal Parameter 'serverScheme' is not assigned and could be declared final 73
MethodArgumentCouldBeFinal Parameter 'scriptName' is not assigned and could be declared final 74
MethodArgumentCouldBeFinal Parameter 'contextPath' is not assigned and could be declared final 75
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 98
MethodArgumentCouldBeFinal Parameter 'req' is not assigned and could be declared final 115
CloneMethodMustImplementCloneable clone() method should be implemented only if implementing Cloneable interface 130–134
CloneMethodReturnTypeMustMatchClassName The return type of the clone() method must be the class name when implements Cloneable 130–134
CloneThrowsCloneNotSupportedException clone() method should throw CloneNotSupportedException 130–134
MethodArgumentCouldBeFinal Parameter 'serverName' is not assigned and could be declared final 151
MethodArgumentCouldBeFinal Parameter 'serverPort' is not assigned and could be declared final 172
MethodArgumentCouldBeFinal Parameter 'serverScheme' is not assigned and could be declared final 193
MethodArgumentCouldBeFinal Parameter 'scriptName' is not assigned and could be declared final 214
MethodArgumentCouldBeFinal Parameter 'contextPath' is not assigned and could be declared final 235
MethodArgumentCouldBeFinal Parameter 'url' is not assigned and could be declared final 246
LinguisticNaming Linguistics Antipattern - The getter 'getHostUrl' should not return void linguistically 246–261
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 248
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 249
LiteralsFirstInComparisons Position literals first in String comparisons 251
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 251
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 254
LiteralsFirstInComparisons Position literals first in String comparisons 254
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 258
LocalVariableCouldBeFinal Local variable 'url' could be declared final 271
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 275

org/apache/turbine/util/ServletUtils.java

Rule Violation Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 43–103
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 54
MethodArgumentCouldBeFinal Parameter 'text' is not assigned and could be declared final 55
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 59
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 64
AvoidFinalLocalVariable Avoid using final local variables, turn them into fields 67
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 70
ShortVariable Avoid variables with short names like sb 72
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 72
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 73
LocalVariableCouldBeFinal Local variable 'context' could be declared final 82
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 83
LocalVariableCouldBeFinal Local variable 'base' could be declared final 83–84
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 88
LocalVariableCouldBeFinal Local variable 'tokenizer' could be declared final 91
LocalVariableCouldBeFinal Local variable 'buffer' could be declared final 92

org/apache/turbine/util/SystemError.java

Rule Violation Line
DoNotExtendJavaLangError Exceptions should not extend java.lang.Error 33
MethodArgumentCouldBeFinal Parameter 'cause' is not assigned and could be declared final 43
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 53
MethodArgumentCouldBeFinal Parameter 'cause' is not assigned and could be declared final 64
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 64

org/apache/turbine/util/TurbineConfig.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 1–940
ExcessivePublicCount This class has a bunch of public methods and attributes 1–940
CyclomaticComplexity The class 'TurbineConfig' has a total cyclomatic complexity of 108 (highest 4). 96–940
TooManyMethods This class has too many methods, consider refactoring it. 98–940
LongVariable Avoid excessively long variable names like CONFIGURATION_PATH_KEY 107
LongVariable Avoid excessively long variable names like PROPERTIES_PATH_KEY 113
LongVariable Avoid excessively long variable names like PROPERTIES_PATH_DEFAULT 119
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 123
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 126
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 129
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 132
AvoidFieldNameMatchingMethodName Field log has the same name as a method 135
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 135
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 151
MethodArgumentCouldBeFinal Parameter 'attributes' is not assigned and could be declared final 151
MethodArgumentCouldBeFinal Parameter 'initParams' is not assigned and could be declared final 152
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 172
MethodArgumentCouldBeFinal Parameter 'initParams' is not assigned and could be declared final 172
MethodArgumentCouldBeFinal Parameter 'properties' is not assigned and could be declared final 188
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 188
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 206
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 216
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 267
ShortVariable Avoid variables with short names like f 270
LocalVariableCouldBeFinal Local variable 'f' could be declared final 270
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 297
UseArrayListInsteadOfVector Use ArrayList instead of Vector 310
ShortVariable Avoid variables with short names like s 362
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 362
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 376
ShortVariable Avoid variables with short names like s 376
LocalVariableCouldBeFinal Local variable 'fis' could be declared final 380
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 381
MethodArgumentCouldBeFinal Parameter 'e' is not assigned and could be declared final 398
ShortVariable Avoid variables with short names like e 398
ShortVariable Avoid variables with short names like m 398
MethodArgumentCouldBeFinal Parameter 'm' is not assigned and could be declared final 398
ShortVariable Avoid variables with short names like m 409
MethodArgumentCouldBeFinal Parameter 'm' is not assigned and could be declared final 409
ShortVariable Avoid variables with short names like m 421
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 421
MethodArgumentCouldBeFinal Parameter 'm' is not assigned and could be declared final 421
ShortVariable Avoid variables with short names like t 421
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 431
ShortVariable Avoid variables with short names like s 431
UseArrayListInsteadOfVector Use ArrayList instead of Vector 443
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 456
ShortVariable Avoid variables with short names like s 456
ShortVariable Avoid variables with short names like s 482
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 482
ShortVariable Avoid variables with short names like s 508
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 508
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 521
ShortVariable Avoid variables with short names like s 521
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 533
ShortVariable Avoid variables with short names like s 533
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 559
ShortVariable Avoid variables with short names like s 559
ShortVariable Avoid variables with short names like s 599
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 599
ShortVariable Avoid variables with short names like s 611
ShortVariable Avoid variables with short names like o 611
MethodArgumentCouldBeFinal Parameter 'o' is not assigned and could be declared final 611
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 611
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 647
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 647
MethodArgumentCouldBeFinal Parameter 'servletName' is not assigned and could be declared final 659
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 659
MethodArgumentCouldBeFinal Parameter 'servlet' is not assigned and could be declared final 671
MethodArgumentCouldBeFinal Parameter 'servletName' is not assigned and could be declared final 671
MethodArgumentCouldBeFinal Parameter 'servletClass' is not assigned and could be declared final 683
MethodArgumentCouldBeFinal Parameter 'servletName' is not assigned and could be declared final 683
MethodArgumentCouldBeFinal Parameter 'clazz' is not assigned and could be declared final 695
MethodArgumentCouldBeFinal Parameter 'servletName' is not assigned and could be declared final 707
MethodArgumentCouldBeFinal Parameter 'filterName' is not assigned and could be declared final 731
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 731
MethodArgumentCouldBeFinal Parameter 'filterName' is not assigned and could be declared final 743
MethodArgumentCouldBeFinal Parameter 'filter' is not assigned and could be declared final 743
MethodArgumentCouldBeFinal Parameter 'filterName' is not assigned and could be declared final 755
MethodArgumentCouldBeFinal Parameter 'filterClass' is not assigned and could be declared final 755
MethodArgumentCouldBeFinal Parameter 'clazz' is not assigned and could be declared final 767
MethodArgumentCouldBeFinal Parameter 'filterName' is not assigned and could be declared final 779
MethodArgumentCouldBeFinal Parameter 'sessionTrackingModes' is not assigned and could be declared final 815
LongVariable Avoid excessively long variable names like sessionTrackingModes 815
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 851
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 863
ShortVariable Avoid variables with short names like t 863
MethodArgumentCouldBeFinal Parameter 'listenerClass' is not assigned and could be declared final 875
MethodArgumentCouldBeFinal Parameter 'clazz' is not assigned and could be declared final 887
MethodArgumentCouldBeFinal Parameter 'roleNames' is not assigned and could be declared final 923

org/apache/turbine/util/TurbineException.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 112
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 124
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 137
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 137

org/apache/turbine/util/TurbineRuntimeException.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 55
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 67
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 80
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 80

org/apache/turbine/util/TurbineXmlConfig.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'attributes' is not assigned and could be declared final 76
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 76
MethodArgumentCouldBeFinal Parameter 'initParams' is not assigned and could be declared final 77
MethodArgumentCouldBeFinal Parameter 'initParams' is not assigned and could be declared final 95
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 95
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 109
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 109

org/apache/turbine/util/template/HtmlPageAttributes.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 105–690
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 110
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 116
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 122
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 125
RedundantFieldInitializer Avoid using redundant field initializer for 'doctype' 128
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 128
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 131
LongVariable Avoid excessively long variable names like defaultHtmlDoctypeRootElement 131
ImmutableField Private field 'defaultHtmlDoctypeRootElement' could be made final; it is only initialized in the declaration or constructor. 131
LongVariable Avoid excessively long variable names like defaultHtmlDoctypeIdentifier 134
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 134
LongVariable Avoid excessively long variable names like defaultHtmlDoctypeUri 137
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 137
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 154
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 156
MethodArgumentCouldBeFinal Parameter 'title' is not assigned and could be declared final 183
LinguisticNaming Linguistics Antipattern - The setter 'setTitle' should not return any type except void linguistically 183–187
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 200
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 212
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 212
MethodArgumentCouldBeFinal Parameter 'scriptURL' is not assigned and could be declared final 234
MethodArgumentCouldBeFinal Parameter 'styleSheetURL' is not assigned and could be declared final 257
MethodArgumentCouldBeFinal Parameter 'styleSheetURL' is not assigned and could be declared final 272
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 272–273
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 273
MethodArgumentCouldBeFinal Parameter 'media' is not assigned and could be declared final 273
MethodArgumentCouldBeFinal Parameter 'title' is not assigned and could be declared final 273
ShortVariable Avoid variables with short names like ss 275
LocalVariableCouldBeFinal Local variable 'ss' could be declared final 275
MethodArgumentCouldBeFinal Parameter 'linkURL' is not assigned and could be declared final 290
MethodArgumentCouldBeFinal Parameter 'relation' is not assigned and could be declared final 290
MethodArgumentCouldBeFinal Parameter 'relation' is not assigned and could be declared final 303
MethodArgumentCouldBeFinal Parameter 'linkURL' is not assigned and could be declared final 303
MethodArgumentCouldBeFinal Parameter 'title' is not assigned and could be declared final 303
MethodArgumentCouldBeFinal Parameter 'title' is not assigned and could be declared final 317
MethodArgumentCouldBeFinal Parameter 'relation' is not assigned and could be declared final 317
MethodArgumentCouldBeFinal Parameter 'linkURL' is not assigned and could be declared final 317
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 317–318
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 318
LocalVariableCouldBeFinal Local variable 'ss' could be declared final 320
ShortVariable Avoid variables with short names like ss 320
MethodArgumentCouldBeFinal Parameter 'styleText' is not assigned and could be declared final 343
LinguisticNaming Linguistics Antipattern - The setter 'setKeywords' should not return any type except void linguistically 365–369
MethodArgumentCouldBeFinal Parameter 'keywords' is not assigned and could be declared final 365
MethodArgumentCouldBeFinal Parameter 'content' is not assigned and could be declared final 380
LinguisticNaming Linguistics Antipattern - The setter 'setHttpEquiv' should not return any type except void linguistically 380–384
MethodArgumentCouldBeFinal Parameter 'httpEquiv' is not assigned and could be declared final 380
MethodArgumentCouldBeFinal Parameter 'description' is not assigned and could be declared final 392
LinguisticNaming Linguistics Antipattern - The setter 'setDescription' should not return any type except void linguistically 392–396
LinguisticNaming Linguistics Antipattern - The setter 'setBackground' should not return any type except void linguistically 404–408
MethodArgumentCouldBeFinal Parameter 'url' is not assigned and could be declared final 404
MethodArgumentCouldBeFinal Parameter 'color' is not assigned and could be declared final 418
LinguisticNaming Linguistics Antipattern - The setter 'setBgColor' should not return any type except void linguistically 418–422
MethodArgumentCouldBeFinal Parameter 'color' is not assigned and could be declared final 431
LinguisticNaming Linguistics Antipattern - The setter 'setTextColor' should not return any type except void linguistically 431–435
LinguisticNaming Linguistics Antipattern - The setter 'setLinkColor' should not return any type except void linguistically 444–448
MethodArgumentCouldBeFinal Parameter 'color' is not assigned and could be declared final 444
MethodArgumentCouldBeFinal Parameter 'color' is not assigned and could be declared final 456
LinguisticNaming Linguistics Antipattern - The setter 'setVlinkColor' should not return any type except void linguistically 456–460
MethodArgumentCouldBeFinal Parameter 'color' is not assigned and could be declared final 468
LinguisticNaming Linguistics Antipattern - The setter 'setAlinkColor' should not return any type except void linguistically 468–472
DataClass The class 'LinkTag' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=9, WMC=15) 508–626
MethodArgumentCouldBeFinal Parameter 'url' is not assigned and could be declared final 523
MethodArgumentCouldBeFinal Parameter 'relation' is not assigned and could be declared final 523
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 544
MethodArgumentCouldBeFinal Parameter 'url' is not assigned and could be declared final 562
MethodArgumentCouldBeFinal Parameter 'title' is not assigned and could be declared final 582
MethodArgumentCouldBeFinal Parameter 'media' is not assigned and could be declared final 602
MethodArgumentCouldBeFinal Parameter 'relation' is not assigned and could be declared final 622
LocalVariableCouldBeFinal Local variable 'tag' could be declared final 643
MethodArgumentCouldBeFinal Parameter 'identifier' is not assigned and could be declared final 666
MethodArgumentCouldBeFinal Parameter 'tag' is not assigned and could be declared final 666
MethodArgumentCouldBeFinal Parameter 'uri' is not assigned and could be declared final 666
LocalVariableCouldBeFinal Local variable 'doctypeBuf' could be declared final 668

org/apache/turbine/util/template/TemplateInfo.java

Rule Violation Line
LongVariable Avoid excessively long variable names like NAVIGATION_TEMPLATE 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 54
ImmutableField Private field 'data' could be made final; it is only initialized in the declaration or constructor. 54
UnusedAssignment The field initializer for 'data' is never used (overwritten on line 66) 54
RedundantFieldInitializer Avoid using redundant field initializer for 'data' 54
ImmutableField Private field 'tempStorage' could be made final; it is only initialized in the declaration or constructor. 57
UnusedAssignment The field initializer for 'tempStorage' is never used (overwritten on line 67) 57
RedundantFieldInitializer Avoid using redundant field initializer for 'tempStorage' 57
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 57
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 64
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 85
ShortVariable Avoid variables with short names like v 85
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 98
ShortVariable Avoid variables with short names like v 107
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 107
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 109
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 117
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 118
EmptyCatchBlock Avoid empty catch blocks 120–125
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 120
LocalVariableCouldBeFinal Local variable 'value' could be declared final 135
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'value' 136
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 144
ShortVariable Avoid variables with short names like v 144
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 156
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 167
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 167
ShortVariable Avoid variables with short names like v 167
ShortVariable Avoid variables with short names like v 187
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 187
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 198
MethodArgumentCouldBeFinal Parameter 'def' is not assigned and could be declared final 210
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 210
LocalVariableCouldBeFinal Local variable 'val' could be declared final 214
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 215
ConfusingTernary Avoid if (x != y) ..; else ..; 215
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 217
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 229
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 229
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 240
LocalVariableCouldBeFinal Local variable 'object' could be declared final 243
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 257
LocalVariableCouldBeFinal Local variable 'object' could be declared final 260
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 275
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 287

org/apache/turbine/util/template/TemplateNavigation.java

Rule Violation Line
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 'template' 55
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 62
LinguisticNaming Linguistics Antipattern - The setter 'setTemplate' should not return any type except void linguistically 74–79
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 74
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 100
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 101–102
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 101–102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 103
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 111
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 113

org/apache/turbine/util/template/TemplateScreen.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 58
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 65
MethodArgumentCouldBeFinal Parameter 'screen' is not assigned and could be declared final 77
LinguisticNaming Linguistics Antipattern - The setter 'setScreen' should not return any type except void linguistically 77–81
LocalVariableCouldBeFinal Local variable 'results' could be declared final 95
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 95
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 102

org/apache/turbine/util/template/TemplateSecurityCheck.java

Rule Violation Line
DataClass The class 'TemplateSecurityCheck' is suspected to be a Data Class (WOC=27.273%, NOPA=0, NOAM=6, WMC=18) 52–228
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 59
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 79
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 82–83
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 94
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 95
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 99
LocalVariableCouldBeFinal Local variable 'acl' could be declared final 102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 103
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 106
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 108
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 121
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 122
LocalVariableCouldBeFinal Local variable 'acl' could be declared final 125
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 126
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 129
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 144
LocalVariableCouldBeFinal Local variable 'userManager' could be declared final 149–152
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 150–152
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 154
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 155
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 157–158
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 160
ShortVariable Avoid variables with short names like v 173
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 173
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 204
ShortVariable Avoid variables with short names like v 204
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 224
ShortVariable Avoid variables with short names like v 224

org/apache/turbine/util/uri/BaseURI.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 46–520
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 54
RedundantFieldInitializer Avoid using redundant field initializer for 'redirect' 58
RedundantFieldInitializer Avoid using redundant field initializer for 'response' 61
RedundantFieldInitializer Avoid using redundant field initializer for 'reference' 64
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 90
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 102
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 102
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 114
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 126
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 126
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 148
ConfusingTernary Avoid if (x != y) ..; else ..; 152–163
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 164
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 181
MethodArgumentCouldBeFinal Parameter 'scriptName' is not assigned and could be declared final 213
MethodArgumentCouldBeFinal Parameter 'contextPath' is not assigned and could be declared final 234
MethodArgumentCouldBeFinal Parameter 'serverName' is not assigned and could be declared final 255
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 272
MethodArgumentCouldBeFinal Parameter 'serverPort' is not assigned and could be declared final 289
MethodArgumentCouldBeFinal Parameter 'port' is not assigned and could be declared final 311
LocalVariableCouldBeFinal Local variable 'useSSL' could be declared final 313–316
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 314–316
MethodArgumentCouldBeFinal Parameter 'serverScheme' is not assigned and could be declared final 327
LocalVariableCouldBeFinal Local variable 'serverScheme' could be declared final 342
MethodArgumentCouldBeFinal Parameter 'reference' is not assigned and could be declared final 352
MethodArgumentCouldBeFinal Parameter 'response' is not assigned and could be declared final 393
ShortVariable Avoid variables with short names like sb 421
LinguisticNaming Linguistics Antipattern - The getter 'getContextAndScript' should not return void linguistically 421–445
MethodArgumentCouldBeFinal Parameter 'sb' is not assigned and could be declared final 421
LocalVariableCouldBeFinal Local variable 'context' could be declared final 423
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 427
LocalVariableCouldBeFinal Local variable 'script' could be declared final 435
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 439
MethodArgumentCouldBeFinal Parameter 'sb' is not assigned and could be declared final 459
LinguisticNaming Linguistics Antipattern - The getter 'getSchemeAndPort' should not return void linguistically 459–475
ShortVariable Avoid variables with short names like sb 459
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 462
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 463
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 467
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 469
MethodArgumentCouldBeFinal Parameter 'uri' is not assigned and could be declared final 486
LocalVariableCouldBeFinal Local variable 'response' could be declared final 490
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 510

org/apache/turbine/util/uri/DataURI.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 57
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 68
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 78
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 89
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 89
LocalVariableCouldBeFinal Local variable 'output' could be declared final 126
LocalVariableCouldBeFinal Local variable 'output' could be declared final 164

org/apache/turbine/util/uri/TemplateURI.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 59
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 70
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 70
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 81
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 81
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 94
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 94
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 94
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 107
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 107
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 107
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 121
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 121
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 121
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 121
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 132
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 143
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 143
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 154
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 154
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 167
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 167
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 167
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 180
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 180
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 180
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 194
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 194
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 194
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 194
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 206
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 206
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 222
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 266
MethodArgumentCouldBeFinal Parameter 'pp' is not assigned and could be declared final 267
ShortVariable Avoid variables with short names like pp 267
LocalVariableCouldBeFinal Local variable 'name' could be declared final 269
LocalVariableCouldBeFinal Local variable 'key' could be declared final 271
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 273
LocalVariableCouldBeFinal Local variable 'values' could be declared final 275
ConfusingTernary Avoid if (x != y) ..; else ..; 276–286
LocalVariableCouldBeFinal Local variable 'value' could be declared final 278

org/apache/turbine/util/uri/URIConstants.java

Rule Violation Line
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 36
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 39
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 42
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 45
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 48
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 51
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 54
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 60
LongVariable Avoid excessively long variable names like URI_SCHEME_SEPARATOR 60
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 63
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 66
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 69
LongVariable Avoid excessively long variable names like CGI_TEMPLATE_PARAM 69
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 72

org/apache/turbine/util/uri/URIParam.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 37
ImmutableField Private field 'key' could be made final; it is only initialized in the declaration or constructor. 37
UnusedAssignment The field initializer for 'key' is never used (overwritten on line 51) 37
RedundantFieldInitializer Avoid using redundant field initializer for 'key' 37
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 40
ImmutableField Private field 'value' could be made final; it is only initialized in the declaration or constructor. 40
RedundantFieldInitializer Avoid using redundant field initializer for 'value' 40
UnusedAssignment The field initializer for 'value' is never used (overwritten on line 52) 40
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 49
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 49
MethodArgumentCouldBeFinal Parameter 'obj' is not assigned and could be declared final 90
IfStmtsMustUseBraces Avoid using if statements without curly braces 92–93
ControlStatementBraces This statement should have braces 93
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 93
IfStmtsMustUseBraces Avoid using if statements without curly braces 94–95
ControlStatementBraces This statement should have braces 95
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 95
IfStmtsMustUseBraces Avoid using if statements without curly braces 96–97
ControlStatementBraces This statement should have braces 97
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 97
LocalVariableCouldBeFinal Local variable 'other' could be declared final 98
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 100
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 101

org/apache/turbine/util/uri/URIUtils.java

Rule Violation Line
AbstractNaming Abstract classes should be named AbstractXXX 34–53
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 34–53
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 47
ShortVariable Avoid variables with short names like du 49
LocalVariableCouldBeFinal Local variable 'du' could be declared final 49

org/apache/turbine/util/velocity/VelocityActionEvent.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 51–90
AbstractNaming Abstract classes should be named AbstractXXX 51–90
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 58
RedundantFieldInitializer Avoid using redundant field initializer for 'initialized' 58
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 66
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 77
ShortVariable Avoid variables with short names like pp 85
LocalVariableCouldBeFinal Local variable 'pp' could be declared final 85
LocalVariableCouldBeFinal Local variable 'context' could be declared final 86

org/apache/turbine/util/velocity/VelocityEmail.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 110
RedundantFieldInitializer Avoid using redundant field initializer for 'wordWrap' 110
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 116
RedundantFieldInitializer Avoid using redundant field initializer for 'template' 116
RedundantFieldInitializer Avoid using redundant field initializer for 'context' 119
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 133
MethodArgumentCouldBeFinal Parameter 'toEmail' is not assigned and could be declared final 149
MethodArgumentCouldBeFinal Parameter 'toName' is not assigned and could be declared final 149
LinguisticNaming Linguistics Antipattern - The setter 'setTo' should not return any type except void linguistically 149–154
LinguisticNaming Linguistics Antipattern - The setter 'setTemplate' should not return any type except void linguistically 164–168
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 164
MethodArgumentCouldBeFinal Parameter 'wordWrap' is not assigned and could be declared final 181
LinguisticNaming Linguistics Antipattern - The setter 'setWordWrap' should not return any type except void linguistically 181–185
LinguisticNaming Linguistics Antipattern - The setter 'setContext' should not return any type except void linguistically 194–198
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 194
MethodArgumentCouldBeFinal Parameter 'serverAddress' is not assigned and could be declared final 218
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 234–236
UnusedAssignment The initializer for variable 'body' is never used (overwritten on line 256) 251
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 255
LocalVariableCouldBeFinal Local variable 'velocityService' could be declared final 255
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 256
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 258

org/apache/turbine/util/velocity/VelocityEmailException.java

Rule Violation Line
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 53
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 65
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 78
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 78

org/apache/turbine/util/velocity/VelocityHtmlEmail.java

Rule Violation Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 94
RedundantFieldInitializer Avoid using redundant field initializer for 'htmlTemplate' 94
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 100
RedundantFieldInitializer Avoid using redundant field initializer for 'textTemplate' 100
RedundantFieldInitializer Avoid using redundant field initializer for 'context' 103
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 103
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 106
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 106
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 106
RedundantFieldInitializer Avoid using redundant field initializer for 'embmap' 106
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 124
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 139
LinguisticNaming Linguistics Antipattern - The setter 'setHtmlTemplate' should not return any type except void linguistically 139–143
LinguisticNaming Linguistics Antipattern - The setter 'setTextTemplate' should not return any type except void linguistically 153–157
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 153
MethodArgumentCouldBeFinal Parameter 'serverAddress' is not assigned and could be declared final 166
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 182–184
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 199
LocalVariableCouldBeFinal Local variable 'velocityService' could be declared final 199
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 203
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 207
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 210
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 243
MethodArgumentCouldBeFinal Parameter 'surl' is not assigned and could be declared final 243
LocalVariableCouldBeFinal Local variable 'url' could be declared final 248
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 266
LocalVariableCouldBeFinal Local variable 'cid' could be declared final 268

Priority 4

org/apache/turbine/modules/Page.java

Rule Violation Line
ShortClassName Avoid short class names like Page 33–68

org/apache/turbine/om/security/DefaultUserImpl.java

Rule Violation Line
UselessParentheses Useless parentheses. 541

org/apache/turbine/om/security/User.java

Rule Violation Line
ShortClassName Avoid short class names like User 41–289

org/apache/turbine/pipeline/TurbinePipeline.java

Rule Violation Line
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 139

org/apache/turbine/services/Initable.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 96

org/apache/turbine/services/assemblerbroker/TurbineAssemblerBrokerService.java

Rule Violation Line
UselessParentheses Useless parentheses. 227
UselessParentheses Useless parentheses. 287

org/apache/turbine/services/localization/DateTimeFormatterService.java

Rule Violation Line
UselessParentheses Useless parentheses. 96

org/apache/turbine/services/localization/LocalizationTool.java

Rule Violation Line
UselessParentheses Useless parentheses. 140

org/apache/turbine/services/localization/RundataLocalizationService.java

Rule Violation Line
UselessParentheses Useless parentheses. 51

org/apache/turbine/services/pull/util/DateTimeFormatterTool.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.time.format.DateTimeFormatter' due to existing import 'java.time.format.DateTimeFormatter' 181
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.time.format.DateTimeFormatter' due to existing import 'java.time.format.DateTimeFormatter' 182

org/apache/turbine/services/rundata/TurbineRunDataService.java

Rule Violation Line
OneDeclarationPerLine Use one line for each declaration, it enhances code readability. 119

org/apache/turbine/services/template/TemplateService.java

Rule Violation Line
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 285
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 299

org/apache/turbine/services/template/mapper/BaseMapper.java

Rule Violation Line
UselessParentheses Useless parentheses. 173

org/apache/turbine/services/template/mapper/ClassMapper.java

Rule Violation Line
UselessParentheses Useless parentheses. 122
UselessParentheses Useless parentheses. 142

org/apache/turbine/services/template/mapper/DirectMapper.java

Rule Violation Line
UselessParentheses Useless parentheses. 66

org/apache/turbine/services/template/mapper/LayoutTemplateMapper.java

Rule Violation Line
UselessParentheses Useless parentheses. 123

org/apache/turbine/services/template/mapper/ScreenDefaultTemplateMapper.java

Rule Violation Line
UselessParentheses Useless parentheses. 118

org/apache/turbine/services/template/mapper/ScreenTemplateMapper.java

Rule Violation Line
UselessParentheses Useless parentheses. 79

org/apache/turbine/services/velocity/VelocityService.java

Rule Violation Line
AvoidPrefixingMethodParameters Avoid prefixing parameters by in, out or inOut. Uses Javadoc to document this behavior. 89

org/apache/turbine/util/FormMessages.java

Rule Violation Line
OneDeclarationPerLine Use one line for each declaration, it enhances code readability. 130
OneDeclarationPerLine Use one line for each declaration, it enhances code readability. 131

org/apache/turbine/util/GenerateUniqueId.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Random' due to existing import 'java.util.Random' 52
UselessParentheses Useless parentheses. 103

org/apache/turbine/util/SecurityCheck.java

Rule Violation Line
UselessParentheses Useless parentheses. 158
UselessParentheses Useless parentheses. 252

org/apache/turbine/util/ServerData.java

Rule Violation Line
UselessParentheses Useless parentheses. 251–252
UselessParentheses Useless parentheses. 254–255

org/apache/turbine/util/TurbineConfig.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'javax.servlet.FilterRegistration.Dynamic' due to existing import 'javax.servlet.FilterRegistration' 731
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'javax.servlet.FilterRegistration.Dynamic' due to existing import 'javax.servlet.FilterRegistration' 743
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'javax.servlet.FilterRegistration.Dynamic' due to existing import 'javax.servlet.FilterRegistration' 755

org/apache/turbine/util/template/HtmlPageAttributes.java

Rule Violation Line
UselessParentheses Useless parentheses. 536
UselessParentheses Useless parentheses. 574
UselessParentheses Useless parentheses. 594
UselessParentheses Useless parentheses. 614

org/apache/turbine/util/uri/BaseURI.java

Rule Violation Line
UselessParentheses Useless parentheses. 467–468
UselessParentheses Useless parentheses. 469–470

org/apache/turbine/util/uri/URI.java

Rule Violation Line
ShortClassName Avoid short class names like URI 32–76

org/apache/turbine/util/uri/URIParam.java

Rule Violation Line
UselessParentheses Useless parentheses. 63

Priority 5

org/apache/turbine/Turbine.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'descriptorPath' (lines '349'-'362'). 349–362
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'confStyle' (lines '384'-'400'). 384–400
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'confStyle' (lines '384'-'391'). 384–391
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'params' (lines '417'-'483'). 417–483
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'confPath' (lines '437'-'483'). 437–483
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'confFile' (lines '443'-'483'). 443–483
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'path' (lines '503'-'510'). 503–510
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'usingNamespace' (lines '507'-'534'). 507–534
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'parameterName' (lines '524'-'534'). 524–534
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'usingNamespace' (lines '525'-'534'). 525–534
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'log4jTarget' (lines '975'-'987'). 975–987
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'log4jTarget' (lines '975'-'997'). 975–997

org/apache/turbine/modules/GenericLoader.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'asm' (lines '179'-'186'). 179–186
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'asm' (lines '179'-'194'). 179–194
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'asm' (lines '186'-'194'). 186–194

org/apache/turbine/modules/actions/InitContextsAction.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'data' (lines '63'-'96'). 63–96
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '78'-'85'). 78–85
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '78'-'81'). 78–81

org/apache/turbine/modules/actions/LoginUser.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'password' (lines '90'-'155'). 90–155

org/apache/turbine/modules/screens/JSONScreen.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'ret' (lines '123'-'142'). 123–142

org/apache/turbine/modules/screens/PlainJSONScreen.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'charset' (lines '105'-'117'). 105–117

org/apache/turbine/modules/screens/PlainJSONSecureAnnotatedScreen.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'data' (lines '61'-'72'). 61–72

org/apache/turbine/modules/screens/TemplateScreen.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'out' (lines '109'-'114'). 109–114

org/apache/turbine/modules/screens/VelocityCachedScreen.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'context' (lines '54'-'83'). 54–83

org/apache/turbine/modules/screens/VelocityDirectScreen.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'context' (lines '55'-'88'). 55–88

org/apache/turbine/modules/screens/VelocityScreen.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'screenData' (lines '108'-'135'). 108–135
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'screenData' (lines '108'-'151'). 108–151
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'screenData' (lines '108'-'147'). 108–147
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'context' (lines '110'-'151'). 110–151
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'screenData' (lines '135'-'147'). 135–147

org/apache/turbine/om/OMTool.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'om' (lines '105'-'110'). 105–110
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'om' (lines '105'-'114'). 105–114

org/apache/turbine/om/security/DefaultUserImpl.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'val' (lines '590'-'595'). 590–595

org/apache/turbine/pipeline/DefaultLoginValve.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'session' (lines '129'-'148'). 129–148

org/apache/turbine/services/BaseInitableBroker.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'initable' (lines '236'-'276'). 236–276

org/apache/turbine/services/assemblerbroker/TurbineAssemblerBrokerService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'assembler' (lines '215'-'219'). 215–219
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'assembler' (lines '233'-'260'). 233–260
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'loader' (lines '275'-'279'). 275–279

org/apache/turbine/services/assemblerbroker/util/java/JavaBaseFactory.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'assembler' (lines '69'-'96'). 69–96

org/apache/turbine/services/assemblerbroker/util/python/PythonBaseFactory.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'assembler' (lines '84'-'156'). 84–156
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'confName' (lines '86'-'156'). 86–156

org/apache/turbine/services/intake/IntakeTool.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groupCount' (lines '99'-'102'). 99–102
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groupNames' (lines '116'-'119'). 116–119
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groupNames' (lines '116'-'123'). 116–123
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groupNames' (lines '123'-'126'). 123–126
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groupNames' (lines '126'-'126'). 126
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'g' (lines '300'-'309'). 300–309
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'g' (lines '300'-'305'). 300–305
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'g' (lines '325'-'333'). 325–333
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'g' (lines '325'-'337'). 325–337

org/apache/turbine/services/jsonrpc/JSONProcessor.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'json_req' (lines '54'-'58'). 54–58
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'json_res' (lines '55'-'75'). 55–75
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'json_res' (lines '75'-'80'). 75–80
InvalidLogMessageFormat Too many arguments, expected 0 argument but have 1 83
InvalidLogMessageFormat Too many arguments, expected 0 argument but have 1 83

org/apache/turbine/services/jsp/TurbineJspService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'data' (lines '146'-'194'). 146–194
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'relativeTemplate' (lines '275'-'288'). 275–288

org/apache/turbine/services/jsp/util/JspNavigation.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'module' (lines '72'-'76'). 72–76

org/apache/turbine/services/jsp/util/JspScreenPlaceholder.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'template' (lines '77'-'81'). 77–81
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'module' (lines '78'-'83'). 78–83

org/apache/turbine/services/localization/DateTimeFormatterService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '137'-'163'). 137–163
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '137'-'141'). 137–141
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'result' (lines '163'-'172'). 163–172

org/apache/turbine/services/naming/TurbineNamingService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '98'-'106'). 98–106
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '98'-'102'). 98–102
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '150'-'158'). 150–158
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '150'-'154'). 150–154

org/apache/turbine/services/pull/util/DateFormatter.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '105'-'115'). 105–115
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '105'-'110'). 105–110
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'sdf' (lines '106'-'118'). 106–118

org/apache/turbine/services/rundata/TurbineRunDataService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'plist' (lines '121'-'168'). 121–168
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'value' (lines '130'-'168'). 130–168
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '130'-'130'). 130
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'j' (lines '131'-'146'). 131–146
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'j' (lines '131'-'131'). 131
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'j' (lines '131'-'168'). 131–168
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'config' (lines '143'-'168'). 143–168
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'j' (lines '146'-'131'). 146–131
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'j' (lines '146'-'168'). 146–168
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'j' (lines '146'-'146'). 146

org/apache/turbine/services/schedule/AbstractJobEntry.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'schedrun' (lines '210'-'292'). 210–292
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'now' (lines '211'-'292'). 211–292

org/apache/turbine/services/schedule/AbstractSchedulerService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'taskName' (lines '335'-'343'). 335–343
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'taskName' (lines '343'-'343'). 343

org/apache/turbine/services/schedule/SchedulerTool.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'je' (lines '99'-'103'). 99–103

org/apache/turbine/services/schedule/TurbineNonPersistentSchedulerService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'jobs' (lines '78'-'116'). 78–116

org/apache/turbine/services/security/DefaultSecurityService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'user' (lines '160'-'168'). 160–168
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'user' (lines '186'-'194'). 186–194
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'group' (lines '209'-'216'). 209–216
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'group' (lines '234'-'241'). 234–241
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'permission' (lines '256'-'263'). 256–263
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'permission' (lines '280'-'287'). 280–287
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'role' (lines '302'-'309'). 302–309
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'role' (lines '327'-'334'). 327–334

org/apache/turbine/services/servlet/TurbineServletService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'url' (lines '102'-'106'). 102–106
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'is' (lines '140'-'141'). 140–141

org/apache/turbine/services/template/BaseTemplateEngineService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'fileExtensionAssociations' (lines '111'-'112'). 111–112

org/apache/turbine/services/template/TurbineTemplateService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperNames' (lines '720'-'816'). 720–816
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperClasses' (lines '730'-'816'). 730–816
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'ab' (lines '740'-'816'). 740–816
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperCacheSize' (lines '743'-'749'). 743–749
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperCacheSize' (lines '743'-'816'). 743–816
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperLoader' (lines '744'-'753'). 744–753
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperLoader' (lines '744'-'748'). 744–748
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperCacheSize' (lines '749'-'816'). 749–816
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperCacheSize' (lines '749'-'749'). 749
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperLoader' (lines '753'-'754'). 753–754
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperLoader' (lines '754'-'755'). 754–755
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperLoader' (lines '755'-'816'). 755–816
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperDefaultProperty' (lines '757'-'816'). 757–816
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperSeparator' (lines '767'-'816'). 767–816
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperPrefix' (lines '769'-'816'). 769–816
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'tm' (lines '787'-'792'). 787–792
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'tm' (lines '792'-'816'). 792–816

org/apache/turbine/services/template/mapper/ClassMapper.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'firstRun' (lines '127'-'178'). 127–178

org/apache/turbine/services/template/mapper/LayoutTemplateMapper.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'firstRun' (lines '107'-'166'). 107–166
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'firstRun' (lines '146'-'166'). 146–166

org/apache/turbine/services/template/mapper/ScreenDefaultTemplateMapper.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'firstRun' (lines '102'-'155'). 102–155
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'firstRun' (lines '141'-'155'). 141–155

org/apache/turbine/services/ui/TurbineUIService.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'defaultSkinProperties' (lines '282'-'286'). 282–286

org/apache/turbine/util/FormMessages.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '135'-'138'). 135–138
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '172'-'175'). 172–175

org/apache/turbine/util/LocaleUtils.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'charset' (lines '170'-'190'). 170–190

org/apache/turbine/util/ObjectUtils.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'byteArray' (lines '50'-'70'). 50–70
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'byteArray' (lines '50'-'66'). 50–66
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'object' (lines '83'-'92'). 83–92

org/apache/turbine/util/SecurityCheck.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '112'-'122'). 112–122
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'roleObject' (lines '138'-'142'). 138–142
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'roleObject' (lines '142'-'148'). 142–148
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'roleObject' (lines '142'-'163'). 142–163
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'modelManager' (lines '150'-'163'). 150–163
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '175'-'185'). 175–185
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'permissionObject' (lines '207'-'210'). 207–210
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'permissionObject' (lines '210'-'257'). 210–257
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'permissionObject' (lines '210'-'216'). 210–216
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'role' (lines '219'-'224'). 219–224

org/apache/turbine/util/TurbineConfig.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '269'-'280'). 269–280

org/apache/turbine/util/template/TemplateInfo.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '242'-'246'). 242–246
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '259'-'263'). 259–263

org/apache/turbine/util/template/TemplateNavigation.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'module' (lines '89'-'103'). 89–103
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'module' (lines '89'-'124'). 89–124
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'returnValue' (lines '90'-'107'). 90–107
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'returnValue' (lines '90'-'96'). 90–96
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'returnValue' (lines '90'-'111'). 90–111

org/apache/turbine/util/template/TemplateScreen.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'returnValue' (lines '91'-'99'). 91–99

org/apache/turbine/util/template/TemplateSecurityCheck.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '124'-'131'). 124–131
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '146'-'161'). 146–161

org/apache/turbine/util/uri/BaseURI.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'res' (lines '488'-'503'). 488–503
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'res' (lines '488'-'507'). 488–507

org/apache/turbine/util/velocity/VelocityEmail.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'body' (lines '251'-'256'). 251–256
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'body' (lines '256'-'274'). 256–274

org/apache/turbine/util/velocity/VelocityHtmlEmail.java

Rule Violation Line
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'velocityService' (lines '199'-'216'). 199–216
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'cid' (lines '245'-'249'). 245–249

Files

org/apache/turbine/Turbine.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 1–1089
GodClass Possible God Class (WMC=84, ATFD=118, TCC=11.694%) 3 118–1089
StdCyclomaticComplexity The class 'Turbine' has a Standard Cyclomatic Complexity of 2 (Highest = 10). 3 118–1089
CyclomaticComplexity The class 'Turbine' has a total cyclomatic complexity of 84 (highest 12). 3 118–1089
AtLeastOneConstructor Each class should declare at least one constructor 3 118–1089
TooManyMethods This class has too many methods, consider refactoring it. 3 119–1089
LongVariable Avoid excessively long variable names like REDIRECTED_PATHINFO_NAME 3 130
RedundantFieldInitializer Avoid using redundant field initializer for 'pipeline' 3 148
RedundantFieldInitializer Avoid using redundant field initializer for 'initFailure' 3 151
RedundantFieldInitializer Avoid using redundant field initializer for 'serverData' 3 161
AvoidUsingVolatile Use of modifier volatile is not recommended. 2 161
RedundantFieldInitializer Avoid using redundant field initializer for 'configuration' 3 179
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 187
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 187
LocalVariableCouldBeFinal Local variable 'config' could be declared final 3 212
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 216
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 216
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 220
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 220
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 231–237
ExcessiveMethodLength Avoid really long methods. 3 257–362
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 257
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 3 257
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 258
LocalVariableCouldBeFinal Local variable 'confPath' could be declared final 3 309
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 319
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 329
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 335
SimplifyStartsWith This call to String.startsWith can be rewritten using String.charAt(0) 3 347
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 347
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'descriptorPath' (lines '349'-'362'). 5 349–362
LocalVariableCouldBeFinal Local variable 'jaxb' could be declared final 3 354
LocalVariableCouldBeFinal Local variable 'unmarshaller' could be declared final 3 355
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 355
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 356
ExcessiveMethodLength Avoid really long methods. 3 381–483
CyclomaticComplexity The method 'configureApplication(ServletConfig, ServletContext)' has a cyclomatic complexity of 12. 3 381–483
StdCyclomaticComplexity The method 'configureApplication' has a Standard Cyclomatic Complexity of 10. 3 381–483
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 3 381
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 381
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'confStyle' (lines '384'-'400'). 5 384–400
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'confStyle' (lines '384'-'391'). 5 384–391
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'params' (lines '417'-'483'). 5 417–483
LocalVariableCouldBeFinal Local variable 'params' could be declared final 3 417
SimplifyStartsWith This call to String.startsWith can be rewritten using String.charAt(0) 3 420
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 420
LocalVariableCouldBeFinal Local variable 'confFileRelativePath' could be declared final 3 427
LongVariable Avoid excessively long variable names like confFileRelativePath 3 427
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 429
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 430
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 433
LocalVariableCouldBeFinal Local variable 'targetPathDirectory' could be declared final 3 433
LongVariable Avoid excessively long variable names like targetPathDirectory 3 433
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'confPath' (lines '437'-'483'). 5 437–483
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 437
LocalVariableCouldBeFinal Local variable 'targetFilePath' could be declared final 3 439
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'confFile' (lines '443'-'483'). 5 443–483
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 443
LocalVariableCouldBeFinal Local variable 'combinedBuilder' could be declared final 3 453–457
LocalVariableCouldBeFinal Local variable 'propertiesBuilder' could be declared final 3 462–467
GuardLogStatement Logger calls should be surrounded by log level guards. 2 479–480
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 500
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 3 501
MethodArgumentCouldBeFinal Parameter 'defaultValue' is not assigned and could be declared final 3 501
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 501
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'path' (lines '503'-'510'). 5 503–510
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 507
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'usingNamespace' (lines '507'-'534'). 5 507–534
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'parameterName' (lines '524'-'534'). 5 524–534
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 524
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'usingNamespace' (lines '525'-'534'). 5 525–534
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 530
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 543
LocalVariableCouldBeFinal Local variable 'services' could be declared final 3 557
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 559–575
LocalVariableCouldBeFinal Local variable 'i' could be declared final 3 559
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 559
LocalVariableCouldBeFinal Local variable 'serviceName' could be declared final 3 561
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 562
LocalVariableCouldBeFinal Local variable 'service' could be declared final 3 562
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 601
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 611
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 621
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 632
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 642
NonThreadSafeSingleton Singleton is not thread safe 3 658–677
LocalVariableCouldBeFinal Local variable 'serverName' could be declared final 3 660
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 3 687
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 708
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 731
MethodArgumentCouldBeFinal Parameter 'req' is not assigned and could be declared final 3 751
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 3 751
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 762
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 767
LocalVariableCouldBeFinal Local variable 'runDataMap' could be declared final 3 767
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 785–788
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 790–794
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 3 810
MethodArgumentCouldBeFinal Parameter 'req' is not assigned and could be declared final 3 810
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 842
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 3 842
ShortVariable Avoid variables with short names like t 3 843
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 3 843
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 845
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 863–866
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 872–874
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 876
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 877
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 880–883
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 3 894
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 3 894
ShortVariable Avoid variables with short names like t 3 894
LocalVariableCouldBeFinal Local variable 'writer' could be declared final 3 900
CloseResource Ensure that resources like this PrintWriter object are closed after use 3 900
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 901
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 904
GuardLogStatement Logger calls should be surrounded by log level guards. 2 909
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 919–930
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 919
LocalVariableCouldBeFinal Local variable 'requestServerData' could be declared final 3 928
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 929
MethodArgumentCouldBeFinal Parameter 'logConf' is not assigned and could be declared final 3 941
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 943
CloseResource Ensure that resources like this LoggerContext object are closed after use 3 943
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 945
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 945
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 945
LocalVariableCouldBeFinal Local variable 'log4jFile' could be declared final 3 947
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 951
GuardLogStatement Logger calls should be surrounded by log level guards. 2 954
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 954
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 954
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 954
MethodArgumentCouldBeFinal Parameter 'logConfPath' is not assigned and could be declared final 3 966
CyclomaticComplexity The method 'resolveLog4j2(Path)' has a cyclomatic complexity of 12. 3 966–1004
CognitiveComplexity The method 'resolveLog4j2(Path)' has a cognitive complexity of 21, current threshold is 15 3 966–1004
SimplifyStartsWith This call to String.startsWith can be rewritten using String.charAt(0) 3 971
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 971
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'log4jTarget' (lines '975'-'987'). 5 975–987
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'log4jTarget' (lines '975'-'997'). 5 975–997
LiteralsFirstInComparisons Position literals first in String comparisons 3 976
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 976
PositionLiteralsFirstInCaseInsensitiveComparisons Position literals first in String comparisons for EqualsIgnoreCase 3 976
CollapsibleIfStatements These nested if statements could be combined 3 981–1001
LocalVariableCouldBeFinal Local variable 'log4jFilePath' could be declared final 3 983
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 985
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 985
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 987
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 992
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 992
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 994
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 995
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 995
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 997
MethodArgumentCouldBeFinal Parameter 'val' is not assigned and could be declared final 3 1012
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 1045
SimplifyStartsWith This call to String.startsWith can be rewritten using String.charAt(0) 3 1047
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 1049
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 1087

org/apache/turbine/TurbineConstants.java

Rule Violation Priority Line
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 48
LongVariable Avoid excessively long variable names like LOG4J2_CONFIG_FILE 3 51
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 51
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 53
LongVariable Avoid excessively long variable names like LOG4J2_CONFIG_FILE_DEFAULT 3 56
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 56
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 59
LongVariable Avoid excessively long variable names like SCHEDULER_LOG_FACILITY 3 62
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 62
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 65
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 68
LongVariable Avoid excessively long variable names like MAIL_SERVER_DEFAULT 3 68
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 71
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 74
LongVariable Avoid excessively long variable names like MODULE_CACHE_DEFAULT 3 77
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 77
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 80
LongVariable Avoid excessively long variable names like MODULE_CACHE_SIZE_KEY 3 80
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 83
LongVariable Avoid excessively long variable names like MODULE_CACHE_SIZE_DEFAULT 3 83
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 86
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 89
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 92
LongVariable Avoid excessively long variable names like TEMPLATE_ERROR_KEY 3 95
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 95
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 98
LongVariable Avoid excessively long variable names like TEMPLATE_ERROR_JSP 3 98
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 101
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 104
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 107
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 110
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 113
LongVariable Avoid excessively long variable names like SCREEN_ERROR_DEFAULT 3 113
LongVariable Avoid excessively long variable names like SCREEN_INVALID_STATE 3 116
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 116
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 119
LongVariable Avoid excessively long variable names like TEMPLATE_INVALID_STATE 3 119
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 122
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 125
LongVariable Avoid excessively long variable names like ACTION_LOGIN_DEFAULT 3 125
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 128
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 131
LongVariable Avoid excessively long variable names like ACTION_LOGOUT_DEFAULT 3 131
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 134
LongVariable Avoid excessively long variable names like ACTION_SESSION_VALIDATOR_KEY 3 134
LongVariable Avoid excessively long variable names like ACTION_SESSION_VALIDATOR_DEFAULT 3 137
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 137
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 140
LongVariable Avoid excessively long variable names like ACTION_ACCESS_CONTROLLER_KEY 3 140
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 143
LongVariable Avoid excessively long variable names like ACTION_ACCESS_CONTROLLER_DEFAULT 3 143
LongVariable Avoid excessively long variable names like ACTION_EVENTSUBMIT_NEEDSVALUE_KEY 3 146
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 146
LongVariable Avoid excessively long variable names like ACTION_EVENTSUBMIT_NEEDSVALUE_DEFAULT 3 149
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 149
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 152
LongVariable Avoid excessively long variable names like ACTION_EVENT_BUBBLE_EXCEPTION_UP 3 152
LongVariable Avoid excessively long variable names like ACTION_EVENT_BUBBLE_EXCEPTION_UP_DEFAULT 3 155
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 155
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 158
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 161
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 164
LongVariable Avoid excessively long variable names like PAGE_DEFAULT_DEFAULT 3 164
LongVariable Avoid excessively long variable names like SCREEN_DEFAULT_DEFAULT 3 167
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 167
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 170
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 173
LongVariable Avoid excessively long variable names like LOGIN_MESSAGE_NOSCREEN 3 176
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 176
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 179
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 182
LongVariable Avoid excessively long variable names like SESSION_TIMEOUT_KEY 3 182
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 185
LongVariable Avoid excessively long variable names like SESSION_TIMEOUT_DEFAULT 3 185
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 188
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 191
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 197
LongVariable Avoid excessively long variable names like PP_URL_CASE_FOLDING 3 197
LongVariable Avoid excessively long variable names like DEFAULT_DOCUMENT_TYPE_KEY 3 200
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 200
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_ROOT_ELEMENT_KEY 3 203
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 203
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 206
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_ROOT_ELEMENT_DEFAULT 3 206
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 209
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_IDENTIFIER_KEY 3 209
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 212
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_IDENTIFIER_DEFAULT 3 212
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 215
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_URI_KEY 3 215
LongVariable Avoid excessively long variable names like DEFAULT_HTML_DOCTYPE_URI_DEFAULT 3 218
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 218
LongVariable Avoid excessively long variable names like DEFAULT_HTML_CONTENT_TYPE 3 221
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 221
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 222
LongVariable Avoid excessively long variable names like DEFAULT_TEXT_CONTENT_TYPE 3 222
LongVariable Avoid excessively long variable names like DEFAULT_CSS_CONTENT_TYPE 3 223
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 223
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 226
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_LANGUAGE_KEY 3 226
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 229
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_LANGUAGE_DEFAULT 3 229
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 232
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_COUNTRY_KEY 3 232
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 235
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_COUNTRY_DEFAULT 3 235
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 238
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_CHARSET_KEY 3 238
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 241
LongVariable Avoid excessively long variable names like LOCALE_DEFAULT_CHARSET_DEFAULT 3 241
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 244
LongVariable Avoid excessively long variable names like LOCALE_OVERRIDE_CHARSET_KEY 3 244
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 249
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 252
LongVariable Avoid excessively long variable names like APPLICATION_ROOT_KEY 3 252
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 255
LongVariable Avoid excessively long variable names like APPLICATION_ROOT_DEFAULT 3 255
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 262
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 265
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 268
LongVariable Avoid excessively long variable names like LOGGING_ROOT_DEFAULT 3 268
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 271
LongVariable Avoid excessively long variable names like SCREEN_PLACEHOLDER 3 274
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 274
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 277
LongVariable Avoid excessively long variable names like NAVIGATION_PLACEHOLDER 3 277
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 280
LongVariable Avoid excessively long variable names like PROCESSING_EXCEPTION_PLACEHOLDER 3 280
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 283
LongVariable Avoid excessively long variable names like STACK_TRACE_PLACEHOLDER 3 283
LongVariable Avoid excessively long variable names like PARAMETER_ENCODING_KEY 3 286
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 286
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 289
LongVariable Avoid excessively long variable names like PARAMETER_ENCODING_DEFAULT 3 289
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 292–293
LongVariable Avoid excessively long variable names like DEFAULT_SERVER_NAME_KEY 3 292
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 296–297
LongVariable Avoid excessively long variable names like DEFAULT_SERVER_PORT_KEY 3 296
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 300–301
LongVariable Avoid excessively long variable names like DEFAULT_SERVER_SCHEME_KEY 3 300
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 304–305
LongVariable Avoid excessively long variable names like DEFAULT_SCRIPT_NAME_KEY 3 304
LongVariable Avoid excessively long variable names like DEFAULT_CONTEXT_PATH_KEY 3 308
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 308–309
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 312
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 319

org/apache/turbine/modules/Action.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 3 41
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 53
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 62
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 62

org/apache/turbine/modules/ActionLoader.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 59
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 62

org/apache/turbine/modules/GenericLoader.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 42–222
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 45
ShortVariable Avoid variables with short names like ab 3 45
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 48
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 51
RedundantFieldInitializer Avoid using redundant field initializer for 'reload' 3 54
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 54
AvoidFieldNameMatchingMethodName Field reload has the same name as a method 3 54
FieldNamingConventions The static field name 'TURBINE_PACKAGES' doesn't match '[a-z][a-zA-Z0-9]*' 1 60
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'TURBINE_PACKAGES' is not final. 1 60
VariableNamingConventions Variables should start with a lowercase character, 'TURBINE_PACKAGES' starts with uppercase character. 1 60
SuspiciousConstantFieldName The field name indicates a constant but its modifiers do not 3 60
RedundantFieldInitializer Avoid using redundant field initializer for 'TURBINE_PACKAGES' 3 60
MethodArgumentCouldBeFinal Parameter 'cacheSizeSupplier' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'assemblerClass' is not assigned and could be declared final 3 68
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 85
MethodArgumentCouldBeFinal Parameter 'reload' is not assigned and could be declared final 3 109
LinguisticNaming Linguistics Antipattern - The setter 'setReload' should not return any type except void linguistically 3 109–113
NonThreadSafeSingleton Singleton is not thread safe 3 134–140
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 136–137
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 136–137
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 136–137
LocalVariableCouldBeFinal Local variable 'turbinePackages' could be declared final 3 136–137
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 136–137
LocalVariableCouldBeFinal Local variable 'packages' could be declared final 3 142
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 144
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 161
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 3 176
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 176
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 177
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'asm' (lines '179'-'186'). 5 179–186
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'asm' (lines '179'-'194'). 5 179–194
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'asm' (lines '186'-'194'). 5 186–194
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 194
LocalVariableCouldBeFinal Local variable 'packages' could be declared final 3 203
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 208

org/apache/turbine/modules/Layout.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 3 41
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 52
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 61
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 61

org/apache/turbine/modules/LayoutLoader.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 59
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 62

org/apache/turbine/modules/Loader.java

Rule Violation Priority Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 37

org/apache/turbine/modules/Navigation.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 3 42
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 57
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 67
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 68

org/apache/turbine/modules/NavigationLoader.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 63
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 63
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 64
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 67
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 78
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 78

org/apache/turbine/modules/Page.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Page 4 33–68
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 3 42
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 54
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 63
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 64

org/apache/turbine/modules/PageLoader.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 59
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 63

org/apache/turbine/modules/ScheduledJob.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 3 47
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 58

org/apache/turbine/modules/ScheduledJobLoader.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 59
MethodArgumentCouldBeFinal Parameter 'job' is not assigned and could be declared final 3 59
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 60
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 63
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 83
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 83
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 86

org/apache/turbine/modules/Screen.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like CACHE_SIZE_DEFAULT 3 45
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 59
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 69
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 70
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 89
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 91
CloseResource Ensure that resources like this RunData object are closed after use 3 91
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 92
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 101
MethodArgumentCouldBeFinal Parameter 'layout' is not assigned and could be declared final 3 101
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 103
CloseResource Ensure that resources like this RunData object are closed after use 3 103
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 104

org/apache/turbine/modules/ScreenLoader.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 65
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 65
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 66
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 69
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 82
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 82

org/apache/turbine/modules/actions/AccessController.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 71–119
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 74
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 74
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 78
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 91
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 94
CloseResource Ensure that resources like this RunData object are closed after use 3 94
LocalVariableCouldBeFinal Local variable 'user' could be declared final 3 95
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 95
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 98
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 102–103
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 108–109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 117

org/apache/turbine/modules/actions/DefaultAction.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 36–51
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 45
CloseResource Ensure that resources like this RunData object are closed after use 3 48
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 48
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 49
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 49

org/apache/turbine/modules/actions/InitContextsAction.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 44–97
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 48
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 60
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 63
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'data' (lines '63'-'96'). 5 63–96
CloseResource Ensure that resources like this RunData object are closed after use 3 63
LocalVariableCouldBeFinal Local variable 'contextPropsList' could be declared final 3 71
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 71
LocalVariableCouldBeFinal Local variable 'contextKeys' could be declared final 3 72
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 72–89
LocalVariableCouldBeFinal Local variable 'key' could be declared final 3 74
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 75
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 3 75
LocalVariableCouldBeFinal Local variable 'start' could be declared final 3 75
LocalVariableCouldBeFinal Local variable 'end' could be declared final 3 76
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 3 76
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 76
LocalVariableCouldBeFinal Local variable 'contextName' could be declared final 3 77
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 77
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '78'-'85'). 5 78–85
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '78'-'81'). 5 78–81
UnusedAssignment The initializer for variable 'contextProps' is never used (overwritten on lines 81 and 85) 3 78
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 85
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 87
LocalVariableCouldBeFinal Local variable 'contextProps' could be declared final 3 91
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 93
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 93
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 94

org/apache/turbine/modules/actions/LegacyVelocityAction.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 36–85
AbstractNaming Abstract classes should be named AbstractXXX 3 36–85
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 46
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 56
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 56
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 71
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 79
CloseResource Ensure that resources like this RunData object are closed after use 3 79
LocalVariableCouldBeFinal Local variable 'pp' could be declared final 3 80
ShortVariable Avoid variables with short names like pp 3 80
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 81

org/apache/turbine/modules/actions/LegacyVelocitySecureAction.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 41–69
AtLeastOneConstructor Each class should declare at least one constructor 3 41–69
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 51
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 68

org/apache/turbine/modules/actions/LoginUser.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 48–157
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 57
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 61
ImmutableField Private field 'loginError' could be made final; it is only initialized in the declaration or constructor. 3 64
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 64
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 67
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 70
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 85
CloseResource Ensure that resources like this RunData object are closed after use 3 88
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 88
LocalVariableCouldBeFinal Local variable 'username' could be declared final 3 89
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 90
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'password' (lines '90'-'155'). 5 90–155
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 90
LocalVariableCouldBeFinal Local variable 'password' could be declared final 3 90
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 90
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 99
LocalVariableCouldBeFinal Local variable 'user' could be declared final 3 105
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 111
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 114
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 132
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 3 134
LocalVariableCouldBeFinal Local variable 'anonymousUser' could be declared final 3 142

org/apache/turbine/modules/actions/LogoutUser.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 41–123
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 45
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 48
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 51
ImmutableField Private field 'actionLogout' could be made final; it is only initialized in the declaration or constructor. 3 51
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 54
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 75
CloseResource Ensure that resources like this RunData object are closed after use 3 78
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 78
LocalVariableCouldBeFinal Local variable 'user' could be declared final 3 81
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 81
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 95
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 99
LocalVariableCouldBeFinal Local variable 'anonymousUser' could be declared final 3 102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 103
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 104
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
LiteralsFirstInComparisons Position literals first in String comparisons 3 118

org/apache/turbine/modules/actions/VelocityAction.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 36–96
AtLeastOneConstructor Each class should declare at least one constructor 3 36–96
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 57
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 70
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 76
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 92
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 92

org/apache/turbine/modules/actions/VelocitySecureAction.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 42–70
AbstractNaming Abstract classes should be named AbstractXXX 3 42–70
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 52
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 69

org/apache/turbine/modules/actions/sessionvalidator/DefaultSessionValidator.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 57–129
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 64
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 67
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 70
LongVariable Avoid excessively long variable names like loginMessageNoScreen 3 70
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 84
CloseResource Ensure that resources like this RunData object are closed after use 3 87
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 87
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 89
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 92
LocalVariableCouldBeFinal Local variable 'anonymousUser' could be declared final 3 95
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 101
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 101
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 127
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 127

org/apache/turbine/modules/actions/sessionvalidator/SessionValidator.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 53–124
AtLeastOneConstructor Each class should declare at least one constructor 3 53–124
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 57
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 66
LongVariable Avoid excessively long variable names like templateInvalidState 3 66
LongVariable Avoid excessively long variable names like screenInvalidState 3 69
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 69
MethodArgumentCouldBeFinal Parameter 'screenOnly' is not assigned and could be declared final 3 79
CognitiveComplexity The method 'handleFormCounterToken(RunData, boolean)' has a cognitive complexity of 20, current threshold is 15 3 79–122
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 79
AvoidDuplicateLiterals The String literal "_session_access_counter" appears 5 times in this file; the first occurrence is on line 81 3 81
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 81
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 85
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 86–87
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 90
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 98
CollapsibleIfStatements These nested if statements could be combined 3 98–117
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 99–100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 102
ConfusingTernary Avoid if (x != y) ..; else ..; 3 102–114
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 102–114
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 104–106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 105–106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 105–106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 107
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 111–112
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 112
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 115

org/apache/turbine/modules/actions/sessionvalidator/TemplateSecureSessionValidator.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 56–149
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 60–61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 65
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 68
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 84
CloseResource Ensure that resources like this RunData object are closed after use 3 87
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 87
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 89
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 92
LocalVariableCouldBeFinal Local variable 'anonymousUser' could be declared final 3 95
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 101
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 101
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 114
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 124
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 125
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 125
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 129
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 141
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 141
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 147
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 147

org/apache/turbine/modules/actions/sessionvalidator/TemplateSessionValidator.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 46–101
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 50
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 60
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 62
CloseResource Ensure that resources like this RunData object are closed after use 3 62
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 64
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 67
LocalVariableCouldBeFinal Local variable 'anonymousUser' could be declared final 3 70
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 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 77
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 81
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 93
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 93
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 99
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 99

org/apache/turbine/modules/layouts/DirectResponseLayout.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 37–56
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 46
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 49
CloseResource Ensure that resources like this RunData object are closed after use 3 49
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 50

org/apache/turbine/modules/layouts/JspLayout.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 42–80
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 1 45
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 1 45
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 49
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 58
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 61
CloseResource Ensure that resources like this RunData object are closed after use 3 61
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 62
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 62
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 63
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
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 3 76

org/apache/turbine/modules/layouts/VelocityCachedLayout.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 42–61
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 54
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 54
MethodArgumentCouldBeFinal Parameter 'templateName' is not assigned and could be declared final 3 54
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 59

org/apache/turbine/modules/layouts/VelocityDirectLayout.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 42–58
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 48
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 48

org/apache/turbine/modules/layouts/VelocityLayout.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 43–116
AbstractNaming Abstract classes should be named AbstractXXX 3 43–116
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 46
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 46
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 1 49
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 1 49
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 53
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 63
CloseResource Ensure that resources like this RunData object are closed after use 3 66
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 66
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 68
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 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 76
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 79
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 79
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 79
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 80
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 80
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 80
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 97
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 108
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 108
MethodArgumentCouldBeFinal Parameter 'templateName' is not assigned and could be declared final 3 108
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 113–114

org/apache/turbine/modules/layouts/VelocityOnlyLayout.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 65–93
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 69
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 75
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 75
LocalVariableCouldBeFinal Local variable 'screenName' could be declared final 3 77
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 77
LocalVariableCouldBeFinal Local variable 'results' could be declared final 3 83
LocalVariableCouldBeFinal Local variable 'returnValue' could be declared final 3 84

org/apache/turbine/modules/layouts/VelocityXslLayout.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 55–102
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 59
UnusedPrivateField Avoid unused private fields such as 'screenLoader'. 3 63
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 73
CloseResource Ensure that resources like this RunData object are closed after use 3 76
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 76
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 78
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 80
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 80
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 3 88
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 88
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 88
LocalVariableCouldBeFinal Local variable 'temp' could be declared final 3 93–94
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 99
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 99
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 100

org/apache/turbine/modules/navigations/BaseJspNavigation.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38–80
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 1 42
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 1 42
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 46
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 55
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 69
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 72
CloseResource Ensure that resources like this RunData object are closed after use 3 72
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 74
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 74
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 3 74

org/apache/turbine/modules/navigations/LegacyVelocityNavigation.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 35–61
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 47
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 47
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 48
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 57
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 57

org/apache/turbine/modules/navigations/TemplateNavigation.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 34–68
AtLeastOneConstructor Each class should declare at least one constructor 3 34–68
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 44
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 52
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 62

org/apache/turbine/modules/navigations/VelocityNavigation.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 44–109
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 1 48
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 1 48
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 56
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 67
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 68
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 69
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 83
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 97
CloseResource Ensure that resources like this RunData object are closed after use 3 100
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 100
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 101
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 103
LongVariable Avoid excessively long variable names like navigationTemplate 3 103
LocalVariableCouldBeFinal Local variable 'navigationTemplate' could be declared final 3 103
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 103
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 3 104–105

org/apache/turbine/modules/pages/DefaultPage.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 92–207
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 95
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 95
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 99
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 103
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 107
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 116
CloseResource Ensure that resources like this RunData object are closed after use 3 119
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 119
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 126
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 132
LocalVariableCouldBeFinal Local variable 'screenName' could be declared final 3 141
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 141
LocalVariableCouldBeFinal Local variable 'aScreen' could be declared final 3 149
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 150
LocalVariableCouldBeFinal Local variable 'layout' could be declared final 3 150
ConfusingTernary Avoid if (x != y) ..; else ..; 3 154–161
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 176
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 177
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 189
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 190
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 202
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 203

org/apache/turbine/modules/pages/JspPage.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 39–69
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 44
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 51
LocalVariableCouldBeFinal Local variable 'response' could be declared final 3 58
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 60
EmptyCatchBlock Avoid empty catch blocks 3 62–66

org/apache/turbine/modules/pages/TemplatePage.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 82–129
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 87
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 97
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 100
CloseResource Ensure that resources like this RunData object are closed after use 3 100
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 105
LocalVariableCouldBeFinal Local variable 'template' could be declared final 3 110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 110
LocalVariableCouldBeFinal Local variable 'layoutTemplate' could be declared final 3 113–114
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 115
LocalVariableCouldBeFinal Local variable 'screen' could be declared final 3 117
LocalVariableCouldBeFinal Local variable 'errMsg' could be declared final 3 121–122

org/apache/turbine/modules/pages/VelocityPage.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 39–74
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 44
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 54
CloseResource Ensure that resources like this RunData object are closed after use 3 57
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 57
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 58
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 59–60
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 59–60
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 68
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 71

org/apache/turbine/modules/screens/BaseJspScreen.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 39–96
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 1 43
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 1 43
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 51
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 61
CloseResource Ensure that resources like this RunData object are closed after use 3 64
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 64
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 65
LocalVariableCouldBeFinal Local variable 'screenTemplate' could be declared final 3 65
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 65
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 3 67–68
GuardLogStatement Logger calls should be surrounded by log level guards. 2 73
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 74
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 91

org/apache/turbine/modules/screens/JSONScreen.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 82–143
LongVariable Avoid excessively long variable names like JSONRPC_CONTENT_TYPE 3 84
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 90
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 96
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 109
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 111
CloseResource Ensure that resources like this RunData object are closed after use 3 111
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 112
LocalVariableCouldBeFinal Local variable 'request' could be declared final 3 113
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 113
LocalVariableCouldBeFinal Local variable 'charset' could be declared final 3 116
ShortVariable Avoid variables with short names like in 3 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 117
CloseResource Ensure that resources like this InputStreamReader object are closed after use 3 117
LocalVariableCouldBeFinal Local variable 'in' could be declared final 3 117
LocalVariableCouldBeFinal Local variable 'cdata' could be declared final 3 120
LocalVariableCouldBeFinal Local variable 'buf' could be declared final 3 121
AssignmentInOperand Avoid assignments in operands 3 123
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'ret' (lines '123'-'142'). 5 123–142
LocalVariableCouldBeFinal Local variable 'json_bridge' could be declared final 3 130
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_bridge' is not final. 1 130
LocalVariableNamingConventions The local variable name 'json_bridge' doesn't match '[a-z][a-zA-Z0-9]*' 1 130
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 130
LocalVariableNamingConventions The local variable name 'json_res' doesn't match '[a-z][a-zA-Z0-9]*' 1 133
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_res' is not final. 1 133
LocalVariableCouldBeFinal Local variable 'json_res' could be declared final 3 133
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 137

org/apache/turbine/modules/screens/JSONSecureScreen.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 77–104
AtLeastOneConstructor Each class should declare at least one constructor 3 77–104
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 87
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 103

org/apache/turbine/modules/screens/JspErrorScreen.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 34–50
ImmutableField Private field 'templateError' could be made final; it is only initialized in the declaration or constructor. 3 38
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 38
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 45

org/apache/turbine/modules/screens/LegacyVelocityScreen.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 33–65
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 45
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 45
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 46
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 59
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 60

org/apache/turbine/modules/screens/LegacyVelocitySecureScreen.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 34–77
AtLeastOneConstructor Each class should declare at least one constructor 3 34–77
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 56
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 76

org/apache/turbine/modules/screens/PlainJSONScreen.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 72–118
DefaultPackage Use explicit scoping instead of the default package private level 3 78
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the log field if you want a default access modifier 3 78
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 78
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 78
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 88
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 101
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 103
CloseResource Ensure that resources like this RunData object are closed after use 3 103
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'charset' (lines '105'-'117'). 5 105–117
LocalVariableCouldBeFinal Local variable 'charset' could be declared final 3 105
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_res' is not final. 1 107
LocalVariableCouldBeFinal Local variable 'json_res' could be declared final 3 107
LocalVariableNamingConventions The local variable name 'json_res' doesn't match '[a-z][a-zA-Z0-9]*' 1 107
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 107
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 112
StringToString Avoid calling toString() on String objects; this is unnecessary. 3 114

org/apache/turbine/modules/screens/PlainJSONSecureAnnotatedScreen.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 32–73
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 43
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 60
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 60
CloseResource Ensure that resources like this RunData object are closed after use 3 61
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 61
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'data' (lines '61'-'72'). 5 61–72
LocalVariableCouldBeFinal Local variable 'methods' could be declared final 3 62
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 62
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 64–71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 64–71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 64–71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 64–71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 64–71
LiteralsFirstInComparisons Position literals first in String comparisons 3 65

org/apache/turbine/modules/screens/RawScreen.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 45–96
AbstractNaming Abstract classes should be named AbstractXXX 3 45–96
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 56
CloseResource Ensure that resources like this RunData object are closed after use 3 59
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 60
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 60
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 61
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 83
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 92
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 92–95

org/apache/turbine/modules/screens/TemplateScreen.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 52–204
AtLeastOneConstructor Each class should declare at least one constructor 3 52–204
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 59
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 63
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 72
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 83
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 92
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 92–95
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 106
UnusedAssignment The initializer for variable 'out' is never used (overwritten on line 114) 3 109
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'out' (lines '109'-'114'). 5 109–114
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 135
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 135
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 137
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 138
LocalVariableCouldBeFinal Local variable 'ti' could be declared final 3 138
ShortVariable Avoid variables with short names like ti 3 138
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 139
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 139
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 141
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 148
EmptyCatchBlock Avoid empty catch blocks 3 148–151
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 173
MethodArgumentCouldBeFinal Parameter 'screen' is not assigned and could be declared final 3 173
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 173
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 174
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 199
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 199
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 200

org/apache/turbine/modules/screens/VelocityCachedScreen.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 39–84
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 50
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 53
CloseResource Ensure that resources like this RunData object are closed after use 3 53
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 54
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 54
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'context' (lines '54'-'83'). 5 54–83
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 56
LocalVariableCouldBeFinal Local variable 'screenTemplate' could be declared final 3 56
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 56
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 3 57–58
GuardLogStatement Logger calls should be surrounded by log level guards. 2 63
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 64
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 71

org/apache/turbine/modules/screens/VelocityDirectScreen.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 40–89
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 51
CloseResource Ensure that resources like this RunData object are closed after use 3 54
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 54
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'context' (lines '55'-'88'). 5 55–88
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 55
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 55
LocalVariableCouldBeFinal Local variable 'screenTemplate' could be declared final 3 57
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 57
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 57
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 3 58–59
GuardLogStatement Logger calls should be surrounded by log level guards. 2 64
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 65
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 72
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 75
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 84

org/apache/turbine/modules/screens/VelocityErrorScreen.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 36–58
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 47
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 47
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 50
CloseResource Ensure that resources like this RunData object are closed after use 3 50
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 52
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 52
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 54

org/apache/turbine/modules/screens/VelocityScreen.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 48–152
FieldNamingConventions The constant name 'prefix' doesn't match '[A-Z][A-Z_0-9]*' 1 52
VariableNamingConventions Variables that are final and static should be all capitals, 'prefix' is not all capitals. 1 52
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 56
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 60
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 63
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 74
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 75
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 76
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 90
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 104
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 107
CloseResource Ensure that resources like this RunData object are closed after use 3 107
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'screenData' (lines '108'-'135'). 5 108–135
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'screenData' (lines '108'-'151'). 5 108–151
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 108
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'screenData' (lines '108'-'147'). 5 108–147
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 110
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 110
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'context' (lines '110'-'151'). 5 110–151
LocalVariableCouldBeFinal Local variable 'screenTemplate' could be declared final 3 112
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 112
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 112
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 3 113–114
GuardLogStatement Logger calls should be surrounded by log level guards. 2 119
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 120
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 131
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'screenData' (lines '135'-'147'). 5 135–147
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 139

org/apache/turbine/modules/screens/VelocitySecureScreen.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 41–85
AtLeastOneConstructor Each class should declare at least one constructor 3 41–85
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 64
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 84

org/apache/turbine/modules/screens/error/InvalidState.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 46–86
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 55
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 58
CloseResource Ensure that resources like this RunData object are closed after use 3 58
LocalVariableCouldBeFinal Local variable 'body' could be declared final 3 59
LocalVariableCouldBeFinal Local variable 'message' could be declared final 3 62
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 67 characters appended. 3 62
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 16, but has at least 170 characters appended. 3 63
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 3 63
ShortVariable Avoid variables with short names like sb 3 63
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 7 consecutive times with literals. Use a single append with a single combined String. 3 64
ShortVariable Avoid variables with short names like pp 3 73
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 74
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 74
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 75
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 77
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 77
LocalVariableCouldBeFinal Local variable 'back' could be declared final 3 77
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 79
ConsecutiveLiteralAppends StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. 3 79
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 82

org/apache/turbine/om/OMTool.java

Rule Violation Priority Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 41
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 49
ImmutableField Private field 'pullMap' could be made final; it is only initialized in the declaration or constructor. 3 49
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 56
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 62
LocalVariableCouldBeFinal Local variable 'className' could be declared final 3 65
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 75
DefaultPackage Use explicit scoping instead of the default package private level 3 95
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the omName field if you want a default access modifier 3 95
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 95
MethodArgumentCouldBeFinal Parameter 'omName' is not assigned and could be declared final 3 97
LinguisticNaming Linguistics Antipattern - The setter 'setKey' should not return any type except void linguistically 3 102–119
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 102
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 103
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'om' (lines '105'-'110'). 5 105–110
ShortVariable Avoid variables with short names like om 3 105
UnusedAssignment The initializer for variable 'om' is never used (overwritten on lines 110 and 114) 3 105
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'om' (lines '105'-'114'). 5 105–114
LocalVariableCouldBeFinal Local variable 'inputKey' could be declared final 3 106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 114
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 128
MethodArgumentCouldBeFinal Parameter 'omName' is not assigned and could be declared final 3 128
ShortVariable Avoid variables with short names like ph 3 130
LocalVariableCouldBeFinal Local variable 'ph' could be declared final 3 130
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 133
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 146
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 146
MethodArgumentCouldBeFinal Parameter 'omName' is not assigned and could be declared final 3 146
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 148
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 153
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 153

org/apache/turbine/om/Retrievable.java

Rule Violation Priority Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 52

org/apache/turbine/om/Retriever.java

Rule Violation Priority Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 44

org/apache/turbine/om/RetrieverFactory.java

Rule Violation Priority Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 43

org/apache/turbine/om/security/DefaultUserImpl.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 1–758
GodClass Possible God Class (WMC=67, ATFD=31, TCC=15.137%) 3 44–758
RedundantFieldInitializer Avoid using redundant field initializer for 'lastAccessDate' 3 50
RedundantFieldInitializer Avoid using redundant field initializer for 'permStorage' 3 53
UnusedAssignment The field initializer for 'tempStorage' is never used (overwritten on line 71) 3 56
RedundantFieldInitializer Avoid using redundant field initializer for 'tempStorage' 3 56
RedundantFieldInitializer Avoid using redundant field initializer for 'userDelegate' 3 59
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 66
ConstructorCallsOverridableMethod Overridable method 'setHasLoggedIn' called during object construction 1 72
MethodArgumentCouldBeFinal Parameter 'hsbe' is not assigned and could be declared final 3 82
MethodArgumentCouldBeFinal Parameter 'hsbe' is not assigned and could be declared final 3 94
LocalVariableCouldBeFinal Local variable 'securityService' could be declared final 3 100–102
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 101–102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 103
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 106
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 135
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 158
ShortVariable Avoid variables with short names like id 3 158
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 3 189
MethodArgumentCouldBeFinal Parameter 'firstName' is not assigned and could be declared final 3 211
MethodArgumentCouldBeFinal Parameter 'lastName' is not assigned and could be declared final 3 233
MethodArgumentCouldBeFinal Parameter 'address' is not assigned and could be declared final 3 255
MethodArgumentCouldBeFinal Parameter 'objectdata' is not assigned and could be declared final 3 280
MethodArgumentCouldBeFinal Parameter 'userGroupRoleSet' is not assigned and could be declared final 3 305
MethodArgumentCouldBeFinal Parameter 'userGroupRole' is not assigned and could be declared final 3 319
MethodArgumentCouldBeFinal Parameter 'userGroupRole' is not assigned and could be declared final 3 333
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 348
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 350
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 366
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 368
MethodArgumentCouldBeFinal Parameter 'cnt' is not assigned and could be declared final 3 399
MethodArgumentCouldBeFinal Parameter 'cnt' is not assigned and could be declared final 3 411
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 449–467
LocalVariableCouldBeFinal Local variable 'objectdata' could be declared final 3 453
MethodArgumentCouldBeFinal Parameter 'permStorage' is not assigned and could be declared final 3 476
MethodArgumentCouldBeFinal Parameter 'tempStorage' is not assigned and could be declared final 3 507
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 522
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 524
MethodArgumentCouldBeFinal Parameter 'def' is not assigned and could be declared final 3 536
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 536
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 540
LocalVariableCouldBeFinal Local variable 'val' could be declared final 3 540
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 541
UselessParentheses Useless parentheses. 4 541
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 543
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 556
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 556
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 558
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 568
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 570
MethodArgumentCouldBeFinal Parameter 'def' is not assigned and could be declared final 3 582
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 582
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 587
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'val' (lines '590'-'595'). 5 590–595
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 593
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 607
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 607
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 609
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 619
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 621
MethodArgumentCouldBeFinal Parameter 'confirm' is not assigned and could be declared final 3 641
MethodArgumentCouldBeFinal Parameter 'createDate' is not assigned and could be declared final 3 663
MethodArgumentCouldBeFinal Parameter 'lastLogin' is not assigned and could be declared final 3 685
LocalVariableCouldBeFinal Local variable 'loggedIn' could be declared final 3 698
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 699
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 709
LocalVariableCouldBeFinal Local variable 'value' could be declared final 3 725
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 726
MethodArgumentCouldBeFinal Parameter 'userDelegate' is not assigned and could be declared final 3 754

org/apache/turbine/om/security/User.java

Rule Violation Priority Line
ShortClassName Avoid short class names like User 4 41–289
LongVariable Avoid excessively long variable names like SESSION_ACCESS_COUNTER 3 60
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 288

org/apache/turbine/pipeline/CleanUpValve.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 49–52
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 58
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 58
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 65
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 79
CloseResource Ensure that resources like this RunData object are closed after use 3 81
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 81
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 84
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 88–89
LongVariable Avoid excessively long variable names like invalidatedSession 3 91
EmptyCatchBlock Avoid empty catch blocks 3 91–95

org/apache/turbine/pipeline/DefaultACLCreationValve.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 41–75
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 46
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 49
LongVariable Avoid excessively long variable names like actionAccessController 3 49
ImmutableField Private field 'actionAccessController' could be made final; it is only initialized in the declaration or constructor. 3 49
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 55
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 55
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 67

org/apache/turbine/pipeline/DefaultLoginValve.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 50–166
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 58
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 61
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 67
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 67
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 74
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 91
CognitiveComplexity The method 'process(PipelineData)' has a cognitive complexity of 21, current threshold is 15 3 91–148
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 92
CloseResource Ensure that resources like this RunData object are closed after use 3 94
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 94
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 100
LocalVariableCouldBeFinal Local variable 'actionName' could be declared final 3 100
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 101
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 103
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 118
LocalVariableCouldBeFinal Local variable 'names' could be declared final 3 118
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 119–141
LocalVariableCouldBeFinal Local variable 'nameList' could be declared final 3 123
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 124
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 126
LocalVariableCouldBeFinal Local variable 'session' could be declared final 3 129
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'session' (lines '129'-'148'). 5 129–148
LocalVariableCouldBeFinal Local variable 'name' could be declared final 3 130
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 134
LongVariable Avoid excessively long variable names like invalidatedSession 3 136
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 155
ShortVariable Avoid variables with short names like ti 3 160
LocalVariableCouldBeFinal Local variable 'ti' could be declared final 3 160

org/apache/turbine/pipeline/DefaultPipelineData.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 44–104
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 46
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 46
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 56
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 56
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 82
MethodArgumentCouldBeFinal Parameter 'innerKey' is not assigned and could be declared final 3 82
LocalVariableCouldBeFinal Local variable 'innerMap' could be declared final 3 84
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 89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 98
LocalVariableCouldBeFinal Local variable 'rds' could be declared final 3 98

org/apache/turbine/pipeline/DefaultSessionTimeoutValve.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 43–67
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 47
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 53
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 53
CloseResource Ensure that resources like this RunData object are closed after use 3 56
LocalVariableCouldBeFinal Local variable 'runData' could be declared final 3 56
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 61

org/apache/turbine/pipeline/DefaultSessionValidationValve.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 41–78
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 46
ImmutableField Private field 'actionSessionValidator' could be made final; it is only initialized in the declaration or constructor. 3 49
LongVariable Avoid excessively long variable names like actionSessionValidator 3 49
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 49
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 55
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 55
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 70

org/apache/turbine/pipeline/DefaultSetEncodingValve.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 47–92
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 50
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 50
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 56
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 56
LocalVariableCouldBeFinal Local variable 'req' could be declared final 3 59
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 63
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 87

org/apache/turbine/pipeline/DetermineActionValve.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 40–75
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 43
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 43
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 50
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 50
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 53
CloseResource Ensure that resources like this RunData object are closed after use 3 53
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 54
LocalVariableCouldBeFinal Local variable 'action' could be declared final 3 56–57
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 57
ConfusingTernary Avoid if (x != y) ..; else ..; 3 59–67

org/apache/turbine/pipeline/DetermineRedirectRequestedValve.java

Rule Violation Priority Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 43
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 43
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 48–51
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 57
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 57
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 73
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 76
CloseResource Ensure that resources like this RunData object are closed after use 3 76
LocalVariableCouldBeFinal Local variable 'requestRedirected' could be declared final 3 78
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 78
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 81
GuardLogStatement Logger calls should be surrounded by log level guards. 2 83
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 87

org/apache/turbine/pipeline/DetermineTargetValve.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 44–77
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 46
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 46
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 53
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 53
LocalVariableCouldBeFinal Local variable 'runData' could be declared final 3 56
CloseResource Ensure that resources like this RunData object are closed after use 3 56
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 57
LocalVariableCouldBeFinal Local variable 'target' could be declared final 3 59
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 59
ConfusingTernary Avoid if (x != y) ..; else ..; 3 61–69

org/apache/turbine/pipeline/ExecutePageValve.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 43–120
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 48
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 52
ImmutableField Private field 'pageDefault' could be made final; it is only initialized in the declaration or constructor. 3 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 55
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 61
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 61
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 68
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 84
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 85

org/apache/turbine/pipeline/Pipeline.java

Rule Violation Priority Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 60

org/apache/turbine/pipeline/TurbinePipeline.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 48–184
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 71
ImmutableField Private field 'state' could be made final; it is only initialized in the declaration or constructor. 3 71
LocalVariableCouldBeFinal Local variable 'v' could be declared final 3 84
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 97
MethodArgumentCouldBeFinal Parameter 'valve' is not assigned and could be declared final 3 116
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 139
MethodArgumentCouldBeFinal Parameter 'valves' is not assigned and could be declared final 3 139
MethodArgumentCouldBeFinal Parameter 'valve' is not assigned and could be declared final 3 148
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 157
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 161
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 171
LocalVariableCouldBeFinal Local variable 'current' could be declared final 3 175
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 181

org/apache/turbine/pipeline/Valve.java

Rule Violation Priority Line
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 100

org/apache/turbine/pipeline/XmlValve.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 34–58
MethodArgumentCouldBeFinal Parameter 'clazz' is not assigned and could be declared final 3 54

org/apache/turbine/pipeline/XmlValveAdapter.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 29–52
MethodArgumentCouldBeFinal Parameter 'xmlValve' is not assigned and could be declared final 3 35
LocalVariableCouldBeFinal Local variable 'valveClass' could be declared final 3 37
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 38
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 38
MethodArgumentCouldBeFinal Parameter 'valve' is not assigned and could be declared final 3 45
LocalVariableCouldBeFinal Local variable 'xmlValve' could be declared final 3 47
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 48

org/apache/turbine/services/BaseInitable.java

Rule Violation Priority Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 41
RedundantFieldInitializer Avoid using redundant field initializer for 'isInitialized' 3 41
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 50–53
MethodArgumentCouldBeFinal Parameter 'broker' is not assigned and could be declared final 3 61
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 88
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 137

org/apache/turbine/services/BaseInitableBroker.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 59–278
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 63
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 63
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 3 63
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 70
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 73
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 73
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 3 96
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 96
LocalVariableCouldBeFinal Local variable 'pos' could be declared final 3 102
LocalVariableCouldBeFinal Local variable 'msg' could be declared final 3 105–106
LocalVariableCouldBeFinal Local variable 'instance' could be declared final 3 118
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 119
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 122
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 3 143
LocalVariableCouldBeFinal Local variable 'initable' could be declared final 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 150
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 3 176
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 177
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 3 227
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 228
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'initable' (lines '236'-'276'). 5 236–276
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 236
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 236
AvoidRethrowingException A catch statement that catches an exception only to rethrow it should be avoided. 3 239–242
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 243–269
UnusedAssignment The initializer for variable 'msg' is never used (overwritten on lines 250, 255, 260 and 265) 3 246
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 3 248
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 3 253
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 3 258

org/apache/turbine/services/BaseService.java

Rule Violation Priority Line
DataClass The class 'BaseService' is suspected to be a Data Class (WOC=16.667%, NOPA=0, NOAM=5, WMC=8) 3 37–125
AtLeastOneConstructor Each class should declare at least one constructor 3 37–125
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 45
MethodArgumentCouldBeFinal Parameter 'broker' is not assigned and could be declared final 3 58
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 69
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 116
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 121

org/apache/turbine/services/BaseUnicastRemoteService.java

Rule Violation Priority Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 45
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 46
CallSuperInConstructor It is a good practice to call super() in a constructor 3 55–62
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 59
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 60
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 61
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 74
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 80
MethodArgumentCouldBeFinal Parameter 'broker' is not assigned and could be declared final 3 87
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 102
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 114
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 141
MethodArgumentCouldBeFinal Parameter 'broker' is not assigned and could be declared final 3 162

org/apache/turbine/services/FieldAnnotatedTurbineBaseService.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 37–63
AtLeastOneConstructor Each class should declare at least one constructor 3 37–63
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 41
GuardLogStatement Logger calls should be surrounded by log level guards. 2 56

org/apache/turbine/services/Initable.java

Rule Violation Priority Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 96

org/apache/turbine/services/InitableBroker.java

Rule Violation Priority Line
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 97

org/apache/turbine/services/InitializationException.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 3 47
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 3 60
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 3 60
ShortVariable Avoid variables with short names like t 3 60

org/apache/turbine/services/InstantiationException.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 3 51
ShortVariable Avoid variables with short names like t 3 63
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 3 63
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 3 63

org/apache/turbine/services/MethodAnnotatedTurbineBaseService.java

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

org/apache/turbine/services/ServiceBroker.java

Rule Violation Priority Line
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 95

org/apache/turbine/services/ServiceManager.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'setServiceObject': the method is declared in an interface type 3 79
UnnecessaryModifier Unnecessary modifier 'public' on method 'getServiceObject': the method is declared in an interface type 3 87

org/apache/turbine/services/TurbineBaseService.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 59–124
AtLeastOneConstructor Each class should declare at least one constructor 3 59–124
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 72
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 92–95
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 92

org/apache/turbine/services/TurbineServiceProvider.java

Rule Violation Priority Line
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 42

org/apache/turbine/services/TurbineServices.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'manager' is not assigned and could be declared final 3 67
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 67–75
LocalVariableCouldBeFinal Local variable 'previous' could be declared final 3 69

org/apache/turbine/services/assemblerbroker/TurbineAssemblerBrokerService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 55–306
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 60–61
RedundantFieldInitializer Avoid using redundant field initializer for 'factories' 3 64
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 64
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 67
RedundantFieldInitializer Avoid using redundant field initializer for 'assemblerCache' 3 67
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 70
RedundantFieldInitializer Avoid using redundant field initializer for 'loaderCache' 3 70
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 73
AvoidDuplicateLiterals The String literal "unchecked" appears 4 times in this file; the first occurrence is on line 84 3 84
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 3 85
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 3 100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 103
LocalVariableCouldBeFinal Local variable 'names' could be declared final 3 103
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 105
GuardLogStatement Logger calls should be surrounded by log level guards. 2 105
LocalVariableCouldBeFinal Local variable 'name2' could be declared final 3 107
LocalVariableCouldBeFinal Local variable 'factory' could be declared final 3 109
LocalVariableCouldBeFinal Local variable 'af' could be declared final 3 113–114
ShortVariable Avoid variables with short names like af 3 113
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 114
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 114
AvoidRethrowingException A catch statement that catches an exception only to rethrow it should be avoided. 3 118–121
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 124–128
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 3 146
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 148
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 148–156
LocalVariableCouldBeFinal Local variable 'i' could be declared final 3 148
LocalVariableCouldBeFinal Local variable 'type' could be declared final 3 150
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 152
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 164–166
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 170–172
LocalVariableCouldBeFinal Local variable 'cacheSize' could be declared final 3 170–172
MethodArgumentCouldBeFinal Parameter 'factory' is not assigned and could be declared final 3 190
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 192
CognitiveComplexity The method 'getAssembler(Class, String)' has a cognitive complexity of 21, current threshold is 15 3 211–260
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 3 211
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 211
CyclomaticComplexity The method 'getAssembler(Class, String)' has a cyclomatic complexity of 10. 3 211–260
LocalVariableCouldBeFinal Local variable 'key' could be declared final 3 214
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'assembler' (lines '215'-'219'). 5 215–219
LocalVariableCouldBeFinal Local variable 'facs' could be declared final 3 225
LocalVariableCouldBeFinal Local variable 'it' could be declared final 3 227
UselessParentheses Useless parentheses. 4 227
LocalVariableCouldBeFinal Local variable 'fac' could be declared final 3 229
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 233
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'assembler' (lines '233'-'260'). 5 233–260
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 235
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 240
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 240
LocalVariableCouldBeFinal Local variable 'oldAssembler' could be declared final 3 249
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 250–253
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 3 273
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'loader' (lines '275'-'279'). 5 275–279
LocalVariableCouldBeFinal Local variable 'facs' could be declared final 3 285
LocalVariableCouldBeFinal Local variable 'it' could be declared final 3 287
UselessParentheses Useless parentheses. 4 287
LocalVariableCouldBeFinal Local variable 'fac' could be declared final 3 289
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 290

org/apache/turbine/services/assemblerbroker/util/java/JavaActionFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 46

org/apache/turbine/services/assemblerbroker/util/java/JavaBaseFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 44–144
AbstractNaming Abstract classes should be named AbstractXXX 3 44–144
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 51
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 51
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 57
CognitiveComplexity The method 'getAssembler(String, String)' has a cognitive complexity of 19, current threshold is 15 3 67–124
MethodArgumentCouldBeFinal Parameter 'packageName' is not assigned and could be declared final 3 67
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 67
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'assembler' (lines '69'-'96'). 5 69–96
LocalVariableCouldBeFinal Local variable 'p' could be declared final 3 75
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 77
ShortVariable Avoid variables with short names like sb 3 77
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 3 77
LocalVariableCouldBeFinal Local variable 'className' could be declared final 3 80
LocalVariableNamingConventions The local variable name '_servClass' doesn't match '[a-z][a-zA-Z0-9]*' 1 90
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), '_servClass' is not final. 1 90
LocalVariableCouldBeFinal Local variable '_servClass' could be declared final 3 90
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 91–94
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 96
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 96
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 142

org/apache/turbine/services/assemblerbroker/util/java/JavaLayoutFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 46

org/apache/turbine/services/assemblerbroker/util/java/JavaNavigationFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 46

org/apache/turbine/services/assemblerbroker/util/java/JavaPageFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 46

org/apache/turbine/services/assemblerbroker/util/java/JavaScheduledJobFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 46

org/apache/turbine/services/assemblerbroker/util/java/JavaScreenFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 36–72
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 46

org/apache/turbine/services/assemblerbroker/util/python/PythonActionFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38–76
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 49

org/apache/turbine/services/assemblerbroker/util/python/PythonBaseFactory.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 48–177
AtLeastOneConstructor Each class should declare at least one constructor 3 48–177
LongVariable Avoid excessively long variable names like PYTHON_CONFIG_FILE 3 55
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 58
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 61
MethodArgumentCouldBeFinal Parameter 'subDirectory' is not assigned and could be declared final 3 71
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 71
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 72
LocalVariableCouldBeFinal Local variable 'path' could be declared final 3 74
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 78
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'assembler' (lines '84'-'156'). 5 84–156
LocalVariableCouldBeFinal Local variable 'confName' could be declared final 3 86
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'confName' (lines '86'-'156'). 5 86–156
LocalVariableCouldBeFinal Local variable 'fName' could be declared final 3 89
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 91
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 92
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 92
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 93
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 94
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 94
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 95
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 95
LocalVariableCouldBeFinal Local variable 'f' could be declared final 3 98
ShortVariable Avoid variables with short names like f 3 98
UseProperClassLoader In J2EE, getClassLoader() might not work as expected. Use Thread.currentThread().getContextClassLoader() instead. 3 112
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 112
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 130–139
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 132–138
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 132
ShortVariable Avoid variables with short names like t 3 143
LocalVariableCouldBeFinal Local variable 't' could be declared final 3 143
ExceptionAsFlowControl Avoid using exceptions as flow control. 3 146
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 146
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 175

org/apache/turbine/services/assemblerbroker/util/python/PythonLayoutFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38–76
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 49

org/apache/turbine/services/assemblerbroker/util/python/PythonNavigationFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38–76
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 49

org/apache/turbine/services/assemblerbroker/util/python/PythonPageFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38–76
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 49

org/apache/turbine/services/assemblerbroker/util/python/PythonScreenFactory.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38–76
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 49

org/apache/turbine/services/avaloncomponent/AvalonComponentService.java

Rule Violation Priority Line
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 37
LongVariable Avoid excessively long variable names like AVALON_LOG_CATEGORY 3 40
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 40
LongVariable Avoid excessively long variable names like COMPONENT_CONFIG_KEY 3 43
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 43
LongVariable Avoid excessively long variable names like COMPONENT_CONFIG_VALUE 3 46
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 46
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 49
LongVariable Avoid excessively long variable names like COMPONENT_ROLE_KEY 3 49
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 52
LongVariable Avoid excessively long variable names like COMPONENT_ROLE_VALUE 3 52
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 55
LongVariable Avoid excessively long variable names like COMPONENT_LOOKUP_KEY 3 55
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 58
LongVariable Avoid excessively long variable names like COMPONENT_APP_ROOT 3 58

org/apache/turbine/services/avaloncomponent/TurbineYaafiComponentService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 44–294
LongVariable Avoid excessively long variable names like CONTAINER_CONFIGURATION_KEY 3 52
LongVariable Avoid excessively long variable names like CONTAINER_CONFIGURATION_VALUE 3 55
LongVariable Avoid excessively long variable names like COMPONENT_PARAMETERS_KEY 3 58
LongVariable Avoid excessively long variable names like COMPONENT_PARAMETERS_VALUE 3 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 64
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 81
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 3 114
LocalVariableCouldBeFinal Local variable 'home' could be declared final 3 117
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 117
LocalVariableCouldBeFinal Local variable 'config' could be declared final 3 121–122
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 132
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 148
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 3 159
MethodArgumentCouldBeFinal Parameter 'component' is not assigned and could be declared final 3 170
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 3 179
MethodArgumentCouldBeFinal Parameter 'applicationRoot' is not assigned and could be declared final 3 193
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 193
LocalVariableCouldBeFinal Local variable 'result' could be declared final 3 196
LongVariable Avoid excessively long variable names like containerConfiguration 3 207
LocalVariableCouldBeFinal Local variable 'containerConfiguration' could be declared final 3 207–209
LongVariable Avoid excessively long variable names like roleConfigurationFileName 3 217
LocalVariableCouldBeFinal Local variable 'roleConfigurationFileName' could be declared final 3 217–220
LongVariable Avoid excessively long variable names like componentConfigurationFileName 3 224
LocalVariableCouldBeFinal Local variable 'componentConfigurationFileName' could be declared final 3 224–227
LongVariable Avoid excessively long variable names like parametersFileName 3 231
LocalVariableCouldBeFinal Local variable 'parametersFileName' could be declared final 3 231–234
LocalVariableCouldBeFinal Local variable 'containerConfiguration' could be declared final 3 244–247
LongVariable Avoid excessively long variable names like containerConfiguration 3 244
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 3 272
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 281
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 3 281
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 287–292
LocalVariableCouldBeFinal Local variable 'msg' could be declared final 3 289

org/apache/turbine/services/intake/IntakeTool.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 54–551
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 56
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 56
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 65
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 65
RedundantFieldInitializer Avoid using redundant field initializer for 'groups' 3 65
ShortVariable Avoid variables with short names like pp 3 68
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 68
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 70
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 70
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 3 71
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 71
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 3 72
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 72
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 75
RedundantFieldInitializer Avoid using redundant field initializer for 'pullMap' 3 75
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 81
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 86–88
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 3 94
LocalVariableCouldBeFinal Local variable 'groupNames' could be declared final 3 98
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groupCount' (lines '99'-'102'). 5 99–102
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 109
LocalVariableCouldBeFinal Local variable 'groupKeys' could be declared final 3 115
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groupNames' (lines '116'-'119'). 5 116–119
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groupNames' (lines '116'-'123'). 5 116–123
UnusedAssignment The initializer for variable 'groupNames' is never used (overwritten on lines 119 and 123) 3 116
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groupNames' (lines '123'-'126'). 5 123–126
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'groupNames' (lines '126'-'126'). 5 126
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 134–135
LocalVariableCouldBeFinal Local variable 'foundGroups' could be declared final 3 134–135
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 139–140
ShortVariable Avoid variables with short names like vp 3 155
MethodArgumentCouldBeFinal Parameter 'vp' is not assigned and could be declared final 3 155
LocalVariableCouldBeFinal Local variable 'group' could be declared final 3 157
LocalVariableCouldBeFinal Local variable 'group' could be declared final 3 183
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 197
MethodArgumentCouldBeFinal Parameter 'sb' is not assigned and could be declared final 3 210
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 210
ShortVariable Avoid variables with short names like sb 3 210
LocalVariableCouldBeFinal Local variable 'group' could be declared final 3 230
DefaultPackage Use explicit scoping instead of the default package private level 3 252
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 252
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the groupName field if you want a default access modifier 3 252
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 3 259
LinguisticNaming Linguistics Antipattern - The setter 'setKey' should not return any type except void linguistically 3 283–287
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 283
MethodArgumentCouldBeFinal Parameter 'create' is not assigned and could be declared final 3 297
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 297
LinguisticNaming Linguistics Antipattern - The setter 'setKey' should not return any type except void linguistically 3 297–315
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'g' (lines '300'-'309'). 5 300–309
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'g' (lines '300'-'305'). 5 300–305
ShortVariable Avoid variables with short names like g 3 300
LocalVariableCouldBeFinal Local variable 'inputKey' could be declared final 3 302
MethodArgumentCouldBeFinal Parameter 'obj' is not assigned and could be declared final 3 323
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'g' (lines '325'-'333'). 5 325–333
ShortVariable Avoid variables with short names like g 3 325
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'g' (lines '325'-'337'). 5 325–337
UnusedAssignment The initializer for variable 'g' is never used (overwritten on lines 333 and 337) 3 325
LocalVariableCouldBeFinal Local variable 'inputKey' could be declared final 3 329–330
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 341
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 3 357
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 3 370
MethodArgumentCouldBeFinal Parameter 'throwExceptions' is not assigned and could be declared final 3 370
LocalVariableCouldBeFinal Local variable 'group' could be declared final 3 384
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 398
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 3 398
MethodArgumentCouldBeFinal Parameter 'create' is not assigned and could be declared final 3 413
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 3 413
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 413
LocalVariableCouldBeFinal Local variable 'ph' could be declared final 3 425
ShortVariable Avoid variables with short names like ph 3 425
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 426
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 435
LocalVariableCouldBeFinal Local variable 'groupKeys' could be declared final 3 442
LocalVariableCouldBeFinal Local variable 'groupKey' could be declared final 3 448
GuardLogStatement Logger calls should be surrounded by log level guards. 2 463
LocalVariableCouldBeFinal Local variable 'allGroups' could be declared final 3 475
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 475
LocalVariableCouldBeFinal Local variable 'group' could be declared final 3 478
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 495
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 495
LocalVariableCouldBeFinal Local variable 'group' could be declared final 3 521
GuardLogStatement Logger calls should be surrounded by log level guards. 2 529–530
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 536

org/apache/turbine/services/jsonrpc/JSONProcessor.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'JSONProcessor' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Constants)' 1 39–87
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 40–87
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 42
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_bridge' is not final. 1 51
MethodArgumentCouldBeFinal Parameter 'json_bridge' is not assigned and could be declared final 3 51
MethodArgumentCouldBeFinal Parameter 'request' is not assigned and could be declared final 3 51
FormalParameterNamingConventions The method parameter name 'json_bridge' doesn't match '[a-z][a-zA-Z0-9]*' 1 51
MethodArgumentCouldBeFinal Parameter 'cdata' is not assigned and could be declared final 3 51
LocalVariableNamingConventions The local variable name 'json_req' doesn't match '[a-z][a-zA-Z0-9]*' 1 54
UnusedAssignment The initializer for variable 'json_req' is never used (overwritten on line 58) 3 54
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_req' is not final. 1 54
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'json_req' (lines '54'-'58'). 5 54–58
LocalVariableNamingConventions The local variable name 'json_res' doesn't match '[a-z][a-zA-Z0-9]*' 1 55
UnusedAssignment The initializer for variable 'json_res' is never used (overwritten on lines 75 and 80) 3 55
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'json_res' (lines '55'-'75'). 5 55–75
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_res' is not final. 1 55
LocalVariableCouldBeFinal Local variable 'methodName' could be declared final 3 61
LocalVariableCouldBeFinal Local variable 'arguments' could be declared final 3 62
LocalVariableCouldBeFinal Local variable 'object_id' could be declared final 3 65
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'object_id' is not final. 1 65
LocalVariableNamingConventions The local variable name 'object_id' doesn't match '[a-z][a-zA-Z0-9]*' 1 65
ShortVariable Avoid variables with short names like sb 3 66
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 3 66
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 69
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 71
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 71
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'json_res' (lines '75'-'80'). 5 75–80
InvalidLogMessageFormat Too many arguments, expected 0 argument but have 1 5 83
InvalidLogMessageFormat Too many arguments, expected 0 argument but have 1 5 83

org/apache/turbine/services/jsonrpc/JsonRpcService.java

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

org/apache/turbine/services/jsonrpc/TurbineJsonRpcService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 37–102
MethodArgumentCouldBeFinal Parameter 'cdata' is not assigned and could be declared final 3 45
MethodArgumentCouldBeFinal Parameter 'request' is not assigned and could be declared final 3 46
FormalParameterNamingConventions The method parameter name 'json_bridge' doesn't match '[a-z][a-zA-Z0-9]*' 1 46
MethodArgumentCouldBeFinal Parameter 'json_bridge' is not assigned and could be declared final 3 46
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_bridge' is not final. 1 46
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 52
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 52
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 54
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 3 58
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 58
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 58
LocalVariableNamingConventions The local variable name 'json_bridge' doesn't match '[a-z][a-zA-Z0-9]*' 1 60
LocalVariableCouldBeFinal Local variable 'json_bridge' could be declared final 3 60
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_bridge' is not final. 1 60
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 61
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 3 65
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'json_bridge' is not final. 1 67
LocalVariableNamingConventions The local variable name 'json_bridge' doesn't match '[a-z][a-zA-Z0-9]*' 1 67
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 3 77

org/apache/turbine/services/jsp/JspService.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like BUFFER_SIZE_DEFAULT 3 56

org/apache/turbine/services/jsp/TurbineJspService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 53–305
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 58
LongVariable Avoid excessively long variable names like relativeTemplatePaths 3 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 64
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 67
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 87
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 101
LocalVariableCouldBeFinal Local variable 'req' could be declared final 3 103
LocalVariableCouldBeFinal Local variable 'templateLink' could be declared final 3 110
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 113
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 114
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 138
MethodArgumentCouldBeFinal Parameter 'templateName' is not assigned and could be declared final 3 138
MethodArgumentCouldBeFinal Parameter 'isForward' is not assigned and could be declared final 3 138
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 143
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'data' (lines '146'-'194'). 5 146–194
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 146
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 146
LongVariable Avoid excessively long variable names like relativeTemplateName 3 149
LocalVariableCouldBeFinal Local variable 'relativeTemplateName' could be declared final 3 149
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 158–159
LocalVariableCouldBeFinal Local variable 'dispatcher' could be declared final 3 158–159
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 158–159
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 170
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 170
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 175
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 180–181
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 180–181
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 182
MethodArgumentCouldBeFinal Parameter 'templateName' is not assigned and could be declared final 3 205
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 205
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 215
LocalVariableCouldBeFinal Local variable 'config' could be declared final 3 217
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 221
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 232–233
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 244
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 246
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 258
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 258
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 273
LocalVariableCouldBeFinal Local variable 'relativeTemplate' could be declared final 3 275
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'relativeTemplate' (lines '275'-'288'). 5 275–288
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 284
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 296
SimplifyStartsWith This call to String.startsWith can be rewritten using String.charAt(0) 3 298
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 301

org/apache/turbine/services/jsp/util/JspNavigation.java

Rule Violation Priority Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 50
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 53
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 60
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 69
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 71
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'module' (lines '72'-'76'). 5 72–76
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 75
LocalVariableCouldBeFinal Local variable 'templateService' 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 77
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 79
LocalVariableCouldBeFinal Local variable 'message' could be declared final 3 81–82
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 86
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 86
EmptyCatchBlock Avoid empty catch blocks 3 88–91

org/apache/turbine/services/jsp/util/JspScreenPlaceholder.java

Rule Violation Priority Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 52
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 57
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 64
LocalVariableCouldBeFinal Local variable 'abs' could be declared final 3 67–68
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'template' (lines '77'-'81'). 5 77–81
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'module' (lines '78'-'83'). 5 78–83
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 81
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 82
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 82
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 83
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 86
LocalVariableCouldBeFinal Local variable 'message' could be declared final 3 88–89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 93
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 93
EmptyCatchBlock Avoid empty catch blocks 3 95–98

org/apache/turbine/services/localization/DateTimeFormatterInterface.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on field 'DATE_TIME_FORMAT_KEY': the field is declared in an interface type 3 33
LongVariable Avoid excessively long variable names like DATE_TIME_FORMAT_KEY 3 33
LongVariable Avoid excessively long variable names like DATE_TIME_ZONEID_KEY 3 35
UnnecessaryModifier Unnecessary modifier 'final' on field 'DATE_TIME_ZONEID_KEY': the field is declared in an interface type 3 35
UnnecessaryModifier Unnecessary modifier 'final' on field 'USE_TURBINE_LOCALE_KEY': the field is declared in an interface type 3 37
LongVariable Avoid excessively long variable names like USE_TURBINE_LOCALE_KEY 3 37
LongVariable Avoid excessively long variable names like USE_REQUEST_LOCALE_KEY 3 39
UnnecessaryModifier Unnecessary modifier 'final' on field 'USE_REQUEST_LOCALE_KEY': the field is declared in an interface type 3 39
LongVariable Avoid excessively long variable names like DATE_TIME_FORMAT_DEFAULT 3 42
UnnecessaryModifier Unnecessary modifier 'final' on field 'DATE_TIME_FORMAT_DEFAULT': the field is declared in an interface type 3 42

org/apache/turbine/services/localization/DateTimeFormatterService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 48–257
RedundantFieldInitializer Avoid using redundant field initializer for 'formatPattern' 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 'dateTimeFormat' 3 54
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 54
RedundantFieldInitializer Avoid using redundant field initializer for 'locale' 3 56
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 71
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 71
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 71
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 90–91
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 93–94
LocalVariableCouldBeFinal Local variable 'useTurbineLocale' could be declared final 3 93–94
LocalVariableCouldBeFinal Local variable 'localeSetter' could be declared final 3 96–98
UselessParentheses Useless parentheses. 4 96
LocalVariableCouldBeFinal Local variable 'zoneIdStr' could be declared final 3 101–102
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 101–102
LocalVariableCouldBeFinal Local variable 'zoneIdSet' could be declared final 3 103–104
ConfusingTernary Avoid if (x != y) ..; else ..; 3 103–104
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 107–108
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 107–108
GuardLogStatement Logger calls should be surrounded by log level guards. 2 110–112
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 3 117
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 3 123
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 3 123
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 3 129
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 3 129
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 129
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 135
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 3 135
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 3 135
MethodArgumentCouldBeFinal Parameter 'zoneId' is not assigned and could be declared final 3 136
UnusedAssignment The initializer for variable 'result' is never used (overwritten on lines 141 and 164) 3 137
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '137'-'163'). 5 137–163
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '137'-'141'). 5 137–141
ConfusingTernary Avoid if (x != y) ..; else ..; 3 147–153
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 149
GuardLogStatement Logger calls should be surrounded by log level guards. 2 151
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 152
ConfusingTernary Avoid if (x != y) ..; else ..; 3 154–160
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 156
GuardLogStatement Logger calls should be surrounded by log level guards. 2 158
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 159
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'result' (lines '163'-'172'). 5 163–172
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 164
MethodArgumentCouldBeFinal Parameter 'outgoingFormatPattern' is not assigned and could be declared final 3 175
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 175
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 3 175
LongVariable Avoid excessively long variable names like incomingFormatPattern 3 175
LongVariable Avoid excessively long variable names like outgoingFormatPattern 3 175
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 179
AvoidReassigningParameters Avoid reassigning parameters such as 'incomingFormatPattern' 2 183
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 185
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 186
LocalVariableCouldBeFinal Local variable 'incomingFormat' could be declared final 3 188
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 199
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 3 199
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 204
AvoidReassigningParameters Avoid reassigning parameters such as 'incomingFormat' 2 208
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 210
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 211
AvoidReassigningParameters Avoid reassigning parameters such as 'outgoingFormat' 2 215
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 218–219
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 219
MethodArgumentCouldBeFinal Parameter 'outgoingFormat' is not assigned and could be declared final 3 223
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 3 223
MethodArgumentCouldBeFinal Parameter 'incomingFormat' is not assigned and could be declared final 3 229
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 3 229
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 3 235
MethodArgumentCouldBeFinal Parameter 'outgoingFormat' is not assigned and could be declared final 3 235
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 235
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 244
MethodArgumentCouldBeFinal Parameter 'zoneId' is not assigned and could be declared final 3 253

org/apache/turbine/services/localization/LocalizationTool.java

Rule Violation Priority Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 42
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 46
LongVariable Avoid excessively long variable names like localizationService 3 46
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 52
ConstructorCallsOverridableMethod Overridable method 'refresh' called during object construction 1 59
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 75
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 79
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 109
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 122
MethodArgumentCouldBeFinal Parameter 'args' is not assigned and could be declared final 3 122
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 134
UselessParentheses Useless parentheses. 4 140
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 152

org/apache/turbine/services/localization/RundataLocalizationService.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 43–79
AtLeastOneConstructor Each class should declare at least one constructor 3 43–79
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 45
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 45
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 48
LocalVariableCouldBeFinal Local variable 'user' could be declared final 3 49
UselessParentheses Useless parentheses. 4 51
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 51
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 55
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 55
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 61
LocalVariableCouldBeFinal Local variable 'locale' could be declared final 3 61
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 64
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 69
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 72
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 74

org/apache/turbine/services/naming/TurbineNamingService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 50–171
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 55
RedundantFieldInitializer Avoid using redundant field initializer for 'contextPropsList' 3 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 64
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 64
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 3 81
LocalVariableCouldBeFinal Local variable 'contextKeys' could be declared final 3 86
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 86–113
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 86
LocalVariableCouldBeFinal Local variable 'key' could be declared final 3 89
LocalVariableCouldBeFinal Local variable 'end' could be declared final 3 90
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 3 90
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 90
LocalVariableCouldBeFinal Local variable 'contextName' could be declared final 3 97
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 97
UnusedAssignment The initializer for variable 'contextProps' is never used (overwritten on lines 102 and 106) 3 98
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '98'-'106'). 5 98–106
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '98'-'102'). 5 98–102
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 106
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 109–110
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 109
LocalVariableCouldBeFinal Local variable 'entry' could be declared final 3 115
LocalVariableCouldBeFinal Local variable 'key' could be declared final 3 117
LocalVariableCouldBeFinal Local variable 'contextProps' could be declared final 3 118
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 119
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 119
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 129–130
MethodArgumentCouldBeFinal Parameter 'contextName' is not assigned and could be declared final 3 146
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '150'-'158'). 5 150–158
UnusedAssignment The initializer for variable 'contextProps' is never used (overwritten on lines 154 and 158) 3 150
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'contextProps' (lines '150'-'154'). 5 150–154
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 164
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 166

org/apache/turbine/services/pull/PullService.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like TOOL_RESOURCES_DIR_KEY 3 82
LongVariable Avoid excessively long variable names like TOOL_RESOURCES_DIR_DEFAULT 3 88
LongVariable Avoid excessively long variable names like TOOLS_PER_REQUEST_REFRESH_KEY 3 94
LongVariable Avoid excessively long variable names like TOOLS_PER_REQUEST_REFRESH_DEFAULT 3 97
LongVariable Avoid excessively long variable names like SESSION_TOOLS_ATTRIBUTE_PREFIX 3 100

org/apache/turbine/services/pull/tools/ContentTool.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like CONTENT_TOOL_PREFIX 3 54
LongVariable Avoid excessively long variable names like CONTENT_TOOL_ENCODING_KEY 3 62
LongVariable Avoid excessively long variable names like CONTENT_TOOL_ENCODING_DEFAULT 3 65
LongVariable Avoid excessively long variable names like CONTENT_TOOL_RELATIVE_KEY 3 68
LongVariable Avoid excessively long variable names like CONTENT_TOOL_RELATIVE_DEFAULT 3 71
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the wantEncoding field if you want a default access modifier 3 74
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 74
RedundantFieldInitializer Avoid using redundant field initializer for 'wantEncoding' 3 74
DefaultPackage Use explicit scoping instead of the default package private level 3 74
DefaultPackage Use explicit scoping instead of the default package private level 3 77
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 77
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the wantRelative field if you want a default access modifier 3 77
RedundantFieldInitializer Avoid using redundant field initializer for 'wantRelative' 3 77
RedundantFieldInitializer Avoid using redundant field initializer for 'dataURI' 3 80
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 80
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 85–88
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 107
LocalVariableCouldBeFinal Local variable 'pipelineData' could be declared final 3 114
CloseResource Ensure that resources like this PipelineData object are closed after use 3 114
LocalVariableCouldBeFinal Local variable 'runData' could be declared final 3 115
CloseResource Ensure that resources like this RunData object are closed after use 3 115
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 3 124–125
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 125
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 158
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 175
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 191

org/apache/turbine/services/pull/tools/TemplateLink.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 61–633
LongVariable Avoid excessively long variable names like TEMPLATE_LINK_PREFIX 3 63
LongVariable Avoid excessively long variable names like TEMPLATE_LINK_RELATIVE_KEY 3 66
LongVariable Avoid excessively long variable names like TEMPLATE_LINK_RELATIVE_DEFAULT 3 69
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 72
RedundantFieldInitializer Avoid using redundant field initializer for 'wantRelative' 3 72
LongVariable Avoid excessively long variable names like TEMPLATE_LINK_ENCODING_KEY 3 80
LongVariable Avoid excessively long variable names like TEMPLATE_LINK_ENCODING_DEFAULT 3 83
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the wantEncoding field if you want a default access modifier 3 86
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 86
RedundantFieldInitializer Avoid using redundant field initializer for 'wantEncoding' 3 86
DefaultPackage Use explicit scoping instead of the default package private level 3 86
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 89
RedundantFieldInitializer Avoid using redundant field initializer for 'template' 3 89
RedundantFieldInitializer Avoid using redundant field initializer for 'templateURI' 3 92
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 92
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 95
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 95
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 102–105
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 124
CloseResource Ensure that resources like this PipelineData object are closed after use 3 131
LocalVariableCouldBeFinal Local variable 'pipelineData' could be declared final 3 131
LocalVariableCouldBeFinal Local variable 'runData' could be declared final 3 132
CloseResource Ensure that resources like this RunData object are closed after use 3 132
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 3 140–141
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 141
LinguisticNaming Linguistics Antipattern - The setter 'setEncodeURLOff' should not return any type except void linguistically 3 184–188
LinguisticNaming Linguistics Antipattern - The setter 'setPage' should not return any type except void linguistically 3 196–202
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 196
LinguisticNaming Linguistics Antipattern - The setter 'setAction' should not return any type except void linguistically 3 224–229
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 3 224
MethodArgumentCouldBeFinal Parameter 'event' is not assigned and could be declared final 3 241
LinguisticNaming Linguistics Antipattern - The setter 'setActionEvent' should not return any type except void linguistically 3 241–246
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 3 241
LinguisticNaming Linguistics Antipattern - The setter 'setScreen' should not return any type except void linguistically 3 257–262
MethodArgumentCouldBeFinal Parameter 'screen' is not assigned and could be declared final 3 257
LinguisticNaming Linguistics Antipattern - The setter 'setReference' should not return any type except void linguistically 3 270–274
MethodArgumentCouldBeFinal Parameter 'reference' is not assigned and could be declared final 3 270
MethodArgumentCouldBeFinal Parameter 'pp' is not assigned and could be declared final 3 302
ShortVariable Avoid variables with short names like pp 3 302
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 315
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 315
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 328
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 328
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 341
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 341
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 354
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 354
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 367
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 367
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 380
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 380
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 393
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 393
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 406
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 406
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 419
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 419
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 432
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 432
ShortVariable Avoid variables with short names like pp 3 445
MethodArgumentCouldBeFinal Parameter 'pp' is not assigned and could be declared final 3 445
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 468
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 491
LocalVariableCouldBeFinal Local variable 'output' could be declared final 3 521
LocalVariableCouldBeFinal Local variable 'output' could be declared final 3 556

org/apache/turbine/services/pull/tools/UITool.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 65–390
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 68
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 68
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 78
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 84
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 132
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 160
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 174
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 188
MethodArgumentCouldBeFinal Parameter 'skin' is not assigned and could be declared final 3 206
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 206
MethodArgumentCouldBeFinal Parameter 'imageId' is not assigned and could be declared final 3 225
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 225
MethodArgumentCouldBeFinal Parameter 'imageId' is not assigned and could be declared final 3 243
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 243
MethodArgumentCouldBeFinal Parameter 'imageId' is not assigned and could be declared final 3 255
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 274
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 292
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 3 322
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 322
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 3 340
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 340
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 3 352
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 364
LocalVariableCouldBeFinal Local variable 'pipelineData' could be declared final 3 378
CloseResource Ensure that resources like this PipelineData object are closed after use 3 378
LocalVariableCouldBeFinal Local variable 'runData' could be declared final 3 379
CloseResource Ensure that resources like this RunData object are closed after use 3 379

org/apache/turbine/services/pull/util/DateFormatter.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38–119
LongVariable Avoid excessively long variable names like DATE_FORMAT_DEFAULT 3 42
RedundantFieldInitializer Avoid using redundant field initializer for 'dateFormat' 3 50
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 50
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 64
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 66–67
MethodArgumentCouldBeFinal Parameter 'theDate' is not assigned and could be declared final 3 90
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 3 103
MethodArgumentCouldBeFinal Parameter 'theDate' is not assigned and could be declared final 3 103
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '105'-'115'). 5 105–115
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '105'-'110'). 5 105–110
UnusedAssignment The initializer for variable 'result' is never used (overwritten on lines 110 and 115) 3 105
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'sdf' (lines '106'-'118'). 5 106–118
LocalVariableCouldBeFinal Local variable 'sdf' could be declared final 3 106

org/apache/turbine/services/pull/util/DateTimeFormatterTool.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 54–218
TooManyMethods This class has too many methods, consider refactoring it. 3 56–218
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 59
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 61
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 65
LongVariable Avoid excessively long variable names like localizationService 3 65
RedundantFieldInitializer Avoid using redundant field initializer for 'overrideFromRequestLocale' 3 69
SingularField Perhaps 'overrideFromRequestLocale' could be replaced by a local variable. 3 69
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 69
LongVariable Avoid excessively long variable names like overrideFromRequestLocale 3 69
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 93
LocalVariableCouldBeFinal Local variable 'serviceManager' could be declared final 3 99
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 103–104
GuardLogStatement Logger calls should be surrounded by log level guards. 2 111
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 135
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 140
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 3 151
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 153
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 153
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 3 157
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 3 157
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 159
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 3 163
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 163
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 3 163
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 165
MethodArgumentCouldBeFinal Parameter 'temporalAccessor' is not assigned and could be declared final 3 169
MethodArgumentCouldBeFinal Parameter 'dateFormatString' is not assigned and could be declared final 3 169
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 169
MethodArgumentCouldBeFinal Parameter 'zoneId' is not assigned and could be declared final 3 170
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 171
LongVariable Avoid excessively long variable names like incomingFormatPattern 3 175
LongVariable Avoid excessively long variable names like outgoingFormatPattern 3 175
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 175
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 3 175
MethodArgumentCouldBeFinal Parameter 'outgoingFormatPattern' is not assigned and could be declared final 3 175
MethodArgumentCouldBeFinal Parameter 'incomingFormatPattern' is not assigned and could be declared final 3 175
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 177
MethodArgumentCouldBeFinal Parameter 'outgoingFormat' is not assigned and could be declared final 3 181
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 3 181
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.time.format.DateTimeFormatter' due to existing import 'java.time.format.DateTimeFormatter' 4 181
MethodArgumentCouldBeFinal Parameter 'incomingFormat' is not assigned and could be declared final 3 182
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.time.format.DateTimeFormatter' due to existing import 'java.time.format.DateTimeFormatter' 4 182
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 182
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 184
MethodArgumentCouldBeFinal Parameter 'outgoingFormat' is not assigned and could be declared final 3 188
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 3 188
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 190
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 190
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 3 194
MethodArgumentCouldBeFinal Parameter 'incomingFormat' is not assigned and could be declared final 3 194
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 196
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 196
MethodArgumentCouldBeFinal Parameter 'outgoingFormat' is not assigned and could be declared final 3 200
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 200
MethodArgumentCouldBeFinal Parameter 'src' is not assigned and could be declared final 3 200
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 202
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 202
MethodArgumentCouldBeFinal Parameter 'locale' is not assigned and could be declared final 3 209
ConfusingTernary Avoid if (x != y) ..; else ..; 3 215
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 215

org/apache/turbine/services/pull/util/SessionData.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 39–118
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 42
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 50
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 73
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 84
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 96
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 96
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 116

org/apache/turbine/services/rundata/RunDataService.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like PARAMETER_PARSER_KEY 3 54

org/apache/turbine/services/rundata/TurbineRunDataService.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like DEFAULT_PARAMETER_PARSER 3 70
LongVariable Avoid excessively long variable names like DEFAULT_COOKIE_PARSER 3 74
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 78
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 81
RedundantFieldInitializer Avoid using redundant field initializer for 'pool' 3 84
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 84
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 87
RedundantFieldInitializer Avoid using redundant field initializer for 'parserService' 3 87
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 92–95
CyclomaticComplexity The method 'init()' has a cyclomatic complexity of 11. 3 103–168
CognitiveComplexity The method 'init()' has a cognitive complexity of 18, current threshold is 15 3 103–168
LocalVariableCouldBeFinal Local variable 'def' could be declared final 3 107–112
UseShortArrayInitializer Array initialization can be written shorter 3 107–112
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 3 116
OneDeclarationPerLine Use one line for each declaration, it enhances code readability. 4 119
LocalVariableCouldBeFinal Local variable 'plist' could be declared final 3 121–126
UseShortArrayInitializer Array initialization can be written shorter 3 121–126
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'plist' (lines '121'-'168'). 5 121–168
LocalVariableCouldBeFinal Local variable 'i' could be declared final 3 127
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 127–148
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'value' (lines '130'-'168'). 5 130–168
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '130'-'130'). 5 130
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'j' (lines '131'-'146'). 5 131–146
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'j' (lines '131'-'131'). 5 131
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'j' (lines '131'-'168'). 5 131–168
ShortVariable Avoid variables with short names like j 3 131
LocalVariableCouldBeFinal Local variable 'plistKey' could be declared final 3 132
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 134
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 134
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 136
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 136
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 138–142
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'config' (lines '143'-'168'). 5 143–168
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'j' (lines '146'-'131'). 5 146–131
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'j' (lines '146'-'168'). 5 146–168
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'j' (lines '146'-'146'). 5 146
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 151
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 159
MethodArgumentCouldBeFinal Parameter 'req' is not assigned and could be declared final 3 192
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 3 193
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 3 194
CyclomaticComplexity The method 'getRunData(String, HttpServletRequest, HttpServletResponse, ServletConfig)' has a cyclomatic complexity of 12. 3 213–287
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 213
MethodArgumentCouldBeFinal Parameter 'req' is not assigned and could be declared final 3 214
MethodArgumentCouldBeFinal Parameter 'res' is not assigned and could be declared final 3 215
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 3 216
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 218
LocalVariableCouldBeFinal Local variable 'cfg' could be declared final 3 233
LocalVariableCouldBeFinal Local variable 'runDataClazz' could be declared final 3 242
LocalVariableCouldBeFinal Local variable 'parameterParserClazz' could be declared final 3 243
LongVariable Avoid excessively long variable names like parameterParserClazz 3 243
LocalVariableCouldBeFinal Local variable 'cookieParserClazz' could be declared final 3 244
ShortVariable Avoid variables with short names like pp 3 248
LocalVariableCouldBeFinal Local variable 'pp' could be declared final 3 248
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 249
ShortVariable Avoid variables with short names like cp 3 252
LocalVariableCouldBeFinal Local variable 'cp' could be declared final 3 252
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 253
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 276
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 276
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 277
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 277
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 280
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 280
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 281
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 281
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 296
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 303
AvoidUncheckedExceptionsInSignatures A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause 3 312
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 3 312

org/apache/turbine/services/schedule/AbstractJobEntry.java

Rule Violation Priority Line
ModifiedCyclomaticComplexity The class 'AbstractJobEntry' has a Modified Cyclomatic Complexity of 2 (Highest = 10). 3 35–478
StdCyclomaticComplexity The class 'AbstractJobEntry' has a Standard Cyclomatic Complexity of 2 (Highest = 10). 3 35–478
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 38
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 38
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 41
RedundantFieldInitializer Avoid using redundant field initializer for 'jobIsActive' 3 41
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 44
RedundantFieldInitializer Avoid using redundant field initializer for 'runtime' 3 44
MethodArgumentCouldBeFinal Parameter 'sec' is not assigned and could be declared final 3 94
MethodArgumentCouldBeFinal Parameter 'min' is not assigned and could be declared final 3 95
MethodArgumentCouldBeFinal Parameter 'hour' is not assigned and could be declared final 3 96
MethodArgumentCouldBeFinal Parameter 'wd' is not assigned and could be declared final 3 97
ShortVariable Avoid variables with short names like wd 3 97
FormalParameterNamingConventions The method parameter name 'day_mo' doesn't match '[a-z][a-zA-Z0-9]*' 1 98
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'day_mo' is not final. 1 98
MethodArgumentCouldBeFinal Parameter 'day_mo' is not assigned and could be declared final 3 98
MethodArgumentCouldBeFinal Parameter 'task' is not assigned and could be declared final 3 99
ConstructorCallsOverridableMethod Overridable method 'calcRunTime' called during object construction 1 117
ShortVariable Avoid variables with short names like je 3 129
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 129
MethodArgumentCouldBeFinal Parameter 'isActive' is not assigned and could be declared final 3 140
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 187
LocalVariableCouldBeFinal Local variable 'schedrun' could be declared final 3 210
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'schedrun' (lines '210'-'292'). 5 210–292
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'now' (lines '211'-'292'). 5 211–292
LocalVariableCouldBeFinal Local variable 'now' could be declared final 3 211
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 218
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 225
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 238
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 244
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 258
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 264
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 277
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 283
StdCyclomaticComplexity The method 'evaluateJobType' has a Standard Cyclomatic Complexity of 10. 3 304–375
CyclomaticComplexity The method 'evaluateJobType()' has a cyclomatic complexity of 21. 3 304–375
ModifiedCyclomaticComplexity The method 'evaluateJobType' has a Modified Cyclomatic Complexity of 10. 3 304–375
CognitiveComplexity The method 'evaluateJobType()' has a cognitive complexity of 37, current threshold is 15 3 304–375
AvoidDuplicateLiterals The String literal "Error in JobEntry. Bad Job parameter." appears 5 times in this file; the first occurrence is on line 323 3 323
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 326
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 337
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 349
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 361
ShortVariable Avoid variables with short names like v 3 391
ShortVariable Avoid variables with short names like v 3 405
ShortVariable Avoid variables with short names like v 3 419
ShortVariable Avoid variables with short names like v 3 433
ShortVariable Avoid variables with short names like v 3 447
ShortVariable Avoid variables with short names like v 3 461
ShortVariable Avoid variables with short names like v 3 477

org/apache/turbine/services/schedule/AbstractSchedulerService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 41–364
TooManyMethods This class has too many methods, consider refactoring it. 3 42–364
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 44
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 44
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 47
RedundantFieldInitializer Avoid using redundant field initializer for 'scheduleQueue' 3 47
ImmutableField Private field 'enabled' could be made final; it is only initialized in the declaration or constructor. 3 50
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 53
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 53
LongVariable Avoid excessively long variable names like houseKeepingThread 3 53
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 56
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 56
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 69
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 71
LocalVariableCouldBeFinal Local variable 'jobs' could be declared final 3 78
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 84
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 108
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 111
FormalParameterNamingConventions The method parameter name 'day_mo' doesn't match '[a-z][a-zA-Z0-9]*' 1 118
ShortVariable Avoid variables with short names like wd 3 118
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'day_mo' is not final. 1 118
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 141
ShortVariable Avoid variables with short names like je 3 141
ShortVariable Avoid variables with short names like je 3 155
ShortVariable Avoid variables with short names like je 3 166
MethodArgumentCouldBeFinal Parameter 'enabled' is not assigned and could be declared final 3 185
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 205–209
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 215–224
LocalVariableCouldBeFinal Local variable 'thread' could be declared final 3 218
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 218
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 233
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 233–236
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 241–244
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 243
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 252–275
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 262
UseNotifyAllInsteadOfNotify Call Thread.notifyAll() rather than Thread.notify() 3 272
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 284–326
LocalVariableCouldBeFinal Local variable 'je' could be declared final 3 292
ShortVariable Avoid variables with short names like je 3 292
LocalVariableCouldBeFinal Local variable 'now' could be declared final 3 301
LocalVariableCouldBeFinal Local variable 'when' could be declared final 3 302
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 302
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 314
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'taskName' (lines '335'-'343'). 5 335–343
ShortVariable Avoid variables with short names like je 3 340
LocalVariableCouldBeFinal Local variable 'je' could be declared final 3 340
ConfusingTernary Avoid if (x != y) ..; else ..; 3 341–351
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'taskName' (lines '343'-'343'). 5 343
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 343
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 346
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 346
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 354

org/apache/turbine/services/schedule/JobEntry.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like v 3 74
ShortVariable Avoid variables with short names like v 3 88

org/apache/turbine/services/schedule/JobEntryNonPersistent.java

Rule Violation Priority Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 32
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 33
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 35
ShortVariable Avoid variables with short names like wd 3 35
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'day_mo' is not final. 1 36
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 36
FieldNamingConventions The field name 'day_mo' doesn't match '[a-z][a-zA-Z0-9]*' 1 36
AvoidFieldNameMatchingMethodName Field isnew has the same name as a method 3 38
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 38
MethodArgumentCouldBeFinal Parameter 'sec' is not assigned and could be declared final 3 79
MethodArgumentCouldBeFinal Parameter 'min' is not assigned and could be declared final 3 80
MethodArgumentCouldBeFinal Parameter 'hour' is not assigned and could be declared final 3 81
MethodArgumentCouldBeFinal Parameter 'wd' is not assigned and could be declared final 3 82
ShortVariable Avoid variables with short names like wd 3 82
MethodArgumentCouldBeFinal Parameter 'day_mo' is not assigned and could be declared final 3 83
FormalParameterNamingConventions The method parameter name 'day_mo' doesn't match '[a-z][a-zA-Z0-9]*' 1 83
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'day_mo' is not final. 1 83
MethodArgumentCouldBeFinal Parameter 'task' is not assigned and could be declared final 3 84
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 96
MethodArgumentCouldBeFinal Parameter 'obj' is not assigned and could be declared final 3 103
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 107
LocalVariableNamingConventions The local variable name '_isnew' doesn't match '[a-z][a-zA-Z0-9]*' 1 119
LocalVariableCouldBeFinal Local variable '_isnew' could be declared final 3 119
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), '_isnew' is not final. 1 119
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 141
ShortVariable Avoid variables with short names like v 3 141
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 163
ShortVariable Avoid variables with short names like v 3 163
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 185
ShortVariable Avoid variables with short names like v 3 185
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 207
ShortVariable Avoid variables with short names like v 3 207
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 229
ShortVariable Avoid variables with short names like v 3 229
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 251
ShortVariable Avoid variables with short names like v 3 251
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 273
ShortVariable Avoid variables with short names like v 3 273

org/apache/turbine/services/schedule/JobEntryQuartz.java

Rule Violation Priority Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 45
AvoidFieldNameMatchingMethodName Field isnew has the same name as a method 3 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 47
ImmutableField Private field 'active' could be made final; it is only initialized in the declaration or constructor. 3 48
LongVariable Avoid excessively long variable names like DEFAULT_JOB_GROUP_NAME 3 53
MethodArgumentCouldBeFinal Parameter 'jobTrigger' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'jobDetail' is not assigned and could be declared final 3 81
MethodArgumentCouldBeFinal Parameter 'jobTrigger' is not assigned and could be declared final 3 81
ConstructorCallsOverridableMethod Overridable method 'setTask' called during object construction 1 84
LocalVariableCouldBeFinal Local variable '_isnew' could be declared final 3 95
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), '_isnew' is not final. 1 95
LocalVariableNamingConventions The local variable name '_isnew' doesn't match '[a-z][a-zA-Z0-9]*' 1 95
ShortVariable Avoid variables with short names like v 3 117
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 117
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 139
ShortVariable Avoid variables with short names like v 3 139
MethodArgumentCouldBeFinal Parameter 'jobTrigger' is not assigned and could be declared final 3 155
MethodArgumentCouldBeFinal Parameter 'o' is not assigned and could be declared final 3 172
ShortVariable Avoid variables with short names like o 3 172
MethodArgumentCouldBeFinal Parameter 'isActive' is not assigned and could be declared final 3 181
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 201
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 219
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 235
SimplifyBooleanExpressions Avoid unnecessary comparisons in boolean expressions 3 237
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 248
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 248
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 250
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 252

org/apache/turbine/services/schedule/JobQueue.java

Rule Violation Priority Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 41
RedundantFieldInitializer Avoid using redundant field initializer for 'queue' 3 41
ImmutableField Private field 'queue' could be made final; it is only initialized in the declaration or constructor. 3 41
UnusedAssignment The field initializer for 'queue' is never used (overwritten on line 48) 3 41
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 48
ConfusingTernary Avoid if (x != y) ..; else ..; 3 70
ShortVariable Avoid variables with short names like je 3 79
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 79
LocalVariableCouldBeFinal Local variable 'job' could be declared final 3 83
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 86
LocalVariableCouldBeFinal Local variable 'jobEntry' could be declared final 3 88
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 92
ReplaceVectorWithList Consider replacing this Vector with the newer java.util.List 3 104
LooseCoupling Avoid using implementation types like 'Vector'; use the interface instead 3 104
ConfusingTernary Avoid if (x != y) ..; else ..; 3 106–113
UseArrayListInsteadOfVector Use ArrayList instead of Vector 3 108
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 108
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 121
ShortVariable Avoid variables with short names like je 3 121
MethodArgumentCouldBeFinal Parameter 'jobEntries' is not assigned and could be declared final 3 132
ShortVariable Avoid variables with short names like je 3 145
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 145
ShortVariable Avoid variables with short names like je 3 156
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 156
ShortVariable Avoid variables with short names like je 3 169
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 169

org/apache/turbine/services/schedule/ScheduleService.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like wd 3 84
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'day_mo' is not final. 1 85
FormalParameterNamingConventions The method parameter name 'day_mo' doesn't match '[a-z][a-zA-Z0-9]*' 1 85
ShortVariable Avoid variables with short names like je 3 104
ShortVariable Avoid variables with short names like je 3 113
ShortVariable Avoid variables with short names like je 3 122

org/apache/turbine/services/schedule/SchedulerTool.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38–113
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 41
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 41
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 47
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 53
MethodArgumentCouldBeFinal Parameter 'jobId' is not assigned and could be declared final 3 97
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'je' (lines '99'-'103'). 5 99–103
ShortVariable Avoid variables with short names like je 3 99

org/apache/turbine/services/schedule/TorqueSchedulerService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38–177
LocalVariableCouldBeFinal Local variable 'jobsTorque' could be declared final 3 52
LocalVariableCouldBeFinal Local variable 'job' could be declared final 3 54
MethodArgumentCouldBeFinal Parameter 'task' is not assigned and could be declared final 3 71
MethodArgumentCouldBeFinal Parameter 'hour' is not assigned and could be declared final 3 71
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'day_mo' is not final. 1 71
FormalParameterNamingConventions The method parameter name 'day_mo' doesn't match '[a-z][a-zA-Z0-9]*' 1 71
MethodArgumentCouldBeFinal Parameter 'sec' is not assigned and could be declared final 3 71
MethodArgumentCouldBeFinal Parameter 'wd' is not assigned and could be declared final 3 71
MethodArgumentCouldBeFinal Parameter 'day_mo' is not assigned and could be declared final 3 71
MethodArgumentCouldBeFinal Parameter 'min' is not assigned and could be declared final 3 71
ShortVariable Avoid variables with short names like wd 3 71
LocalVariableCouldBeFinal Local variable 'jet' could be declared final 3 73
MethodArgumentCouldBeFinal Parameter 'oid' is not assigned and could be declared final 3 94
LocalVariableCouldBeFinal Local variable 'je' could be declared final 3 98
ShortVariable Avoid variables with short names like je 3 98
ShortVariable Avoid variables with short names like je 3 116
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 116
LocalVariableCouldBeFinal Local variable 'c' could be declared final 3 121
ShortVariable Avoid variables with short names like c 3 121
ShortVariable Avoid variables with short names like je 3 145
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 145

org/apache/turbine/services/schedule/TurbineNonPersistentSchedulerService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 68–179
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 3 76
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 77
LocalVariableCouldBeFinal Local variable 'jobProps' could be declared final 3 77
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'jobs' (lines '78'-'116'). 5 78–116
LocalVariableCouldBeFinal Local variable 'jobs' could be declared final 3 78
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 82
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 84–112
LocalVariableCouldBeFinal Local variable 'jobName' could be declared final 3 86
LocalVariableCouldBeFinal Local variable 'jobPrefix' could be declared final 3 87
LocalVariableCouldBeFinal Local variable 'jobId' could be declared final 3 89
LocalVariableCouldBeFinal Local variable 'sec' could be declared final 3 97
LocalVariableCouldBeFinal Local variable 'min' could be declared final 3 98
LocalVariableCouldBeFinal Local variable 'hr' could be declared final 3 99
ShortVariable Avoid variables with short names like hr 3 99
LocalVariableCouldBeFinal Local variable 'wkday' could be declared final 3 100
LocalVariableCouldBeFinal Local variable 'dayOfMonth' could be declared final 3 101
ShortVariable Avoid variables with short names like je 3 103
LocalVariableCouldBeFinal Local variable 'je' could be declared final 3 103–109
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 110
MethodArgumentCouldBeFinal Parameter 'sec' is not assigned and could be declared final 3 122
MethodArgumentCouldBeFinal Parameter 'hour' is not assigned and could be declared final 3 122
ShortVariable Avoid variables with short names like wd 3 122
FormalParameterNamingConventions The method parameter name 'day_mo' doesn't match '[a-z][a-zA-Z0-9]*' 1 122
MethodArgumentCouldBeFinal Parameter 'wd' is not assigned and could be declared final 3 122
MethodArgumentCouldBeFinal Parameter 'task' is not assigned and could be declared final 3 122
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'day_mo' is not final. 1 122
MethodArgumentCouldBeFinal Parameter 'min' is not assigned and could be declared final 3 122
MethodArgumentCouldBeFinal Parameter 'day_mo' is not assigned and could be declared final 3 122
MethodArgumentCouldBeFinal Parameter 'oid' is not assigned and could be declared final 3 135
LocalVariableCouldBeFinal Local variable 'je' could be declared final 3 138
ShortVariable Avoid variables with short names like je 3 138
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 149
ShortVariable Avoid variables with short names like je 3 149
ShortVariable Avoid variables with short names like je 3 163
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 163
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 174

org/apache/turbine/services/schedule/WorkerThread.java

Rule Violation Priority Line
UnusedAssignment The field initializer for 'je' is never used (overwritten on line 54) 3 42
RedundantFieldInitializer Avoid using redundant field initializer for 'je' 3 42
ImmutableField Private field 'je' could be made final; it is only initialized in the declaration or constructor. 3 42
ShortVariable Avoid variables with short names like je 3 42
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 42
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 45
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 45
MethodArgumentCouldBeFinal Parameter 'je' is not assigned and could be declared final 3 52
ShortVariable Avoid variables with short names like je 3 52
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 74
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 77
GuardLogStatement Logger calls should be surrounded by log level guards. 2 79–80
MethodArgumentCouldBeFinal Parameter 'state' is not assigned and could be declared final 3 97
UnnecessaryModifier Unnecessary modifier 'final' on method 'logStateChange': private methods cannot be overridden 3 97–101
GuardLogStatement Logger calls should be surrounded by log level guards. 2 99–100

org/apache/turbine/services/security/DefaultSecurityService.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 1–1127
CyclomaticComplexity The class 'DefaultSecurityService' has a total cyclomatic complexity of 88 (highest 4). 3 74–1127
AtLeastOneConstructor Each class should declare at least one constructor 3 74–1127
GodClass Possible God Class (WMC=88, ATFD=39, TCC=8.956%) 3 74–1127
ExcessiveClassLength Avoid really long classes. 3 74–1127
TooManyMethods This class has too many methods, consider refactoring it. 3 77–1127
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 79
ImmutableField Private field 'readerCount' could be made final; it is only initialized in the declaration or constructor. 3 79
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 82
RedundantFieldInitializer Avoid using redundant field initializer for 'userManager' 3 82
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 85
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 88
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 91
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 94
SingularField Perhaps 'backend' could be replaced by a local variable. 3 96
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 96
UnusedPrivateField Avoid unused private fields such as 'backend'. 3 96
AvoidUsingVolatile Use of modifier volatile is not recommended. 2 101
RedundantFieldInitializer Avoid using redundant field initializer for 'globalGroup' 3 101
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 104
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 104
LocalVariableCouldBeFinal Local variable 'manager' could be declared final 3 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 119
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 120
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 122
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 124
LocalVariableCouldBeFinal Local variable 'conf' could be declared final 3 126
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 128–130
LocalVariableCouldBeFinal Local variable 'userManagerClassName' could be declared final 3 128–130
LongVariable Avoid excessively long variable names like userManagerClassName 3 128
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 135
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 135
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 139
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 160
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'user' (lines '160'-'168'). 5 160–168
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 3 180
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'user' (lines '186'-'194'). 5 186–194
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 186
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'group' (lines '209'-'216'). 5 209–216
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 211
MethodArgumentCouldBeFinal Parameter 'groupName' is not assigned and could be declared final 3 228
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'group' (lines '234'-'241'). 5 234–241
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 236
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'permission' (lines '256'-'263'). 5 256–263
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 258
MethodArgumentCouldBeFinal Parameter 'permName' is not assigned and could be declared final 3 274
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'permission' (lines '280'-'287'). 5 280–287
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 282
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'role' (lines '302'-'309'). 5 302–309
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 304
MethodArgumentCouldBeFinal Parameter 'roleName' is not assigned and could be declared final 3 321
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'role' (lines '327'-'334'). 5 327–334
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 329
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 358
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 361
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 3 375
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 378
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 3 395
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 3 395
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 399
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 3 413
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 416
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 431
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 444
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 446
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 459
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 462
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 478
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 481
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 3 495
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 495
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 498
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 510
AvoidDuplicateLiterals The String literal "user is null" appears 4 times in this file; the first occurrence is on line 514 3 514
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 518
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 533
MethodArgumentCouldBeFinal Parameter 'oldPassword' is not assigned and could be declared final 3 533
MethodArgumentCouldBeFinal Parameter 'newPassword' is not assigned and could be declared final 3 534
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 538
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 556
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 3 556
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 559
UseNotifyAllInsteadOfNotify Call Thread.notifyAll() rather than Thread.notify() 3 582
ShortVariable Avoid variables with short names like g 3 646
LocalVariableCouldBeFinal Local variable 'g' could be declared final 3 646
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 660
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 677
ShortVariable Avoid variables with short names like id 3 677
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 693
LocalVariableCouldBeFinal Local variable 'role' could be declared final 3 696
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 714
ShortVariable Avoid variables with short names like id 3 714
LocalVariableCouldBeFinal Local variable 'role' could be declared final 3 718
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 736
MethodArgumentCouldBeFinal Parameter 'id' is not assigned and could be declared final 3 753
ShortVariable Avoid variables with short names like id 3 753
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 813
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 816
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 835
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 835
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 835
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 856
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 856
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 856
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 878
MethodArgumentCouldBeFinal Parameter 'newRole' is not assigned and could be declared final 3 878
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 878
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 895
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 914
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 914
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 930
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 930
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 947
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 969
MethodArgumentCouldBeFinal Parameter 'cascadeDelete' is not assigned and could be declared final 3 969
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 985
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 1000
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 1015
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 1030
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 1045
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 1059
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 1074
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 1090
MethodArgumentCouldBeFinal Parameter 'group' is not assigned and could be declared final 3 1090
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 1106
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 1106
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 1122
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 1122

org/apache/turbine/services/security/DefaultUserManager.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 76–536
TooManyMethods This class has too many methods, consider refactoring it. 3 77–536
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 79
RedundantFieldInitializer Avoid using redundant field initializer for 'umDelegate' 3 79
RedundantFieldInitializer Avoid using redundant field initializer for 'factoryService' 3 81
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 81
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 88
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 88
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 98
ShortVariable Avoid variables with short names like u 3 101
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 101
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 113
UseShortArrayInitializer Array initialization can be written shorter 3 117
LocalVariableCouldBeFinal Local variable 'params' could be declared final 3 117
LocalVariableCouldBeFinal Local variable 'signature' could be declared final 3 118
UseShortArrayInitializer Array initialization can be written shorter 3 118
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 119
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 121
MethodArgumentCouldBeFinal Parameter 'userWrapperClass2' is not assigned and could be declared final 3 143
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 154
LocalVariableCouldBeFinal Local variable 'manager' could be declared final 3 156
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 157
LocalVariableCouldBeFinal Local variable 'userWrapperClass' could be declared final 3 159–161
LocalVariableCouldBeFinal Local variable 'turbineUser' could be declared final 3 169
UseShortArrayInitializer Array initialization can be written shorter 3 171
LocalVariableCouldBeFinal Local variable 'params' could be declared final 3 171
LocalVariableCouldBeFinal Local variable 'signature' could be declared final 3 172
UseShortArrayInitializer Array initialization can be written shorter 3 172
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 179
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 196
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 200
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 3 215
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 3 233
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 236
ShortVariable Avoid variables with short names like u 3 236
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 255
LocalVariableCouldBeFinal Local variable 'uset' could be declared final 3 258
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 260–264
LocalVariableCouldBeFinal Local variable 'userList' could be declared final 3 260–264
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 260–264
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 260–264
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 260–264
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 260–264
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'userList' 3 266
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 3 286
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 3 286
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 290
ShortVariable Avoid variables with short names like u 3 290
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 305
AvoidDuplicateLiterals The String literal "user is null" appears 6 times in this file; the first occurrence is on line 309 3 309
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 315
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 336
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 3 357
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 357
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 374
MethodArgumentCouldBeFinal Parameter 'initialPassword' is not assigned and could be declared final 3 374
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 391
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 414
MethodArgumentCouldBeFinal Parameter 'oldPassword' is not assigned and could be declared final 3 414
MethodArgumentCouldBeFinal Parameter 'newPassword' is not assigned and could be declared final 3 415
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 443
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 3 443
ShortVariable Avoid variables with short names like u 3 463
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 463
MethodArgumentCouldBeFinal Parameter 'u' is not assigned and could be declared final 3 477
ShortVariable Avoid variables with short names like u 3 477
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 495
ShortVariable Avoid variables with short names like u 3 495
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 3 513
ShortVariable Avoid variables with short names like u 3 515
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 515
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 529

org/apache/turbine/services/security/SecurityService.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 1–757
TooManyMethods This class has too many methods, consider refactoring it. 3 66–757
LongVariable Avoid excessively long variable names like USER_MANAGER_DEFAULT 3 80
LongVariable Avoid excessively long variable names like USER_WRAPPER_DEFAULT 3 93
ShortVariable Avoid variables with short names like u 3 272
ShortVariable Avoid variables with short names like id 3 538
ShortVariable Avoid variables with short names like id 3 568
ShortVariable Avoid variables with short names like id 3 598

org/apache/turbine/services/security/UserManager.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 48–301
ShortVariable Avoid variables with short names like u 3 258

org/apache/turbine/services/security/passive/PassiveUserManager.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 46–365
TooManyMethods This class has too many methods, consider refactoring it. 3 47–365
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 54
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 69
AvoidDuplicateLiterals The String literal "PassiveUserManager knows no users" appears 10 times in this file; the first occurrence is on line 72 3 72
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 3 85
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 3 103
MethodArgumentCouldBeFinal Parameter 'criteria' is not assigned and could be declared final 3 124
MethodArgumentCouldBeFinal Parameter 'username' is not assigned and could be declared final 3 147
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 3 147
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 165
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 184
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 3 205
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 205
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 222
MethodArgumentCouldBeFinal Parameter 'initialPassword' is not assigned and could be declared final 3 222
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 237
MethodArgumentCouldBeFinal Parameter 'oldPassword' is not assigned and could be declared final 3 257
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 257
MethodArgumentCouldBeFinal Parameter 'newPassword' is not assigned and could be declared final 3 258
MethodArgumentCouldBeFinal Parameter 'password' is not assigned and could be declared final 3 281
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 281
ShortVariable Avoid variables with short names like u 3 311
MethodArgumentCouldBeFinal Parameter 'u' is not assigned and could be declared final 3 311
MethodArgumentCouldBeFinal Parameter 'userName' is not assigned and could be declared final 3 346
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 361

org/apache/turbine/services/servlet/TurbineServletService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 51–254
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 55
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 55
RedundantFieldInitializer Avoid using redundant field initializer for 'servletContext' 3 58
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 58
RedundantFieldInitializer Avoid using redundant field initializer for 'servletConfig' 3 61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 61
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 78
MethodArgumentCouldBeFinal Parameter 'uri' is not assigned and could be declared final 3 95
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 99
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'url' (lines '102'-'106'). 5 102–106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 106
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 108
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 114
EmptyCatchBlock Avoid empty catch blocks 3 117–120
MethodArgumentCouldBeFinal Parameter 'uri' is not assigned and could be declared final 3 133
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 137
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'is' (lines '140'-'141'). 5 140–141
ShortVariable Avoid variables with short names like is 3 140
UnusedAssignment The initializer for variable 'is' is never used (overwritten on line 141) 3 140
MethodArgumentCouldBeFinal Parameter 'uri' is not assigned and could be declared final 3 154
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 158
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 162
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 250

org/apache/turbine/services/session/SessionListener.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 61–141
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 74
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 86
MethodArgumentCouldBeFinal Parameter 'event' is not assigned and could be declared final 3 98
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 101
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 101
MethodArgumentCouldBeFinal Parameter 'event' is not assigned and could be declared final 3 110
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 112
MethodArgumentCouldBeFinal Parameter 'event' is not assigned and could be declared final 3 125
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 127
MethodArgumentCouldBeFinal Parameter 'event' is not assigned and could be declared final 3 137
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 139

org/apache/turbine/services/session/SessionTool.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 38–141
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 45
MethodArgumentCouldBeFinal Parameter 'o' is not assigned and could be declared final 3 48
ShortVariable Avoid variables with short names like o 3 48
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 3 75
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 3 86
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 102
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 3 125
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 137

org/apache/turbine/services/session/TurbineSessionService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 55–222
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 60
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 3 80
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 3 92
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 111
LocalVariableCouldBeFinal Local variable 'session' could be declared final 3 128
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 130
ShortVariable Avoid variables with short names like u 3 130
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 131
MethodArgumentCouldBeFinal Parameter 'session' is not assigned and could be declared final 3 147
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 154
MethodArgumentCouldBeFinal Parameter 'sessionId' is not assigned and could be declared final 3 169
MethodArgumentCouldBeFinal Parameter 'user' is not assigned and could be declared final 3 182
LocalVariableCouldBeFinal Local variable 'sessions' could be declared final 3 184
LocalVariableCouldBeFinal Local variable 'session' could be declared final 3 185
ShortVariable Avoid variables with short names like u 3 187
LocalVariableCouldBeFinal Local variable 'u' could be declared final 3 187
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 217

org/apache/turbine/services/template/BaseTemplateEngineService.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 38–145
AtLeastOneConstructor Each class should declare at least one constructor 3 38–145
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 3 53
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 53
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 53
MethodArgumentCouldBeFinal Parameter 'defaultExt' is not assigned and could be declared final 3 59
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 62
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 62
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 63
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 70
MethodArgumentCouldBeFinal Parameter 'defaultExt' is not assigned and could be declared final 3 97
LocalVariableCouldBeFinal Local variable 'config' could be declared final 3 99
LongVariable Avoid excessively long variable names like fileExtensionAssociations 3 105
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 106
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'fileExtensionAssociations' (lines '111'-'112'). 5 111–112
LocalVariableCouldBeFinal Local variable 'copyParams' could be declared final 3 124–132
LocalVariableCouldBeFinal Local variable 'copyParam' could be declared final 3 134

org/apache/turbine/services/template/TemplateEngineService.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like TEMPLATE_EXTENSIONS 3 35
LongVariable Avoid excessively long variable names like DEFAULT_TEMPLATE_EXTENSION 3 37
LongVariable Avoid excessively long variable names like DEFAULT_NAVIGATION 3 45
LongVariable Avoid excessively long variable names like DEFAULT_ERROR_SCREEN 3 47
LongVariable Avoid excessively long variable names like DEFAULT_LAYOUT_TEMPLATE 3 49
LongVariable Avoid excessively long variable names like DEFAULT_SCREEN_TEMPLATE 3 51
LongVariable Avoid excessively long variable names like DEFAULT_NAVIGATION_TEMPLATE 3 53
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 60
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 3 60

org/apache/turbine/services/template/TemplateService.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like DEFAULT_TEMPLATE_KEY 3 49
LongVariable Avoid excessively long variable names like DEFAULT_TEMPLATE_VALUE 3 52
LongVariable Avoid excessively long variable names like DEFAULT_EXTENSION_KEY 3 55
LongVariable Avoid excessively long variable names like DEFAULT_EXTENSION_VALUE 3 58
LongVariable Avoid excessively long variable names like EXTENSION_SEPARATOR 3 61
LongVariable Avoid excessively long variable names like TEMPLATE_PARTS_SEPARATOR 3 64
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 218
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 229
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 240
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 251
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 262
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 273
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 285
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 299

org/apache/turbine/services/template/TurbineTemplateService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 1–817
GodClass Possible God Class (WMC=47, ATFD=75, TCC=21.675%) 3 181–817
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 186
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 186
LongVariable Avoid excessively long variable names like LAYOUT_TEMPLATE_KEY 3 201
LongVariable Avoid excessively long variable names like LAYOUT_TEMPLATE_NAME 3 204
LongVariable Avoid excessively long variable names like SCREEN_TEMPLATE_KEY 3 207
LongVariable Avoid excessively long variable names like SCREEN_TEMPLATE_NAME 3 210
LongVariable Avoid excessively long variable names like NAVIGATION_TEMPLATE_KEY 3 213
LongVariable Avoid excessively long variable names like NAVIGATION_TEMPLATE_NAME 3 216
RedundantFieldInitializer Avoid using redundant field initializer for 'mapperRegistry' 3 222
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 222
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 235
RedundantFieldInitializer Avoid using redundant field initializer for 'useCache' 3 235
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 238
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 241
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 246
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 256
RedundantFieldInitializer Avoid using redundant field initializer for 'templateEngineRegistry' 3 256
LongVariable Avoid excessively long variable names like templateEngineRegistry 3 256
CallSuperInConstructor It is a good practice to call super() in a constructor 3 261–264
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 261–264
LocalVariableCouldBeFinal Local variable 'config' could be declared final 3 277
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 279
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 282–283
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 285–286
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 290–291
GuardLogStatement Logger calls should be surrounded by log level guards. 2 295
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 335
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 339
LocalVariableCouldBeFinal Local variable 'dotIndex' could be declared final 3 342
ShortVariable Avoid variables with short names like sb 3 357
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 3 357
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 436
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 450
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 464
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 478
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 492
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 505
LocalVariableCouldBeFinal Local variable 'pp' could be declared final 3 507
ShortVariable Avoid variables with short names like pp 3 507
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 508
LocalVariableCouldBeFinal Local variable 'template' could be declared final 3 508
ConfusingTernary Avoid if (x != y) ..; else ..; 3 509
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 520
ShortVariable Avoid variables with short names like pp 3 522
LocalVariableCouldBeFinal Local variable 'pp' could be declared final 3 522
LocalVariableCouldBeFinal Local variable 'template' could be declared final 3 523
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 523
ConfusingTernary Avoid if (x != y) ..; else ..; 3 524
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 536
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 551
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 566
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 582
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 597
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 613
MethodArgumentCouldBeFinal Parameter 'templatePaths' is not assigned and could be declared final 3 652
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 652
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 654–656
MethodArgumentCouldBeFinal Parameter 'service' is not assigned and could be declared final 3 666
LocalVariableCouldBeFinal Local variable 'exts' could be declared final 3 668
LocalVariableCouldBeFinal Local variable 'ext' could be declared final 3 670
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 684
MethodArgumentCouldBeFinal Parameter 'mapper' is not assigned and could be declared final 3 697
MethodArgumentCouldBeFinal Parameter 'templateKey' is not assigned and could be declared final 3 697
ExcessiveMethodLength Avoid really long methods. 3 711–816
MethodArgumentCouldBeFinal Parameter 'conf' is not assigned and could be declared final 3 711
CyclomaticComplexity The method 'initMapper(Configuration)' has a cyclomatic complexity of 10. 3 711–816
UseShortArrayInitializer Array initialization can be written shorter 3 720–723
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperNames' (lines '720'-'816'). 5 720–816
LocalVariableCouldBeFinal Local variable 'mapperNames' could be declared final 3 720–723
UseShortArrayInitializer Array initialization can be written shorter 3 725–728
LocalVariableCouldBeFinal Local variable 'mapperKeys' could be declared final 3 725–728
LocalVariableCouldBeFinal Local variable 'mapperClasses' could be declared final 3 730–738
UseShortArrayInitializer Array initialization can be written shorter 3 730–738
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperClasses' (lines '730'-'816'). 5 730–816
LocalVariableCouldBeFinal Local variable 'ab' could be declared final 3 740–741
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 740–741
ShortVariable Avoid variables with short names like ab 3 740
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'ab' (lines '740'-'816'). 5 740–816
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperCacheSize' (lines '743'-'749'). 5 743–749
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperCacheSize' (lines '743'-'816'). 5 743–816
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperLoader' (lines '744'-'753'). 5 744–753
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperLoader' (lines '744'-'748'). 5 744–748
ConfusingTernary Avoid if (x != y) ..; else ..; 3 749
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperCacheSize' (lines '749'-'816'). 5 749–816
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperCacheSize' (lines '749'-'749'). 5 749
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 753
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperLoader' (lines '753'-'754'). 5 753–754
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 754
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'mapperLoader' (lines '754'-'755'). 5 754–755
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 755
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperLoader' (lines '755'-'816'). 5 755–816
LocalVariableCouldBeFinal Local variable 'mapperDefaultProperty' could be declared final 3 757–765
LongVariable Avoid excessively long variable names like mapperDefaultProperty 3 757
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperDefaultProperty' (lines '757'-'816'). 5 757–816
UseShortArrayInitializer Array initialization can be written shorter 3 757–765
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperSeparator' (lines '767'-'816'). 5 767–816
LocalVariableCouldBeFinal Local variable 'mapperSeparator' could be declared final 3 767
UseShortArrayInitializer Array initialization can be written shorter 3 767
LocalVariableCouldBeFinal Local variable 'mapperPrefix' could be declared final 3 769–773
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'mapperPrefix' (lines '769'-'816'). 5 769–816
UseShortArrayInitializer Array initialization can be written shorter 3 769–773
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 777
LocalVariableCouldBeFinal Local variable 'mapperProperty' could be declared final 3 777
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 778
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 779
LocalVariableCouldBeFinal Local variable 'mapperClass' could be declared final 3 782–783
UnusedAssignment The initializer for variable 'tm' is never used (overwritten on line 792) 3 787
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'tm' (lines '787'-'792'). 5 787–792
ShortVariable Avoid variables with short names like tm 3 787
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 791
LocalVariableCouldBeFinal Local variable 'factory' could be declared final 3 791
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'tm' (lines '792'-'816'). 5 792–816
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 799
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 800
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 801
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 802

org/apache/turbine/services/template/mapper/BaseMapper.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 40–226
DataClass The class 'BaseMapper' is suspected to be a Data Class (WOC=25.000%, NOPA=0, NOAM=8, WMC=21) 3 40–226
RedundantFieldInitializer Avoid using redundant field initializer for 'useCache' 3 43
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 49
RedundantFieldInitializer Avoid using redundant field initializer for 'templateCache' 3 49
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 66–69
MethodArgumentCouldBeFinal Parameter 'cacheSize' is not assigned and could be declared final 3 84
MethodArgumentCouldBeFinal Parameter 'useCache' is not assigned and could be declared final 3 102
MethodArgumentCouldBeFinal Parameter 'defaultProperty' is not assigned and could be declared final 3 120
MethodArgumentCouldBeFinal Parameter 'separator' is not assigned and could be declared final 3 138
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 166
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 170
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 170
LocalVariableCouldBeFinal Local variable 'tes' could be declared final 3 171
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 171
UselessParentheses Useless parentheses. 4 173
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 175
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 178–179
LocalVariableCouldBeFinal Local variable 'defaultName' could be declared final 3 178–179
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 178–179
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 182
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 193
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 197
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 202
LocalVariableCouldBeFinal Local variable 'res' could be declared final 3 205

org/apache/turbine/services/template/mapper/BaseTemplateMapper.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 37–117
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 48–51
MethodArgumentCouldBeFinal Parameter 'prefix' is not assigned and could be declared final 3 66
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 83
LocalVariableCouldBeFinal Local variable 'components' could be declared final 3 88–89
LocalVariableCouldBeFinal Local variable 'resBuf' could be declared final 3 93
LocalVariableCouldBeFinal Local variable 'templateComponents' could be declared final 3 95
LongVariable Avoid excessively long variable names like templateComponents 3 95
LocalVariableCouldBeFinal Local variable 'dotIndex' could be declared final 3 98
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 101
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 101
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 103
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 106

org/apache/turbine/services/template/mapper/ClassMapper.java

Rule Violation Priority Line
RedundantFieldInitializer Avoid using redundant field initializer for 'loader' 3 60
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 63
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 63
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 70–73
CallSuperInConstructor It is a good practice to call super() in a constructor 3 70–73
MethodArgumentCouldBeFinal Parameter 'loader' is not assigned and could be declared final 3 88
CognitiveComplexity The method 'doMapping(String)' has a cognitive complexity of 16, current threshold is 15 3 102–178
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 102
LocalVariableCouldBeFinal Local variable 'components' could be declared final 3 107–110
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 121
LocalVariableCouldBeFinal Local variable 'dotIndex' could be declared final 3 121
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 122
UselessParentheses Useless parentheses. 4 122
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 127
LiteralsFirstInComparisons Position literals first in String comparisons 3 127
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'firstRun' (lines '127'-'178'). 5 127–178
LocalVariableCouldBeFinal Local variable 'pkg' could be declared final 3 131
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 132
LocalVariableCouldBeFinal Local variable 'testName' could be declared final 3 132
UselessParentheses Useless parentheses. 4 142
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 151
EmptyCatchBlock Avoid empty catch blocks 3 157–160
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 157

org/apache/turbine/services/template/mapper/DirectMapper.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 43–46
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 57
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 65
LocalVariableCouldBeFinal Local variable 'dotIndex' could be declared final 3 65
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 66
UselessParentheses Useless parentheses. 4 66

org/apache/turbine/services/template/mapper/DirectTemplateMapper.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 44–47
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 58
LocalVariableCouldBeFinal Local variable 'components' could be declared final 3 60–61

org/apache/turbine/services/template/mapper/LayoutTemplateMapper.java

Rule Violation Priority Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 55
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 55
CallSuperInConstructor It is a good practice to call super() in a constructor 3 62–65
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 62–65
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 75
CognitiveComplexity The method 'doMapping(String)' has a cognitive complexity of 16, current threshold is 15 3 75–166
LocalVariableCouldBeFinal Local variable 'components' could be declared final 3 79–82
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 3 87
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 93
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 93
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 94
LocalVariableCouldBeFinal Local variable 'tes' could be declared final 3 94
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 98
LocalVariableCouldBeFinal Local variable 'defaultName' could be declared final 3 102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 102
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'firstRun' (lines '107'-'166'). 5 107–166
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 107
LocalVariableCouldBeFinal Local variable 'templatePackage' could be declared final 3 111
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 115
LocalVariableCouldBeFinal Local variable 'testName' could be declared final 3 115
UselessParentheses Useless parentheses. 4 123
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 128
LocalVariableCouldBeFinal Local variable 'templatePath' could be declared final 3 128
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 141
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'firstRun' (lines '146'-'166'). 5 146–166

org/apache/turbine/services/template/mapper/ScreenDefaultTemplateMapper.java

Rule Violation Priority Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 51
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 51
CallSuperInConstructor It is a good practice to call super() in a constructor 3 58–61
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 58–61
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 71
LocalVariableCouldBeFinal Local variable 'components' could be declared final 3 75–78
LocalVariableCouldBeFinal Local variable 'templateName' could be declared final 3 83
UnusedAssignment The updated value of variable 'componentSize' is never used 3 84
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 89
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 89
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 90
LocalVariableCouldBeFinal Local variable 'tes' could be declared final 3 90
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 94
LocalVariableCouldBeFinal Local variable 'defaultName' could be declared final 3 97
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'firstRun' (lines '102'-'155'). 5 102–155
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 102
LocalVariableCouldBeFinal Local variable 'templatePackage' could be declared final 3 106
LocalVariableCouldBeFinal Local variable 'testName' could be declared final 3 110
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 110
UselessParentheses Useless parentheses. 4 118
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 123
LocalVariableCouldBeFinal Local variable 'templatePath' could be declared final 3 123
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 136
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'firstRun' (lines '141'-'155'). 5 141–155

org/apache/turbine/services/template/mapper/ScreenTemplateMapper.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 47–50
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 60
LocalVariableCouldBeFinal Local variable 'components' could be declared final 3 62
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 65
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 65
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 66
LocalVariableCouldBeFinal Local variable 'tes' could be declared final 3 66
LocalVariableCouldBeFinal Local variable 'templatePackage' could be declared final 3 68
LocalVariableCouldBeFinal Local variable 'testPath' could be declared final 3 71
UselessParentheses Useless parentheses. 4 79
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 79

org/apache/turbine/services/ui/TurbineUIService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 57–531
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 62
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 62
LongVariable Avoid excessively long variable names like SKIN_PROPERTY_DEFAULT 3 108
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 115
LongVariable Avoid excessively long variable names like DEFAULT_SKIN_CSS_FILE 3 126
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 131
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 136
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 141
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 147
RedundantFieldInitializer Avoid using redundant field initializer for 'wantRelative' 3 147
ImmutableField Private field 'skins' could be made final; it is only initialized in the declaration or constructor. 3 152
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 152
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 169
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 187
LocalVariableCouldBeFinal Local variable 'skinProperties' could be declared final 3 189
ConfusingTernary Avoid if (x != y) ..; else ..; 3 190
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 208
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 208
LocalVariableCouldBeFinal Local variable 'skinProperties' could be declared final 3 210
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 211
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 227
LocalVariableCouldBeFinal Local variable 'skinsDir' could be declared final 3 240
LocalVariableCouldBeFinal Local variable 'directory' could be declared final 3 242
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 261
LiteralsFirstInComparisons Position literals first in String comparisons 3 263
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 280
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'defaultSkinProperties' (lines '282'-'286'). 5 282–286
LongVariable Avoid excessively long variable names like defaultSkinProperties 3 282
LocalVariableCouldBeFinal Local variable 'skinProperties' could be declared final 3 290
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 3 292
ShortVariable Avoid variables with short names like sb 3 292
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 293
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 294
ShortVariable Avoid variables with short names like is 3 298
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 304
GuardLogStatement Logger calls should be surrounded by log level guards. 2 306
ConfusingTernary Avoid if (x != y) ..; else ..; 3 307–322
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 311
ConfusingTernary Avoid if (x != y) ..; else ..; 3 313–322
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 316
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 321
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 343–344
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 361
MethodArgumentCouldBeFinal Parameter 'imageId' is not assigned and could be declared final 3 361
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 361
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 374
MethodArgumentCouldBeFinal Parameter 'imageId' is not assigned and could be declared final 3 374
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 393
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 393
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 406
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 3 425
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 425
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 426
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 3 439
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 439
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 448
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 452
LocalVariableCouldBeFinal Local variable 'len' could be declared final 3 452
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 454
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 454
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 459
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 477
MethodArgumentCouldBeFinal Parameter 'skinName' is not assigned and could be declared final 3 477
MethodArgumentCouldBeFinal Parameter 'resourceName' is not assigned and could be declared final 3 478
MethodArgumentCouldBeFinal Parameter 'subDir' is not assigned and could be declared final 3 478
ShortVariable Avoid variables with short names like sb 3 480
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 3 480
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 481
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 484
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 486
LocalVariableCouldBeFinal Local variable 'du' could be declared final 3 488
ShortVariable Avoid variables with short names like du 3 488
LocalVariableCouldBeFinal Local variable 'cfg' could be declared final 3 501
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 503
LocalVariableCouldBeFinal Local variable 'pullService' could be declared final 3 504
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 504
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 3 507
ShortVariable Avoid variables with short names like sb 3 507
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 508
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 508
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 509
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 509
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 511
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 515
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 516
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 517

org/apache/turbine/services/uniqueid/TurbineUniqueIdService.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 44–152
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 49
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 49
VariableNamingConventions Variables that are final and static should be all capitals, 'counter' is not all capitals. 1 56
FieldNamingConventions The constant name 'counter' doesn't match '[A-Z][A-Z_0-9]*' 1 56
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 77
LocalVariableCouldBeFinal Local variable 'md' could be declared final 3 79
ShortVariable Avoid variables with short names like md 3 79
LocalVariableCouldBeFinal Local variable 'bytesId' could be declared final 3 80
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 80
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 88
LocalVariableCouldBeFinal Local variable 'current' could be declared final 3 130
ShortVariable Avoid variables with short names like id 3 131
UseUnderscoresInNumericLiterals Number 100000000 should separate every third digit with an underscore 3 135
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 135

org/apache/turbine/services/urlmapper/MappedTemplateLink.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 50–118
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 56

org/apache/turbine/services/urlmapper/URLMapperService.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like pp 3 57

org/apache/turbine/services/urlmapper/URLMapperValve.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 39–61
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 44
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 50
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 50
CloseResource Ensure that resources like this RunData object are closed after use 3 53
LocalVariableCouldBeFinal Local variable 'data' could be declared final 3 53
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 54
LocalVariableCouldBeFinal Local variable 'uri' could be declared final 3 54
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 54
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 56

org/apache/turbine/services/urlmapper/model/URLMapEntry.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 44–175
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 48
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 48
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 49
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 49
RedundantFieldInitializer Avoid using redundant field initializer for 'relevantKeys' 3 52
MethodArgumentCouldBeFinal Parameter 'urlPattern' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'implicit' is not assigned and could be declared final 3 87
MethodArgumentCouldBeFinal Parameter 'ignore' is not assigned and could be declared final 3 106
MethodArgumentCouldBeFinal Parameter 'override' is not assigned and could be declared final 3 125
MethodArgumentCouldBeFinal Parameter 'groupNamesMap' is not assigned and could be declared final 3 145
MethodArgumentCouldBeFinal Parameter 'relevantKeys' is not assigned and could be declared final 3 165

org/apache/turbine/services/urlmapper/model/URLMappingContainer.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 43–98
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 56
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 64
MethodArgumentCouldBeFinal Parameter 'newURLMapEntries' is not assigned and could be declared final 3 94

org/apache/turbine/services/urlmapper/model/XmlParameterAdapter.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 35–62
MethodArgumentCouldBeFinal Parameter 'xmlList' is not assigned and could be declared final 3 41
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 44–46
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 44–46
MethodArgumentCouldBeFinal Parameter 'map' is not assigned and could be declared final 3 53
LocalVariableCouldBeFinal Local variable 'xmlList' could be declared final 3 55
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 56–58
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 56–58
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 56–58

org/apache/turbine/services/urlmapper/model/XmlParameterList.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 55–108
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 60
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 63
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 79
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 79
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 86
MethodArgumentCouldBeFinal Parameter 'xmlParameters' is not assigned and could be declared final 3 104

org/apache/turbine/services/urlmapper/model/XmlPatternAdapter.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 31–50
MethodArgumentCouldBeFinal Parameter 'urlPattern' is not assigned and could be declared final 3 37
MethodArgumentCouldBeFinal Parameter 'pattern' is not assigned and could be declared final 3 46

org/apache/turbine/services/velocity/VelocityService.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like VELOCITY_EXTENSION 3 52
LongVariable Avoid excessively long variable names like CATCH_ERRORS_DEFAULT 3 64
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 76
AvoidPrefixingMethodParameters Avoid prefixing parameters by in, out or inOut. Uses Javadoc to document this behavior. 4 89

org/apache/turbine/util/BrowserDetector.java

Rule Violation Priority Line
DataClass The class 'BrowserDetector' is suspected to be a Data Class (WOC=14.286%, NOPA=0, NOAM=4, WMC=9) 3 41–172
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 44
AvoidUsingVolatile Use of modifier volatile is not recommended. 2 56–57
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 60
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 66
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 71
MethodArgumentCouldBeFinal Parameter 'userAgentString' is not assigned and could be declared final 3 78
ConstructorCallsOverridableMethod Overridable method 'getUserAgent' called during object construction 1 81
LocalVariableCouldBeFinal Local variable 'userAgent' could be declared final 3 81
LocalVariableCouldBeFinal Local variable 'version' could be declared final 3 85
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 97
MethodArgumentCouldBeFinal Parameter 'userAgentString' is not assigned and could be declared final 3 157
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 168
UnnecessaryModifier Unnecessary modifier 'final' on method 'toFloat': private methods cannot be overridden 3 168–171
ShortVariable Avoid variables with short names like s 3 168

org/apache/turbine/util/FormMessage.java

Rule Violation Priority Line
DataClass The class 'FormMessage' is suspected to be a Data Class (WOC=18.182%, NOPA=0, NOAM=5, WMC=12) 3 33–161
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 3 52
ConstructorCallsOverridableMethod Overridable method 'setFormName' called during object construction 1 55
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 3 64
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 3 65
ConstructorCallsOverridableMethod Overridable method 'setFieldName' called during object construction 1 68
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 3 78
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 3 79
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 3 80
ConstructorCallsOverridableMethod Overridable method 'setMessage' called during object construction 1 83
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 113
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 3 121
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 3 131
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 3 141
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 3 153
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 3 153
ShortVariable Avoid variables with short names like sb 3 153
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 154
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 3 155
InefficientStringBuffering Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 3 157

org/apache/turbine/util/FormMessages.java

Rule Violation Priority Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 36
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 36
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 3 36
FieldNamingConventions The final field name 'forms_messages' doesn't match '[a-z][a-zA-Z0-9]*' 1 36
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 38
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 38
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 3 38
FieldNamingConventions The final field name 'fields_messages' doesn't match '[a-z][a-zA-Z0-9]*' 1 38
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 3 40
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 40
FieldNamingConventions The final field name 'messages_fields' doesn't match '[a-z][a-zA-Z0-9]*' 1 40
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 40
FieldNamingConventions The final field name 'forms_fields' doesn't match '[a-z][a-zA-Z0-9]*' 1 42
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 42
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 3 42
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 42
MethodArgumentCouldBeFinal Parameter 'returnCode' is not assigned and could be declared final 3 62
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 3 62
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 3 62
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 3 74
MethodArgumentCouldBeFinal Parameter 'messageName' is not assigned and could be declared final 3 74
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 3 74
LocalVariableCouldBeFinal Local variable 'formFieldName' could be declared final 3 76
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 3 90
MethodArgumentCouldBeFinal Parameter 'table' is not assigned and could be declared final 3 90
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 90
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 90
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 90
ConfusingTernary Avoid if (x != y) ..; else ..; 3 94–107
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 117
MethodArgumentCouldBeFinal Parameter 'table' is not assigned and could be declared final 3 117
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 117
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 3 117
UnnecessaryModifier Unnecessary modifier 'final' on method 'getValues': private methods cannot be overridden 3 117–120
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 1 128–154
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 3 128
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 1 128–154
OneDeclarationPerLine Use one line for each declaration, it enhances code readability. 4 130
OneDeclarationPerLine Use one line for each declaration, it enhances code readability. 4 131
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '135'-'138'). 5 135–138
LocalVariableCouldBeFinal Local variable 'field' could be declared final 3 142
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 151
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 3 163
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 1 163–182
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 3 163
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 1 163–182
LocalVariableCouldBeFinal Local variable 'key' could be declared final 3 165
LocalVariableCouldBeFinal Local variable 'messages' could be declared final 3 167
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '172'-'175'). 5 172–175
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 179
MethodArgumentCouldBeFinal Parameter 'fieldName' is not assigned and could be declared final 3 191
MethodArgumentCouldBeFinal Parameter 'formName' is not assigned and could be declared final 3 191
LocalVariableCouldBeFinal Local variable 'fields' could be declared final 3 193
LocalVariableCouldBeFinal Local variable 'field' could be declared final 3 194
StringToString Avoid calling toString() on String objects; this is unnecessary. 3 196
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 198

org/apache/turbine/util/GenerateUniqueId.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 40–159
RedundantFieldInitializer Avoid using redundant field initializer for 'session_count' 3 50
VariableNamingConventions Only variables that are final should contain underscores (except for underscores in standard prefix/suffix), 'session_count' is not final. 1 50
FieldNamingConventions The static field name 'session_count' doesn't match '[a-z][a-zA-Z0-9]*' 1 50
RedundantFieldInitializer Avoid using redundant field initializer for 'lastTimeVal' 3 51
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Random' due to existing import 'java.util.Random' 4 52
FieldNamingConventions The public constant name 'maxRandomLen' doesn't match '[A-Z][A-Z_0-9]*' 1 61
UseUnderscoresInNumericLiterals Number 2176782336L should separate every third digit with an underscore 3 61
VariableNamingConventions Variables that are final and static should be all capitals, 'maxRandomLen' is not all capitals. 1 61
UseUnderscoresInNumericLiterals Number 46656 should separate every third digit with an underscore 3 69
FieldNamingConventions The public constant name 'maxSessionLifespanTics' doesn't match '[A-Z][A-Z_0-9]*' 1 69
VariableNamingConventions Variables that are final and static should be all capitals, 'maxSessionLifespanTics' is not all capitals. 1 69
LongVariable Avoid excessively long variable names like maxSessionLifespanTics 3 69
FieldNamingConventions The public constant name 'ticDifference' doesn't match '[A-Z][A-Z_0-9]*' 1 75
VariableNamingConventions Variables that are final and static should be all capitals, 'ticDifference' is not all capitals. 1 75
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 85–130
LocalVariableCouldBeFinal Local variable 'sessionId' could be declared final 3 87
ShortVariable Avoid variables with short names like n 3 90
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 100–101
UselessParentheses Useless parentheses. 4 103
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 111–112
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 138–145
MethodArgumentCouldBeFinal Parameter 'jsIdent' is not assigned and could be declared final 3 138
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 142
MethodArgumentCouldBeFinal Parameter 'args' is not assigned and could be declared final 3 152
SystemPrintln System.out.println is used 2 154
SystemPrintln System.out.println is used 2 155
SystemPrintln System.out.println is used 2 156
SystemPrintln System.out.println is used 2 157

org/apache/turbine/util/HttpUtils.java

Rule Violation Priority Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 40–85
MethodArgumentCouldBeFinal Parameter 'date' is not assigned and could be declared final 3 56
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 70
MethodArgumentCouldBeFinal Parameter 'expiry' is not assigned and could be declared final 3 70
LocalVariableCouldBeFinal Local variable 'response' could be declared final 3 72

org/apache/turbine/util/InputFilterUtils.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 35–68
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 35–68
ShortVariable Avoid variables with short names like s 3 45
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 45
ShortVariable Avoid variables with short names like s 3 58
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 58

org/apache/turbine/util/LocaleUtils.java

Rule Violation Priority Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 62–248
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 64
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 64
RedundantFieldInitializer Avoid using redundant field initializer for 'defaultLocale' 3 67
RedundantFieldInitializer Avoid using redundant field initializer for 'defaultCharSet' 3 70
LocalVariableCouldBeFinal Local variable 'inputEncoding' could be declared final 3 80–82
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 80–82
NonThreadSafeSingleton Singleton is not thread safe 3 100–113
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 103–105
LocalVariableCouldBeFinal Local variable 'lang' could be declared final 3 103–105
LocalVariableCouldBeFinal Local variable 'country' could be declared final 3 107–109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 107–109
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 127
CognitiveComplexity The method 'getDefaultCharset()' has a cognitive complexity of 15, current threshold is 15 3 136–190
NonThreadSafeSingleton Singleton is not thread safe 3 138–150
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 141–143
LocalVariableCouldBeFinal Local variable 'charSet' could be declared final 3 141–143
LocalVariableCouldBeFinal Local variable 'locale' could be declared final 3 158
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 161
LocalVariableCouldBeFinal Local variable 'serviceManager' could be declared final 3 164
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 165
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 165–178
LocalVariableCouldBeFinal Local variable 'mimeTypeService' could be declared final 3 169
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 169
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'charset' (lines '170'-'190'). 5 170–190
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 170
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 172
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 174
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 202–203
LocalVariableCouldBeFinal Local variable 'charset' could be declared final 3 215–216
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 215–216
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 220
MethodArgumentCouldBeFinal Parameter 'charSet' is not assigned and could be declared final 3 234
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 238

org/apache/turbine/util/ObjectUtils.java

Rule Violation Priority Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 36–102
AbstractNaming Abstract classes should be named AbstractXXX 3 36–102
MethodArgumentCouldBeFinal Parameter 'map' is not assigned and could be declared final 3 47
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 48
UnusedAssignment The initializer for variable 'byteArray' is never used (overwritten on line 66) 3 50
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'byteArray' (lines '50'-'70'). 5 50–70
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 50
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'byteArray' (lines '50'-'66'). 5 50–66
LocalVariableCouldBeFinal Local variable 'value' could be declared final 3 52
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 56
MethodArgumentCouldBeFinal Parameter 'objectData' is not assigned and could be declared final 3 81
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'object' (lines '83'-'92'). 5 83–92
ShortVariable Avoid variables with short names like in 3 88
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 94
EmptyCatchBlock Avoid empty catch blocks 3 94–97

org/apache/turbine/util/RunData.java

Rule Violation Priority Line
ExcessivePublicCount This class has a bunch of public methods and attributes 3 1–637
ShortVariable Avoid variables with short names like ct 3 464
ShortVariable Avoid variables with short names like sc 3 494

org/apache/turbine/util/SecurityCheck.java

Rule Violation Priority Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 51
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 55
RedundantFieldInitializer Avoid using redundant field initializer for 'data' 3 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 57
RedundantFieldInitializer Avoid using redundant field initializer for 'securityService' 3 57
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 63
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 72
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 3 73
MethodArgumentCouldBeFinal Parameter 'failedScreen' is not assigned and could be declared final 3 74
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 91
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 3 91
MethodArgumentCouldBeFinal Parameter 'failedScreen' is not assigned and could be declared final 3 91
MethodArgumentCouldBeFinal Parameter 'initialize' is not assigned and could be declared final 3 91
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 109
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 110
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '112'-'122'). 5 112–122
LocalVariableCouldBeFinal Local variable 'acl' could be declared final 3 113
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 115
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 136
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 136
UnusedAssignment The initializer for variable 'roleObject' is never used (overwritten on lines 142 and 148) 3 138
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'roleObject' (lines '138'-'142'). 5 138–142
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'roleObject' (lines '142'-'148'). 5 142–148
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'roleObject' (lines '142'-'163'). 5 142–163
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 142
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 148
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 149
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'modelManager' (lines '150'-'163'). 5 150–163
LocalVariableCouldBeFinal Local variable 'modelManager' could be declared final 3 150
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 150
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 152
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 154
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 154
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 154
UselessParentheses Useless parentheses. 4 158
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 172
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 173
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '175'-'185'). 5 175–185
LocalVariableCouldBeFinal Local variable 'acl' could be declared final 3 176
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 178
CognitiveComplexity The method 'hasPermission(String)' has a cognitive complexity of 17, current threshold is 15 3 204–257
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 204
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 205
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'permissionObject' (lines '207'-'210'). 5 207–210
UnusedAssignment The initializer for variable 'permissionObject' is never used (overwritten on lines 210 and 216) 3 207
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'permissionObject' (lines '210'-'257'). 5 210–257
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 210
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'permissionObject' (lines '210'-'216'). 5 210–216
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 216
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 217
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'role' (lines '219'-'224'). 5 219–224
LocalVariableCouldBeFinal Local variable 'acl' could be declared final 3 220
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 221
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 222
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 233
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 234
LocalVariableCouldBeFinal Local variable 'modelManager' could be declared final 3 246
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 247
UselessParentheses Useless parentheses. 4 252

org/apache/turbine/util/ServerData.java

Rule Violation Priority Line
DataClass The class 'ServerData' is suspected to be a Data Class (WOC=18.750%, NOPA=0, NOAM=10, WMC=22) 3 42–279
RedundantFieldInitializer Avoid using redundant field initializer for 'serverName' 3 45
RedundantFieldInitializer Avoid using redundant field initializer for 'serverPort' 3 48
RedundantFieldInitializer Avoid using redundant field initializer for 'serverScheme' 3 51
RedundantFieldInitializer Avoid using redundant field initializer for 'scriptName' 3 54
RedundantFieldInitializer Avoid using redundant field initializer for 'contextPath' 3 57
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 60
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 60
MethodArgumentCouldBeFinal Parameter 'serverName' is not assigned and could be declared final 3 71
MethodArgumentCouldBeFinal Parameter 'serverPort' is not assigned and could be declared final 3 72
MethodArgumentCouldBeFinal Parameter 'serverScheme' is not assigned and could be declared final 3 73
MethodArgumentCouldBeFinal Parameter 'scriptName' is not assigned and could be declared final 3 74
MethodArgumentCouldBeFinal Parameter 'contextPath' is not assigned and could be declared final 3 75
ConstructorCallsOverridableMethod Overridable method 'setServerName' called during object construction 1 86
ConstructorCallsOverridableMethod Overridable method 'setServerScheme' called during object construction 1 88
ConstructorCallsOverridableMethod Overridable method 'setScriptName' called during object construction 1 89
ConstructorCallsOverridableMethod Overridable method 'setContextPath' called during object construction 1 90
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 98
ConstructorCallsOverridableMethod Overridable method 'setServerName' called during object construction 1 102
ConstructorCallsOverridableMethod Overridable method 'setServerScheme' called during object construction 1 104
ConstructorCallsOverridableMethod Overridable method 'setScriptName' called during object construction 1 105
ConstructorCallsOverridableMethod Overridable method 'setContextPath' called during object construction 1 106
MethodArgumentCouldBeFinal Parameter 'req' is not assigned and could be declared final 3 115
ConstructorCallsOverridableMethod Overridable method 'setServerName' called during object construction 1 117
ConstructorCallsOverridableMethod Overridable method 'setServerScheme' called during object construction 1 119
ConstructorCallsOverridableMethod Overridable method 'setScriptName' called during object construction 1 120
ConstructorCallsOverridableMethod Overridable method 'setContextPath' called during object construction 1 121
CloneMethodMustImplementCloneable clone() method should be implemented only if implementing Cloneable interface 3 130–134
ProperCloneImplementation Object clone() should be implemented with super.clone() 2 130–134
CloneMethodReturnTypeMustMatchClassName The return type of the clone() method must be the class name when implements Cloneable 3 130–134
CloneThrowsCloneNotSupportedException clone() method should throw CloneNotSupportedException 3 130–134
MethodArgumentCouldBeFinal Parameter 'serverName' is not assigned and could be declared final 3 151
MethodArgumentCouldBeFinal Parameter 'serverPort' is not assigned and could be declared final 3 172
GuardLogStatement Logger calls should be surrounded by log level guards. 2 174
MethodArgumentCouldBeFinal Parameter 'serverScheme' is not assigned and could be declared final 3 193
MethodArgumentCouldBeFinal Parameter 'scriptName' is not assigned and could be declared final 3 214
MethodArgumentCouldBeFinal Parameter 'contextPath' is not assigned and could be declared final 3 235
MethodArgumentCouldBeFinal Parameter 'url' is not assigned and could be declared final 3 246
LinguisticNaming Linguistics Antipattern - The getter 'getHostUrl' should not return void linguistically 3 246–261
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 248
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 249
UselessParentheses Useless parentheses. 4 251–252
LiteralsFirstInComparisons Position literals first in String comparisons 3 251
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 251
UselessParentheses Useless parentheses. 4 254–255
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 254
LiteralsFirstInComparisons Position literals first in String comparisons 3 254
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 258
LocalVariableCouldBeFinal Local variable 'url' could be declared final 3 271
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 275

org/apache/turbine/util/ServletUtils.java

Rule Violation Priority Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 43–103
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 3 54
MethodArgumentCouldBeFinal Parameter 'text' is not assigned and could be declared final 3 55
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 59
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 64
AvoidFinalLocalVariable Avoid using final local variables, turn them into fields 3 67
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 70
ShortVariable Avoid variables with short names like sb 3 72
LocalVariableCouldBeFinal Local variable 'sb' could be declared final 3 72
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 73
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 82
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 83
LocalVariableCouldBeFinal Local variable 'base' could be declared final 3 83–84
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 88
LocalVariableCouldBeFinal Local variable 'tokenizer' could be declared final 3 91
LocalVariableCouldBeFinal Local variable 'buffer' could be declared final 3 92

org/apache/turbine/util/SystemError.java

Rule Violation Priority Line
DoNotExtendJavaLangError Exceptions should not extend java.lang.Error 3 33
MethodArgumentCouldBeFinal Parameter 'cause' is not assigned and could be declared final 3 43
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 3 53
MethodArgumentCouldBeFinal Parameter 'cause' is not assigned and could be declared final 3 64
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 3 64

org/apache/turbine/util/TurbineConfig.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 1–940
ExcessivePublicCount This class has a bunch of public methods and attributes 3 1–940
CyclomaticComplexity The class 'TurbineConfig' has a total cyclomatic complexity of 108 (highest 4). 3 96–940
TooManyMethods This class has too many methods, consider refactoring it. 3 98–940
LongVariable Avoid excessively long variable names like CONFIGURATION_PATH_KEY 3 107
LongVariable Avoid excessively long variable names like PROPERTIES_PATH_KEY 3 113
LongVariable Avoid excessively long variable names like PROPERTIES_PATH_DEFAULT 3 119
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 123
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 126
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 129
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 132
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 135
AvoidFieldNameMatchingMethodName Field log has the same name as a method 3 135
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 135
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 151
MethodArgumentCouldBeFinal Parameter 'attributes' is not assigned and could be declared final 3 151
MethodArgumentCouldBeFinal Parameter 'initParams' is not assigned and could be declared final 3 152
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 172
MethodArgumentCouldBeFinal Parameter 'initParams' is not assigned and could be declared final 3 172
MethodArgumentCouldBeFinal Parameter 'properties' is not assigned and could be declared final 3 188
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 188
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 206
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 216
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 267
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'result' (lines '269'-'280'). 5 269–280
ShortVariable Avoid variables with short names like f 3 270
LocalVariableCouldBeFinal Local variable 'f' could be declared final 3 270
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 297
UseArrayListInsteadOfVector Use ArrayList instead of Vector 3 310
ShortVariable Avoid variables with short names like s 3 362
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 362
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 376
ShortVariable Avoid variables with short names like s 3 376
AvoidFileStream Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter 1 380
LocalVariableCouldBeFinal Local variable 'fis' could be declared final 3 380
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 381
MethodArgumentCouldBeFinal Parameter 'e' is not assigned and could be declared final 3 398
ShortVariable Avoid variables with short names like e 3 398
ShortVariable Avoid variables with short names like m 3 398
MethodArgumentCouldBeFinal Parameter 'm' is not assigned and could be declared final 3 398
ShortVariable Avoid variables with short names like m 3 409
MethodArgumentCouldBeFinal Parameter 'm' is not assigned and could be declared final 3 409
ShortVariable Avoid variables with short names like m 3 421
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 3 421
MethodArgumentCouldBeFinal Parameter 'm' is not assigned and could be declared final 3 421
ShortVariable Avoid variables with short names like t 3 421
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 431
ShortVariable Avoid variables with short names like s 3 431
UseArrayListInsteadOfVector Use ArrayList instead of Vector 3 443
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 456
ShortVariable Avoid variables with short names like s 3 456
ShortVariable Avoid variables with short names like s 3 482
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 482
ShortVariable Avoid variables with short names like s 3 508
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 508
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 521
ShortVariable Avoid variables with short names like s 3 521
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 533
ShortVariable Avoid variables with short names like s 3 533
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 559
ShortVariable Avoid variables with short names like s 3 559
ShortVariable Avoid variables with short names like s 3 599
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 599
ShortVariable Avoid variables with short names like s 3 611
ShortVariable Avoid variables with short names like o 3 611
MethodArgumentCouldBeFinal Parameter 'o' is not assigned and could be declared final 3 611
MethodArgumentCouldBeFinal Parameter 's' is not assigned and could be declared final 3 611
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 647
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 647
MethodArgumentCouldBeFinal Parameter 'servletName' is not assigned and could be declared final 3 659
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 3 659
MethodArgumentCouldBeFinal Parameter 'servlet' is not assigned and could be declared final 3 671
MethodArgumentCouldBeFinal Parameter 'servletName' is not assigned and could be declared final 3 671
MethodArgumentCouldBeFinal Parameter 'servletClass' is not assigned and could be declared final 3 683
MethodArgumentCouldBeFinal Parameter 'servletName' is not assigned and could be declared final 3 683
MethodArgumentCouldBeFinal Parameter 'clazz' is not assigned and could be declared final 3 695
MethodArgumentCouldBeFinal Parameter 'servletName' is not assigned and could be declared final 3 707
MethodArgumentCouldBeFinal Parameter 'filterName' is not assigned and could be declared final 3 731
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 3 731
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'javax.servlet.FilterRegistration.Dynamic' due to existing import 'javax.servlet.FilterRegistration' 4 731
MethodArgumentCouldBeFinal Parameter 'filterName' is not assigned and could be declared final 3 743
MethodArgumentCouldBeFinal Parameter 'filter' is not assigned and could be declared final 3 743
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'javax.servlet.FilterRegistration.Dynamic' due to existing import 'javax.servlet.FilterRegistration' 4 743
MethodArgumentCouldBeFinal Parameter 'filterName' is not assigned and could be declared final 3 755
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'javax.servlet.FilterRegistration.Dynamic' due to existing import 'javax.servlet.FilterRegistration' 4 755
MethodArgumentCouldBeFinal Parameter 'filterClass' is not assigned and could be declared final 3 755
MethodArgumentCouldBeFinal Parameter 'clazz' is not assigned and could be declared final 3 767
MethodArgumentCouldBeFinal Parameter 'filterName' is not assigned and could be declared final 3 779
MethodArgumentCouldBeFinal Parameter 'sessionTrackingModes' is not assigned and could be declared final 3 815
LongVariable Avoid excessively long variable names like sessionTrackingModes 3 815
MethodArgumentCouldBeFinal Parameter 'className' is not assigned and could be declared final 3 851
MethodArgumentCouldBeFinal Parameter 't' is not assigned and could be declared final 3 863
ShortVariable Avoid variables with short names like t 3 863
MethodArgumentCouldBeFinal Parameter 'listenerClass' is not assigned and could be declared final 3 875
MethodArgumentCouldBeFinal Parameter 'clazz' is not assigned and could be declared final 3 887
MethodArgumentCouldBeFinal Parameter 'roleNames' is not assigned and could be declared final 3 923

org/apache/turbine/util/TurbineException.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 3 112
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 3 124
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 3 137
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 3 137

org/apache/turbine/util/TurbineRuntimeException.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 3 55
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 3 67
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 3 80
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 3 80

org/apache/turbine/util/TurbineXmlConfig.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'attributes' is not assigned and could be declared final 3 76
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 76
MethodArgumentCouldBeFinal Parameter 'initParams' is not assigned and could be declared final 3 77
MethodArgumentCouldBeFinal Parameter 'initParams' is not assigned and could be declared final 3 95
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 95
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 109
MethodArgumentCouldBeFinal Parameter 'config' is not assigned and could be declared final 3 109

org/apache/turbine/util/template/HtmlPageAttributes.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 105–690
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 110
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 116
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 122
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 125
RedundantFieldInitializer Avoid using redundant field initializer for 'doctype' 3 128
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 128
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 131
LongVariable Avoid excessively long variable names like defaultHtmlDoctypeRootElement 3 131
ImmutableField Private field 'defaultHtmlDoctypeRootElement' could be made final; it is only initialized in the declaration or constructor. 3 131
LongVariable Avoid excessively long variable names like defaultHtmlDoctypeIdentifier 3 134
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 134
LongVariable Avoid excessively long variable names like defaultHtmlDoctypeUri 3 137
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 137
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 154
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 156
MethodArgumentCouldBeFinal Parameter 'title' is not assigned and could be declared final 3 183
LinguisticNaming Linguistics Antipattern - The setter 'setTitle' should not return any type except void linguistically 3 183–187
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 200
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 212
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 212
MethodArgumentCouldBeFinal Parameter 'scriptURL' is not assigned and could be declared final 3 234
MethodArgumentCouldBeFinal Parameter 'styleSheetURL' is not assigned and could be declared final 3 257
MethodArgumentCouldBeFinal Parameter 'styleSheetURL' is not assigned and could be declared final 3 272
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 272–273
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 3 273
MethodArgumentCouldBeFinal Parameter 'media' is not assigned and could be declared final 3 273
MethodArgumentCouldBeFinal Parameter 'title' is not assigned and could be declared final 3 273
ShortVariable Avoid variables with short names like ss 3 275
LocalVariableCouldBeFinal Local variable 'ss' could be declared final 3 275
MethodArgumentCouldBeFinal Parameter 'linkURL' is not assigned and could be declared final 3 290
MethodArgumentCouldBeFinal Parameter 'relation' is not assigned and could be declared final 3 290
MethodArgumentCouldBeFinal Parameter 'relation' is not assigned and could be declared final 3 303
MethodArgumentCouldBeFinal Parameter 'linkURL' is not assigned and could be declared final 3 303
MethodArgumentCouldBeFinal Parameter 'title' is not assigned and could be declared final 3 303
MethodArgumentCouldBeFinal Parameter 'title' is not assigned and could be declared final 3 317
MethodArgumentCouldBeFinal Parameter 'relation' is not assigned and could be declared final 3 317
MethodArgumentCouldBeFinal Parameter 'linkURL' is not assigned and could be declared final 3 317
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 317–318
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 3 318
LocalVariableCouldBeFinal Local variable 'ss' could be declared final 3 320
ShortVariable Avoid variables with short names like ss 3 320
MethodArgumentCouldBeFinal Parameter 'styleText' is not assigned and could be declared final 3 343
LinguisticNaming Linguistics Antipattern - The setter 'setKeywords' should not return any type except void linguistically 3 365–369
MethodArgumentCouldBeFinal Parameter 'keywords' is not assigned and could be declared final 3 365
MethodArgumentCouldBeFinal Parameter 'content' is not assigned and could be declared final 3 380
LinguisticNaming Linguistics Antipattern - The setter 'setHttpEquiv' should not return any type except void linguistically 3 380–384
MethodArgumentCouldBeFinal Parameter 'httpEquiv' is not assigned and could be declared final 3 380
MethodArgumentCouldBeFinal Parameter 'description' is not assigned and could be declared final 3 392
LinguisticNaming Linguistics Antipattern - The setter 'setDescription' should not return any type except void linguistically 3 392–396
LinguisticNaming Linguistics Antipattern - The setter 'setBackground' should not return any type except void linguistically 3 404–408
MethodArgumentCouldBeFinal Parameter 'url' is not assigned and could be declared final 3 404
MethodArgumentCouldBeFinal Parameter 'color' is not assigned and could be declared final 3 418
LinguisticNaming Linguistics Antipattern - The setter 'setBgColor' should not return any type except void linguistically 3 418–422
MethodArgumentCouldBeFinal Parameter 'color' is not assigned and could be declared final 3 431
LinguisticNaming Linguistics Antipattern - The setter 'setTextColor' should not return any type except void linguistically 3 431–435
LinguisticNaming Linguistics Antipattern - The setter 'setLinkColor' should not return any type except void linguistically 3 444–448
MethodArgumentCouldBeFinal Parameter 'color' is not assigned and could be declared final 3 444
MethodArgumentCouldBeFinal Parameter 'color' is not assigned and could be declared final 3 456
LinguisticNaming Linguistics Antipattern - The setter 'setVlinkColor' should not return any type except void linguistically 3 456–460
MethodArgumentCouldBeFinal Parameter 'color' is not assigned and could be declared final 3 468
LinguisticNaming Linguistics Antipattern - The setter 'setAlinkColor' should not return any type except void linguistically 3 468–472
DataClass The class 'LinkTag' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=9, WMC=15) 3 508–626
MethodArgumentCouldBeFinal Parameter 'url' is not assigned and could be declared final 3 523
MethodArgumentCouldBeFinal Parameter 'relation' is not assigned and could be declared final 3 523
ConstructorCallsOverridableMethod Overridable method 'setRelation' called during object construction 1 525
UselessParentheses Useless parentheses. 4 536
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 3 544
MethodArgumentCouldBeFinal Parameter 'url' is not assigned and could be declared final 3 562
UselessParentheses Useless parentheses. 4 574
MethodArgumentCouldBeFinal Parameter 'title' is not assigned and could be declared final 3 582
UselessParentheses Useless parentheses. 4 594
MethodArgumentCouldBeFinal Parameter 'media' is not assigned and could be declared final 3 602
UselessParentheses Useless parentheses. 4 614
MethodArgumentCouldBeFinal Parameter 'relation' is not assigned and could be declared final 3 622
LocalVariableCouldBeFinal Local variable 'tag' could be declared final 3 643
MethodArgumentCouldBeFinal Parameter 'identifier' is not assigned and could be declared final 3 666
MethodArgumentCouldBeFinal Parameter 'tag' is not assigned and could be declared final 3 666
MethodArgumentCouldBeFinal Parameter 'uri' is not assigned and could be declared final 3 666
LocalVariableCouldBeFinal Local variable 'doctypeBuf' could be declared final 3 668

org/apache/turbine/util/template/TemplateInfo.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like NAVIGATION_TEMPLATE 3 47
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 54
ImmutableField Private field 'data' could be made final; it is only initialized in the declaration or constructor. 3 54
UnusedAssignment The field initializer for 'data' is never used (overwritten on line 66) 3 54
RedundantFieldInitializer Avoid using redundant field initializer for 'data' 3 54
ImmutableField Private field 'tempStorage' could be made final; it is only initialized in the declaration or constructor. 3 57
UnusedAssignment The field initializer for 'tempStorage' is never used (overwritten on line 67) 3 57
RedundantFieldInitializer Avoid using redundant field initializer for 'tempStorage' 3 57
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 57
MethodArgumentCouldBeFinal Parameter 'data' is not assigned and could be declared final 3 64
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 85
ShortVariable Avoid variables with short names like v 3 85
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 98
ShortVariable Avoid variables with short names like v 3 107
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 107
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 109
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 117
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 117
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 118
EmptyCatchBlock Avoid empty catch blocks 3 120–125
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 120
LocalVariableCouldBeFinal Local variable 'value' could be declared final 3 135
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'value' 3 136
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 144
ShortVariable Avoid variables with short names like v 3 144
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 156
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 167
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 167
ShortVariable Avoid variables with short names like v 3 167
ShortVariable Avoid variables with short names like v 3 187
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 187
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 198
MethodArgumentCouldBeFinal Parameter 'def' is not assigned and could be declared final 3 210
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 210
LocalVariableCouldBeFinal Local variable 'val' could be declared final 3 214
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 215
ConfusingTernary Avoid if (x != y) ..; else ..; 3 215
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 217
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 229
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 229
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 240
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '242'-'246'). 5 242–246
LocalVariableCouldBeFinal Local variable 'object' could be declared final 3 243
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 257
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '259'-'263'). 5 259–263
LocalVariableCouldBeFinal Local variable 'object' could be declared final 3 260
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 275
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 287

org/apache/turbine/util/template/TemplateNavigation.java

Rule Violation Priority Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 49
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 49
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 'template' 3 55
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 62
LinguisticNaming Linguistics Antipattern - The setter 'setTemplate' should not return any type except void linguistically 3 74–79
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 74
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'module' (lines '89'-'103'). 5 89–103
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'module' (lines '89'-'124'). 5 89–124
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'returnValue' (lines '90'-'107'). 5 90–107
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'returnValue' (lines '90'-'96'). 5 90–96
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'returnValue' (lines '90'-'111'). 5 90–111
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 97
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 100
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 100
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 101–102
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 101–102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 103
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 108
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 111
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 113

org/apache/turbine/util/template/TemplateScreen.java

Rule Violation Priority Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 52
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 52
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 58
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 65
MethodArgumentCouldBeFinal Parameter 'screen' is not assigned and could be declared final 3 77
LinguisticNaming Linguistics Antipattern - The setter 'setScreen' should not return any type except void linguistically 3 77–81
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'returnValue' (lines '91'-'99'). 5 91–99
LocalVariableCouldBeFinal Local variable 'results' could be declared final 3 95
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 95
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 102

org/apache/turbine/util/template/TemplateSecurityCheck.java

Rule Violation Priority Line
DataClass The class 'TemplateSecurityCheck' is suspected to be a Data Class (WOC=27.273%, NOPA=0, NOAM=6, WMC=18) 3 52–228
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 59
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'message' is not assigned and could be declared final 3 68
ConstructorCallsOverridableMethod Overridable method 'setMessage' called during object construction 1 71
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 79
LocalVariableCouldBeFinal Local variable 'templateService' could be declared final 3 82–83
MethodArgumentCouldBeFinal Parameter 'role' is not assigned and could be declared final 3 94
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 95
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 99
LocalVariableCouldBeFinal Local variable 'acl' could be declared final 3 102
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 103
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 106
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 108
MethodArgumentCouldBeFinal Parameter 'permission' is not assigned and could be declared final 3 121
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 122
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '124'-'131'). 5 124–131
LocalVariableCouldBeFinal Local variable 'acl' could be declared final 3 125
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 126
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 129
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 144
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'value' (lines '146'-'161'). 5 146–161
LocalVariableCouldBeFinal Local variable 'userManager' could be declared final 3 149–152
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 150–152
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 154
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 155
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 157–158
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 160
ShortVariable Avoid variables with short names like v 3 173
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 173
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 204
ShortVariable Avoid variables with short names like v 3 204
MethodArgumentCouldBeFinal Parameter 'v' is not assigned and could be declared final 3 224
ShortVariable Avoid variables with short names like v 3 224

org/apache/turbine/util/uri/BaseURI.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 46–520
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 51
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 51
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 54
RedundantFieldInitializer Avoid using redundant field initializer for 'redirect' 3 58
RedundantFieldInitializer Avoid using redundant field initializer for 'response' 3 61
RedundantFieldInitializer Avoid using redundant field initializer for 'reference' 3 64
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 3 90
ConstructorCallsOverridableMethod Overridable method 'setResponse' called during object construction 1 93
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 3 102
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 3 102
ConstructorCallsOverridableMethod Overridable method 'setResponse' called during object construction 1 105
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 114
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 126
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 3 126
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 148
ConfusingTernary Avoid if (x != y) ..; else ..; 3 152–163
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 164
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 3 181
MethodArgumentCouldBeFinal Parameter 'scriptName' is not assigned and could be declared final 3 213
MethodArgumentCouldBeFinal Parameter 'contextPath' is not assigned and could be declared final 3 234
MethodArgumentCouldBeFinal Parameter 'serverName' is not assigned and could be declared final 3 255
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 272
MethodArgumentCouldBeFinal Parameter 'serverPort' is not assigned and could be declared final 3 289
MethodArgumentCouldBeFinal Parameter 'port' is not assigned and could be declared final 3 311
LocalVariableCouldBeFinal Local variable 'useSSL' could be declared final 3 313–316
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 314–316
MethodArgumentCouldBeFinal Parameter 'serverScheme' is not assigned and could be declared final 3 327
LocalVariableCouldBeFinal Local variable 'serverScheme' could be declared final 3 342
MethodArgumentCouldBeFinal Parameter 'reference' is not assigned and could be declared final 3 352
MethodArgumentCouldBeFinal Parameter 'response' is not assigned and could be declared final 3 393
ShortVariable Avoid variables with short names like sb 3 421
LinguisticNaming Linguistics Antipattern - The getter 'getContextAndScript' should not return void linguistically 3 421–445
MethodArgumentCouldBeFinal Parameter 'sb' is not assigned and could be declared final 3 421
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 423
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 427
LocalVariableCouldBeFinal Local variable 'script' could be declared final 3 435
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 439
MethodArgumentCouldBeFinal Parameter 'sb' is not assigned and could be declared final 3 459
LinguisticNaming Linguistics Antipattern - The getter 'getSchemeAndPort' should not return void linguistically 3 459–475
ShortVariable Avoid variables with short names like sb 3 459
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 462
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 463
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 467
UselessParentheses Useless parentheses. 4 467–468
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 469
UselessParentheses Useless parentheses. 4 469–470
MethodArgumentCouldBeFinal Parameter 'uri' is not assigned and could be declared final 3 486
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'res' (lines '488'-'503'). 5 488–503
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'res' (lines '488'-'507'). 5 488–507
LocalVariableCouldBeFinal Local variable 'response' could be declared final 3 490
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 510
GuardLogStatement Logger calls should be surrounded by log level guards. 2 512
GuardLogStatement Logger calls should be surrounded by log level guards. 2 517

org/apache/turbine/util/uri/DataURI.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 3 57
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 3 68
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 78
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 3 89
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 89
LocalVariableCouldBeFinal Local variable 'output' could be declared final 3 126
LocalVariableCouldBeFinal Local variable 'output' could be declared final 3 164

org/apache/turbine/util/uri/TemplateURI.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 3 59
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 3 70
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 3 70
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 3 81
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 81
ConstructorCallsOverridableMethod Overridable method 'setTemplate' called during object construction 1 84
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 94
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 3 94
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 3 94
ConstructorCallsOverridableMethod Overridable method 'setTemplate' called during object construction 1 97
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 3 107
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 3 107
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 107
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 121
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 3 121
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 3 121
MethodArgumentCouldBeFinal Parameter 'runData' is not assigned and could be declared final 3 121
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 132
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 143
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 3 143
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 154
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 154
ConstructorCallsOverridableMethod Overridable method 'setTemplate' called during object construction 1 157
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 3 167
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 167
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 167
ConstructorCallsOverridableMethod Overridable method 'setTemplate' called during object construction 1 170
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 180
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 180
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 3 180
MethodArgumentCouldBeFinal Parameter 'redirect' is not assigned and could be declared final 3 194
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 194
MethodArgumentCouldBeFinal Parameter 'serverData' is not assigned and could be declared final 3 194
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 3 194
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 206
MethodArgumentCouldBeFinal Parameter 'action' is not assigned and could be declared final 3 206
ConstructorCallsOverridableMethod Overridable method 'setTemplate' called during object construction 1 209
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 222
MethodArgumentCouldBeFinal Parameter 'type' is not assigned and could be declared final 3 266
MethodArgumentCouldBeFinal Parameter 'pp' is not assigned and could be declared final 3 267
ShortVariable Avoid variables with short names like pp 3 267
LocalVariableCouldBeFinal Local variable 'name' could be declared final 3 269
LocalVariableCouldBeFinal Local variable 'key' could be declared final 3 271
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 273
LocalVariableCouldBeFinal Local variable 'values' could be declared final 3 275
ConfusingTernary Avoid if (x != y) ..; else ..; 3 276–286
LocalVariableCouldBeFinal Local variable 'value' could be declared final 3 278

org/apache/turbine/util/uri/URI.java

Rule Violation Priority Line
ShortClassName Avoid short class names like URI 4 32–76

org/apache/turbine/util/uri/URIConstants.java

Rule Violation Priority Line
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 36
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 39
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 42
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 45
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 48
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 51
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 54
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 60
LongVariable Avoid excessively long variable names like URI_SCHEME_SEPARATOR 3 60
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 63
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 66
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 69
LongVariable Avoid excessively long variable names like CGI_TEMPLATE_PARAM 3 69
ConstantsInInterface Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19. 3 72

org/apache/turbine/util/uri/URIParam.java

Rule Violation Priority Line
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 37
ImmutableField Private field 'key' could be made final; it is only initialized in the declaration or constructor. 3 37
UnusedAssignment The field initializer for 'key' is never used (overwritten on line 51) 3 37
RedundantFieldInitializer Avoid using redundant field initializer for 'key' 3 37
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 40
ImmutableField Private field 'value' could be made final; it is only initialized in the declaration or constructor. 3 40
RedundantFieldInitializer Avoid using redundant field initializer for 'value' 3 40
UnusedAssignment The field initializer for 'value' is never used (overwritten on line 52) 3 40
MethodArgumentCouldBeFinal Parameter 'value' is not assigned and could be declared final 3 49
MethodArgumentCouldBeFinal Parameter 'key' is not assigned and could be declared final 3 49
UselessParentheses Useless parentheses. 4 63
MethodArgumentCouldBeFinal Parameter 'obj' is not assigned and could be declared final 3 90
IfStmtsMustUseBraces Avoid using if statements without curly braces 3 92–93
ControlStatementBraces This statement should have braces 3 93
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 93
IfStmtsMustUseBraces Avoid using if statements without curly braces 3 94–95
ControlStatementBraces This statement should have braces 3 95
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 95
IfStmtsMustUseBraces Avoid using if statements without curly braces 3 96–97
ControlStatementBraces This statement should have braces 3 97
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 97
LocalVariableCouldBeFinal Local variable 'other' could be declared final 3 98
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 100
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 101

org/apache/turbine/util/uri/URIUtils.java

Rule Violation Priority Line
AbstractNaming Abstract classes should be named AbstractXXX 3 34–53
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 34–53
MethodArgumentCouldBeFinal Parameter 'path' is not assigned and could be declared final 3 47
ShortVariable Avoid variables with short names like du 3 49
LocalVariableCouldBeFinal Local variable 'du' could be declared final 3 49

org/apache/turbine/util/velocity/VelocityActionEvent.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 51–90
AbstractNaming Abstract classes should be named AbstractXXX 3 51–90
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 55
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 58
RedundantFieldInitializer Avoid using redundant field initializer for 'initialized' 3 58
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 3 66
MethodArgumentCouldBeFinal Parameter 'pipelineData' is not assigned and could be declared final 3 77
ShortVariable Avoid variables with short names like pp 3 85
LocalVariableCouldBeFinal Local variable 'pp' could be declared final 3 85
LocalVariableCouldBeFinal Local variable 'context' could be declared final 3 86

org/apache/turbine/util/velocity/VelocityEmail.java

Rule Violation Priority Line
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 107
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 107
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 110
RedundantFieldInitializer Avoid using redundant field initializer for 'wordWrap' 3 110
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 116
RedundantFieldInitializer Avoid using redundant field initializer for 'template' 3 116
RedundantFieldInitializer Avoid using redundant field initializer for 'context' 3 119
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 133
MethodArgumentCouldBeFinal Parameter 'toEmail' is not assigned and could be declared final 3 149
MethodArgumentCouldBeFinal Parameter 'toName' is not assigned and could be declared final 3 149
LinguisticNaming Linguistics Antipattern - The setter 'setTo' should not return any type except void linguistically 3 149–154
LinguisticNaming Linguistics Antipattern - The setter 'setTemplate' should not return any type except void linguistically 3 164–168
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 164
MethodArgumentCouldBeFinal Parameter 'wordWrap' is not assigned and could be declared final 3 181
LinguisticNaming Linguistics Antipattern - The setter 'setWordWrap' should not return any type except void linguistically 3 181–185
LinguisticNaming Linguistics Antipattern - The setter 'setContext' should not return any type except void linguistically 3 194–198
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 194
MethodArgumentCouldBeFinal Parameter 'serverAddress' is not assigned and could be declared final 3 218
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 234–236
UnusedAssignment The initializer for variable 'body' is never used (overwritten on line 256) 3 251
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'body' (lines '251'-'256'). 5 251–256
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 255
LocalVariableCouldBeFinal Local variable 'velocityService' could be declared final 3 255
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 256
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'body' (lines '256'-'274'). 5 256–274
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 258

org/apache/turbine/util/velocity/VelocityEmailException.java

Rule Violation Priority Line
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 3 53
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 3 65
MethodArgumentCouldBeFinal Parameter 'nested' is not assigned and could be declared final 3 78
MethodArgumentCouldBeFinal Parameter 'msg' is not assigned and could be declared final 3 78

org/apache/turbine/util/velocity/VelocityHtmlEmail.java

Rule Violation Priority Line
FieldNamingConventions The constant name 'log' doesn't match '[A-Z][A-Z_0-9]*' 1 88
VariableNamingConventions Variables that are final and static should be all capitals, 'log' is not all capitals. 1 88
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 94
RedundantFieldInitializer Avoid using redundant field initializer for 'htmlTemplate' 3 94
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 100
RedundantFieldInitializer Avoid using redundant field initializer for 'textTemplate' 3 100
RedundantFieldInitializer Avoid using redundant field initializer for 'context' 3 103
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 103
LooseCoupling Avoid using implementation types like 'Hashtable'; use the interface instead 3 106
ReplaceHashtableWithMap Consider replacing this Hashtable with the newer java.util.Map 3 106
BeanMembersShouldSerialize Found non-transient, non-static member. Please mark as transient or provide accessors. 3 106
RedundantFieldInitializer Avoid using redundant field initializer for 'embmap' 3 106
MethodArgumentCouldBeFinal Parameter 'context' is not assigned and could be declared final 3 124
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 139
LinguisticNaming Linguistics Antipattern - The setter 'setHtmlTemplate' should not return any type except void linguistically 3 139–143
LinguisticNaming Linguistics Antipattern - The setter 'setTextTemplate' should not return any type except void linguistically 3 153–157
MethodArgumentCouldBeFinal Parameter 'template' is not assigned and could be declared final 3 153
MethodArgumentCouldBeFinal Parameter 'serverAddress' is not assigned and could be declared final 3 166
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 182–184
DataflowAnomalyAnalysis Found 'DU'-anomaly for variable 'velocityService' (lines '199'-'216'). 5 199–216
LawOfDemeter Potential violation of Law of Demeter (method chain calls) 3 199
LocalVariableCouldBeFinal Local variable 'velocityService' could be declared final 3 199
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 203
LawOfDemeter Potential violation of Law of Demeter (object not created locally) 3 207
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 210
MethodArgumentCouldBeFinal Parameter 'name' is not assigned and could be declared final 3 243
MethodArgumentCouldBeFinal Parameter 'surl' is not assigned and could be declared final 3 243
DataflowAnomalyAnalysis Found 'DD'-anomaly for variable 'cid' (lines '245'-'249'). 5 245–249
LocalVariableCouldBeFinal Local variable 'url' could be declared final 3 248
MethodArgumentCouldBeFinal Parameter 'filename' is not assigned and could be declared final 3 266
LocalVariableCouldBeFinal Local variable 'cid' could be declared final 3 268

Processing Errors

Filename Problem
org/apache/turbine/annotation/AnnotationProcessor.java PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\annotation\AnnotationProcessor.java
net.sourceforge.pmd.PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\annotation\AnnotationProcessor.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 41784 out of bounds for length 17624
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more
org/apache/turbine/modules/ActionEvent.java PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\modules\ActionEvent.java
net.sourceforge.pmd.PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\modules\ActionEvent.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 10621 out of bounds for length 9213
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more
org/apache/turbine/services/BaseServiceBroker.java PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\BaseServiceBroker.java
net.sourceforge.pmd.PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\BaseServiceBroker.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 33658 out of bounds for length 13476
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more
org/apache/turbine/services/pull/TurbinePullService.java PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\pull\TurbinePullService.java
net.sourceforge.pmd.PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\pull\TurbinePullService.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 18526 out of bounds for length 13589
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more
org/apache/turbine/services/rundata/DefaultTurbineRunData.java PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\rundata\DefaultTurbineRunData.java
net.sourceforge.pmd.PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\rundata\DefaultTurbineRunData.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 68246 out of bounds for length 18318
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more
org/apache/turbine/services/schedule/QuartzSchedulerService.java PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\schedule\QuartzSchedulerService.java
net.sourceforge.pmd.PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\schedule\QuartzSchedulerService.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 20196 out of bounds for length 10083
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more
org/apache/turbine/services/urlmapper/TurbineURLMapperService.java PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\urlmapper\TurbineURLMapperService.java
net.sourceforge.pmd.PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\urlmapper\TurbineURLMapperService.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 70287 out of bounds for length 14424
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more
org/apache/turbine/services/velocity/TurbineVelocityService.java PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\velocity\TurbineVelocityService.java
net.sourceforge.pmd.PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\services\velocity\TurbineVelocityService.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 52660 out of bounds for length 12023
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more
org/apache/turbine/util/uri/TurbineURI.java PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\util\uri\TurbineURI.java
net.sourceforge.pmd.PMDException: Error while processing C:\dc\apache.org\turbine\git\turbine-build\core\src\java\org\apache\turbine\util\uri\TurbineURI.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 54287 out of bounds for length 14372
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more