PMD Results

The following document contains the results of PMD 5.0.2.

Files

Tobago Core - org/apache/myfaces/tobago/ajax/AjaxUtils.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 49
Potential violation of Law of Demeter (method chain calls) 49
Potential violation of Law of Demeter (method chain calls) 54
Potential violation of Law of Demeter (object not created locally) 61
Potential violation of Law of Demeter (method chain calls) 66
Potential violation of Law of Demeter (method chain calls) 66
Potential violation of Law of Demeter (object not created locally) 76
Potential violation of Law of Demeter (method chain calls) 81
Potential violation of Law of Demeter (object not created locally) 82
Potential violation of Law of Demeter (method chain calls) 112 - 113
Potential violation of Law of Demeter (method chain calls) 112 - 113

Tobago Core - org/apache/myfaces/tobago/application/ActionListenerImpl.java

Violation Line
Private field 'base' could be made final; it is only initialized in the declaration or constructor. 41
An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 53
Potential violation of Law of Demeter (object not created locally) 59
Potential violation of Law of Demeter (object not created locally) 62
Potential violation of Law of Demeter (object not created locally) 64
Potential violation of Law of Demeter (method chain calls) 65
Potential violation of Law of Demeter (object not created locally) 65
Potential violation of Law of Demeter (object not created locally) 66
Potential violation of Law of Demeter (object not created locally) 70
Potential violation of Law of Demeter (object not created locally) 71
Potential violation of Law of Demeter (object not created locally) 73
Avoid if (x != y) ..; else ..; 75
Potential violation of Law of Demeter (object not created locally) 75
Potential violation of Law of Demeter (object not created locally) 76
Potential violation of Law of Demeter (object not created locally) 78

Tobago Core - org/apache/myfaces/tobago/application/LabelValueExpressionFacesMessage.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 47 - 48
Potential violation of Law of Demeter (method chain calls) 47 - 48
Potential violation of Law of Demeter (object not created locally) 47 - 48
Potential violation of Law of Demeter (method chain calls) 47 - 48
Potential violation of Law of Demeter (object not created locally) 48
Potential violation of Law of Demeter (object not created locally) 49
Potential violation of Law of Demeter (object not created locally) 49
Potential violation of Law of Demeter (method chain calls) 55 - 56
Potential violation of Law of Demeter (object not created locally) 55 - 56
Potential violation of Law of Demeter (method chain calls) 55 - 56
Potential violation of Law of Demeter (method chain calls) 55 - 56
Potential violation of Law of Demeter (object not created locally) 56
Potential violation of Law of Demeter (object not created locally) 57
Potential violation of Law of Demeter (object not created locally) 57

Tobago Core - org/apache/myfaces/tobago/compat/FacesUtilsEL.java

Violation Line
This class has too many methods, consider refactoring it. 48 - 268
Potential violation of Law of Demeter (object not created locally) 71
Useless parentheses. 71
These nested if statements could be combined 72 - 74
Potential violation of Law of Demeter (object not created locally) 90
Potential violation of Law of Demeter (method chain calls) 135
Potential violation of Law of Demeter (method chain calls) 145
Potential violation of Law of Demeter (method chain calls) 150
Potential violation of Law of Demeter (object not created locally) 157
Potential violation of Law of Demeter (object not created locally) 165
Potential violation of Law of Demeter (object not created locally) 180
Potential violation of Law of Demeter (method chain calls) 180
Potential violation of Law of Demeter (method chain calls) 180
Potential violation of Law of Demeter (method chain calls) 195
Potential violation of Law of Demeter (object not created locally) 195
Potential violation of Law of Demeter (object not created locally) 196
Potential violation of Law of Demeter (object not created locally) 196
Avoid if (x != y) ..; else ..; 206
Potential violation of Law of Demeter (method chain calls) 206
Potential violation of Law of Demeter (method chain calls) 206
Potential violation of Law of Demeter (method chain calls) 206
Potential violation of Law of Demeter (object not created locally) 216
Avoid if (x != y) ..; else ..; 216 - 221
Potential violation of Law of Demeter (method chain calls) 217
Potential violation of Law of Demeter (method chain calls) 219 - 220
Potential violation of Law of Demeter (method chain calls) 219 - 220
Potential violation of Law of Demeter (method chain calls) 219 - 220
Potential violation of Law of Demeter (method chain calls) 219 - 220
Potential violation of Law of Demeter (object not created locally) 220

Tobago Core - org/apache/myfaces/tobago/component/Facets.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 55

Tobago Core - org/apache/myfaces/tobago/component/MethodBindingToMethodExpression.java

Violation Line
This class has too many methods, consider refactoring it. 37 - 231
Document empty constructor 47 - 48
Consider using varargs for methods or constructors which take an array the last parameter. 93
Potential violation of Law of Demeter (object not created locally) 112
Potential violation of Law of Demeter (object not created locally) 112
Potential violation of Law of Demeter (object not created locally) 112
Potential violation of Law of Demeter (method chain calls) 123
Potential violation of Law of Demeter (method chain calls) 124
Potential violation of Law of Demeter (method chain calls) 139
Potential violation of Law of Demeter (method chain calls) 139
Potential violation of Law of Demeter (method chain calls) 139
Potential violation of Law of Demeter (method chain calls) 139
Potential violation of Law of Demeter (method chain calls) 140
Potential violation of Law of Demeter (method chain calls) 140
Potential violation of Law of Demeter (method chain calls) 215
Potential violation of Law of Demeter (method chain calls) 215
Potential violation of Law of Demeter (method chain calls) 215
Potential violation of Law of Demeter (method chain calls) 218
Potential violation of Law of Demeter (method chain calls) 218
Potential violation of Law of Demeter (method chain calls) 218

Tobago Core - org/apache/myfaces/tobago/component/MethodExpressionToMethodBinding.java

Violation Line
Avoid using redundant field initializer for 'isTransient' 38
Potential violation of Law of Demeter (method chain calls) 60
Unnecessary use of fully qualified name 'javax.faces.el.MethodNotFoundException' due to existing import 'javax.faces.el.MethodNotFoundException' 62
Consider using varargs for methods or constructors which take an array the last parameter. 68
Unnecessary use of fully qualified name 'javax.faces.el.MethodNotFoundException' due to existing import 'javax.faces.el.MethodNotFoundException' 74

Tobago Core - org/apache/myfaces/tobago/component/Sorter.java

Violation Line
The class 'Sorter' has a Cyclomatic Complexity of 8 (Highest = 28). 49 - 238
Possible God class (WMC=48, ATFD=25, TCC=0.2) 49 - 238
Avoid really long methods. 55 - 181
The method perform() has an NPath complexity of 34968 55 - 181
The method 'perform' has a Cyclomatic Complexity of 28. 55 - 181
Potential violation of Law of Demeter (method chain calls) 57
Potential violation of Law of Demeter (method chain calls) 57
Potential violation of Law of Demeter (object not created locally) 62
Potential violation of Law of Demeter (method chain calls) 64
Potential violation of Law of Demeter (object not created locally) 67
Potential violation of Law of Demeter (object not created locally) 75
Avoid if (x != y) ..; else ..; 76 - 117
Avoid if (x != y) ..; else ..; 79 - 112
Potential violation of Law of Demeter (object not created locally) 79
Potential violation of Law of Demeter (object not created locally) 80
Potential violation of Law of Demeter (method chain calls) 86
Potential violation of Law of Demeter (object not created locally) 86
Potential violation of Law of Demeter (object not created locally) 88
Potential violation of Law of Demeter (object not created locally) 89
Potential violation of Law of Demeter (object not created locally) 91 - 92
Potential violation of Law of Demeter (object not created locally) 92
Potential violation of Law of Demeter (object not created locally) 94
Potential violation of Law of Demeter (object not created locally) 94
Potential violation of Law of Demeter (object not created locally) 97
Potential violation of Law of Demeter (object not created locally) 104
Potential violation of Law of Demeter (object not created locally) 105
Potential violation of Law of Demeter (object not created locally) 119
Potential violation of Law of Demeter (object not created locally) 133
Potential violation of Law of Demeter (method chain calls) 133
Potential violation of Law of Demeter (object not created locally) 134
Potential violation of Law of Demeter (method chain calls) 134
Potential violation of Law of Demeter (object not created locally) 136
Potential violation of Law of Demeter (method chain calls) 138
Potential violation of Law of Demeter (object not created locally) 142
Potential violation of Law of Demeter (method chain calls) 155
Potential violation of Law of Demeter (object not created locally) 155
Potential violation of Law of Demeter (method chain calls) 159
Potential violation of Law of Demeter (method chain calls) 160
Potential violation of Law of Demeter (method chain calls) 172
Potential violation of Law of Demeter (object not created locally) 172
Potential violation of Law of Demeter (method chain calls) 178 - 179
Potential violation of Law of Demeter (object not created locally) 179
Avoid if (x != y) ..; else ..; 179
Potential violation of Law of Demeter (method chain calls) 179
Potential violation of Law of Demeter (method chain calls) 179
Potential violation of Law of Demeter (method chain calls) 201
The method 'getFirstSortableChild' has a Cyclomatic Complexity of 13. 204 - 229
Potential violation of Law of Demeter (object not created locally) 212
Useless parentheses. 212
Potential violation of Law of Demeter (method chain calls) 212
Potential violation of Law of Demeter (method chain calls) 212
Potential violation of Law of Demeter (static property access) 213
Potential violation of Law of Demeter (object not created locally) 213
Useless parentheses. 213
Potential violation of Law of Demeter (object not created locally) 222

Tobago Core - org/apache/myfaces/tobago/component/SupportsRenderedPartially.java

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

Tobago Core - org/apache/myfaces/tobago/component/UIMenuSelectOne.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 33

Tobago Core - org/apache/myfaces/tobago/config/TobagoConfig.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 36
Potential violation of Law of Demeter (method chain calls) 36

Tobago Core - org/apache/myfaces/tobago/context/ClientProperties.java

Violation Line
Potential violation of Law of Demeter (static property access) 154
Potential violation of Law of Demeter (method chain calls) 155
Potential violation of Law of Demeter (method chain calls) 155
Potential violation of Law of Demeter (static property access) 164
Potential violation of Law of Demeter (method chain calls) 165
Potential violation of Law of Demeter (method chain calls) 165
Potential violation of Law of Demeter (object not created locally) 202
Potential violation of Law of Demeter (method chain calls) 202
Use equals() to compare object references. 204

Tobago Core - org/apache/myfaces/tobago/context/Markup.java

Violation Line
This class has too many methods, consider refactoring it. 50 - 317
Consider using varargs for methods or constructors which take an array the last parameter. 96
Consider using varargs for methods or constructors which take an array the last parameter. 106
Potential violation of Law of Demeter (method chain calls) 110
Potential violation of Law of Demeter (object not created locally) 114
Potential violation of Law of Demeter (method chain calls) 114
Potential violation of Law of Demeter (method chain calls) 114
Avoid if (x != y) ..; else ..; 166
Avoid if (x != y) ..; else ..; 178
Avoid if (x != y) ..; else ..; 179
Use equals() to compare object references. 201
Avoid if (x != y) ..; else ..; 204 - 215
Potential violation of Law of Demeter (object not created locally) 211
Avoid if (x != y) ..; else ..; 245 - 254
Potential violation of Law of Demeter (object not created locally) 251
Potential violation of Law of Demeter (method chain calls) 276
Potential violation of Law of Demeter (method chain calls) 276

Tobago Core - org/apache/myfaces/tobago/context/MarkupConfig.java

Violation Line
Private field 'markups' could be made final; it is only initialized in the declaration or constructor. 30

Tobago Core - org/apache/myfaces/tobago/context/ResourceManagerUtils.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 38
Potential violation of Law of Demeter (method chain calls) 43
Potential violation of Law of Demeter (method chain calls) 71
Potential violation of Law of Demeter (method chain calls) 75
Potential violation of Law of Demeter (method chain calls) 89 - 90
Potential violation of Law of Demeter (method chain calls) 94
Potential violation of Law of Demeter (method chain calls) 122
Potential violation of Law of Demeter (method chain calls) 126
Potential violation of Law of Demeter (method chain calls) 131
Potential violation of Law of Demeter (method chain calls) 132
Potential violation of Law of Demeter (method chain calls) 145
Potential violation of Law of Demeter (method chain calls) 146
Consider using varargs for methods or constructors which take an array the last parameter. 154
Consider using varargs for methods or constructors which take an array the last parameter. 166
Potential violation of Law of Demeter (method chain calls) 206
Potential violation of Law of Demeter (method chain calls) 216 - 217
This call to String.startsWith can be rewritten using String.charAt(0) 233
Useless parentheses. 233 - 236
Potential violation of Law of Demeter (object not created locally) 233 - 236
Potential violation of Law of Demeter (object not created locally) 233
Potential violation of Law of Demeter (object not created locally) 234
Potential violation of Law of Demeter (object not created locally) 235
Potential violation of Law of Demeter (object not created locally) 236
Local variable 'dot' could be declared final 243
Local variable 'slash' could be declared final 247

Tobago Core - org/apache/myfaces/tobago/context/ThemeImpl.java

Violation Line
Too many fields 33 - 276
Possible God class (WMC=51, ATFD=16, TCC=0.06436781609195402) 33 - 276
Private field 'productionResources' could be made final; it is only initialized in the declaration or constructor. 46
Private field 'resources' could be made final; it is only initialized in the declaration or constructor. 47
Avoid using redundant field initializer for 'unmodifiable' 55
Potential violation of Law of Demeter (object not created locally) 131
Potential violation of Law of Demeter (object not created locally) 149
Potential violation of Law of Demeter (object not created locally) 150
Deeply nested if..then statements are hard to read 151 - 156
Potential violation of Law of Demeter (object not created locally) 154
Potential violation of Law of Demeter (object not created locally) 172
Potential violation of Law of Demeter (object not created locally) 173
Potential violation of Law of Demeter (object not created locally) 174
Avoid appending characters as strings in StringBuffer.append. 183
Avoid appending characters as strings in StringBuffer.append. 186
Potential violation of Law of Demeter (method chain calls) 224
Potential violation of Law of Demeter (method chain calls) 225
Potential violation of Law of Demeter (method chain calls) 226
Potential violation of Law of Demeter (method chain calls) 226
Potential violation of Law of Demeter (method chain calls) 228
Potential violation of Law of Demeter (method chain calls) 229
Potential violation of Law of Demeter (method chain calls) 230
Potential violation of Law of Demeter (method chain calls) 230
Potential violation of Law of Demeter (method chain calls) 233
Potential violation of Law of Demeter (method chain calls) 234
Potential violation of Law of Demeter (method chain calls) 235
Potential violation of Law of Demeter (method chain calls) 235
Potential violation of Law of Demeter (method chain calls) 237
Potential violation of Law of Demeter (method chain calls) 238
Potential violation of Law of Demeter (method chain calls) 239
Potential violation of Law of Demeter (method chain calls) 239

Tobago Core - org/apache/myfaces/tobago/context/ThemeResource.java

Violation Line
Avoid if (x != y) ..; else ..; 50
Avoid if (x != y) ..; else ..; 56

Tobago Core - org/apache/myfaces/tobago/context/ThemeResources.java

Violation Line
Private field 'scriptList' could be made final; it is only initialized in the declaration or constructor. 34
Private field 'styleList' could be made final; it is only initialized in the declaration or constructor. 35
Potential violation of Law of Demeter (method chain calls) 41
Potential violation of Law of Demeter (method chain calls) 42
Potential violation of Law of Demeter (method chain calls) 46
Potential violation of Law of Demeter (method chain calls) 47

Tobago Core - org/apache/myfaces/tobago/context/TobagoBundle.java

Violation Line
Private field 'bundleName' could be made final; it is only initialized in the declaration or constructor. 41
Potential violation of Law of Demeter (method chain calls) 56
Potential violation of Law of Demeter (method chain calls) 56

Tobago Core - org/apache/myfaces/tobago/context/TobagoContext.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 38
Potential violation of Law of Demeter (object not created locally) 48
Potential violation of Law of Demeter (object not created locally) 48

Tobago Core - org/apache/myfaces/tobago/context/TransientStateHolder.java

Violation Line
Document empty constructor 33 - 34

Tobago Core - org/apache/myfaces/tobago/context/UserAgent.java

Violation Line
The class 'UserAgent' has a Cyclomatic Complexity of 3 (Highest = 20). 33 - 386
The String literal "msie" appears 12 times in this file; the first occurrence is on line 43 43
The String literal "opera" appears 4 times in this file; the first occurrence is on line 107 107
The String literal "mozilla" appears 4 times in this file; the first occurrence is on line 131 131
The String literal "gecko" appears 5 times in this file; the first occurrence is on line 154 154
Potential violation of Law of Demeter (static property access) 227
Potential violation of Law of Demeter (static property access) 231
Potential violation of Law of Demeter (static property access) 231
Potential violation of Law of Demeter (static property access) 239
The method 'getInstance' has a Cyclomatic Complexity of 20. 275 - 330
Potential violation of Law of Demeter (static property access) 337
Avoid if (x != y) ..; else ..; 346 - 348
Consider using varargs for methods or constructors which take an array the last parameter. 360
Consider using varargs for methods or constructors which take an array the last parameter. 378

Tobago Core - org/apache/myfaces/tobago/convert/CurrencyConverter.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 51

Tobago Core - org/apache/myfaces/tobago/convert/DurationConverter.java

Violation Line
The class 'DurationConverter' has a Cyclomatic Complexity of 8 (Highest = 10). 37 - 150
Potential violation of Law of Demeter (method chain calls) 57
Potential violation of Law of Demeter (method chain calls) 67
Unnecessary wrapper object creation 67
Potential violation of Law of Demeter (object not created locally) 75
Potential violation of Law of Demeter (object not created locally) 76
Potential violation of Law of Demeter (object not created locally) 79
Avoid declaring a variable if it is unreferenced before a possible exit point. 90
Potential violation of Law of Demeter (object not created locally) 93
Potential violation of Law of Demeter (object not created locally) 94
Potential violation of Law of Demeter (object not created locally) 94
Potential violation of Law of Demeter (object not created locally) 99
Potential violation of Law of Demeter (object not created locally) 101
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (object not created locally) 103
Potential violation of Law of Demeter (object not created locally) 106
Potential violation of Law of Demeter (object not created locally) 107
The method 'getUnitFactor' has a Cyclomatic Complexity of 10. 121 - 148
Potential violation of Law of Demeter (method chain calls) 124

Tobago Core - org/apache/myfaces/tobago/convert/ThemeConverter.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 43
Potential violation of Law of Demeter (method chain calls) 53

Tobago Core - org/apache/myfaces/tobago/el/ConstantMethodBinding.java

Violation Line
Document empty constructor 38 - 39
Consider using varargs for methods or constructors which take an array the last parameter. 41

Tobago Core - org/apache/myfaces/tobago/el/UserWrapper.java

Violation Line
Private field 'roles' could be made final; it is only initialized in the declaration or constructor. 35
Potential violation of Law of Demeter (method chain calls) 43
Potential violation of Law of Demeter (object not created locally) 43
Potential violation of Law of Demeter (object not created locally) 59
Potential violation of Law of Demeter (method chain calls) 59

Tobago Core - org/apache/myfaces/tobago/event/AbstractPopupActionListener.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 39 - 40
Potential violation of Law of Demeter (method chain calls) 40
Potential violation of Law of Demeter (object not created locally) 42

Tobago Core - org/apache/myfaces/tobago/event/FacesEventWrapper.java

Violation Line
Private field 'wrappedFacesEvent' could be made final; it is only initialized in the declaration or constructor. 31

Tobago Core - org/apache/myfaces/tobago/event/MethodExpressionStateChangeListener.java

Violation Line
Avoid using redundant field initializer for 'isTransient' 33
Document empty constructor 35 - 36

Tobago Core - org/apache/myfaces/tobago/event/MethodExpressionTabChangeListener.java

Violation Line
Avoid using redundant field initializer for 'isTransient' 33
Document empty constructor 35 - 36

Tobago Core - org/apache/myfaces/tobago/event/MethodExpressionTreeExpansionListener.java

Violation Line
Avoid using redundant field initializer for 'isTransient' 34
Document empty constructor 36 - 37
Avoid unused private methods such as 'elContext()'. 47
Potential violation of Law of Demeter (method chain calls) 48

Tobago Core - org/apache/myfaces/tobago/event/MethodExpressionTreeMarkedListener.java

Violation Line
Avoid using redundant field initializer for 'isTransient' 37
Document empty constructor 39 - 40
Avoid unused private methods such as 'elContext()'. 50
Potential violation of Law of Demeter (method chain calls) 51

Tobago Core - org/apache/myfaces/tobago/event/MethodExpressionTreeSelectedListener.java

Violation Line
Avoid using redundant field initializer for 'isTransient' 33
Document empty constructor 35 - 36
Avoid unused private methods such as 'elContext()'. 46
Potential violation of Law of Demeter (method chain calls) 47

Tobago Core - org/apache/myfaces/tobago/event/PageAction.java

Violation Line
Avoid if (x != y) ..; else ..; 85 - 89

Tobago Core - org/apache/myfaces/tobago/event/PageActionEvent.java

Violation Line
Private field 'action' could be made final; it is only initialized in the declaration or constructor. 31

Tobago Core - org/apache/myfaces/tobago/event/PopupActionListener.java

Violation Line
Document empty constructor 37 - 38
Potential violation of Law of Demeter (method chain calls) 52 - 53
Potential violation of Law of Demeter (method chain calls) 53

Tobago Core - org/apache/myfaces/tobago/event/PopupFacetActionListener.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 37
Avoid if (x != y) ..; else ..; 40 - 46
Potential violation of Law of Demeter (method chain calls) 41
Potential violation of Law of Demeter (object not created locally) 41
Potential violation of Law of Demeter (method chain calls) 41 - 42
Potential violation of Law of Demeter (method chain calls) 41 - 42
Potential violation of Law of Demeter (method chain calls) 42
Potential violation of Law of Demeter (method chain calls) 44 - 45
Potential violation of Law of Demeter (method chain calls) 45

Tobago Core - org/apache/myfaces/tobago/event/ResetFormActionListener.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 32

Tobago Core - org/apache/myfaces/tobago/event/ResetInputActionListener.java

Violation Line
Document empty constructor 34 - 35
Consider using varargs for methods or constructors which take an array the last parameter. 37

Tobago Core - org/apache/myfaces/tobago/event/SheetStateChangeEvent.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 40

Tobago Core - org/apache/myfaces/tobago/event/SortActionEvent.java

Violation Line
Private field 'column' could be made final; it is only initialized in the declaration or constructor. 31

Tobago Core - org/apache/myfaces/tobago/event/TabChangeEvent.java

Violation Line
Overridable method 'setOldState' called during object construction 45
Overridable method 'setNewState' called during object construction 46
Potential violation of Law of Demeter (method chain calls) 55

Tobago Core - org/apache/myfaces/tobago/event/TreeExpansionEvent.java

Violation Line
Private field 'oldExpanded' could be made final; it is only initialized in the declaration or constructor. 30
Private field 'newExpanded' could be made final; it is only initialized in the declaration or constructor. 31
Potential violation of Law of Demeter (method chain calls) 47
Potential violation of Law of Demeter (method chain calls) 49
Avoid empty if statements 50 - 52

Tobago Core - org/apache/myfaces/tobago/event/TreeMarkedEvent.java

Violation Line
Private field 'oldMarked' could be made final; it is only initialized in the declaration or constructor. 34
Private field 'newMarked' could be made final; it is only initialized in the declaration or constructor. 35
Potential violation of Law of Demeter (method chain calls) 50
Potential violation of Law of Demeter (method chain calls) 52
Avoid empty if statements 53 - 55

Tobago Core - org/apache/myfaces/tobago/event/TreeSelectedEvent.java

Violation Line
Private field 'oldSelected' could be made final; it is only initialized in the declaration or constructor. 30
Private field 'newSelected' could be made final; it is only initialized in the declaration or constructor. 31
Potential violation of Law of Demeter (method chain calls) 46
Potential violation of Law of Demeter (method chain calls) 48
Avoid empty if statements 49 - 51

Tobago Core - org/apache/myfaces/tobago/event/ValueExpressionPopupActionListener.java

Violation Line
Document empty constructor 56 - 57
Potential violation of Law of Demeter (method chain calls) 61
Potential violation of Law of Demeter (method chain calls) 61
Potential violation of Law of Demeter (method chain calls) 66 - 69
Potential violation of Law of Demeter (method chain calls) 69
Potential violation of Law of Demeter (method chain calls) 80

Tobago Core - org/apache/myfaces/tobago/event/ValueExpressionResetInputActionListener.java

Violation Line
Document empty constructor 44 - 45
Potential violation of Law of Demeter (method chain calls) 52
Potential violation of Law of Demeter (method chain calls) 52
Potential violation of Law of Demeter (method chain calls) 76

Tobago Core - org/apache/myfaces/tobago/event/ValueExpressionSheetStateChangeListener.java

Violation Line
Document empty constructor 37 - 38
Avoid if (x != y) ..; else ..; 47 - 51
Potential violation of Law of Demeter (object not created locally) 48
Potential violation of Law of Demeter (method chain calls) 63
Potential violation of Law of Demeter (method chain calls) 79
Potential violation of Law of Demeter (method chain calls) 79
No need to check for null before an instanceof 80
Potential violation of Law of Demeter (method chain calls) 87
Potential violation of Law of Demeter (method chain calls) 87
Potential violation of Law of Demeter (method chain calls) 95
Potential violation of Law of Demeter (method chain calls) 95
Potential violation of Law of Demeter (object not created locally) 96
Potential violation of Law of Demeter (object not created locally) 96

Tobago Core - org/apache/myfaces/tobago/event/ValueExpressionTabChangeListener.java

Violation Line
Document empty constructor 37 - 38
Avoid if (x != y) ..; else ..; 47 - 51
Potential violation of Law of Demeter (object not created locally) 48
Potential violation of Law of Demeter (method chain calls) 63
Potential violation of Law of Demeter (method chain calls) 79
Potential violation of Law of Demeter (method chain calls) 79
No need to check for null before an instanceof 80
Potential violation of Law of Demeter (method chain calls) 87
Potential violation of Law of Demeter (method chain calls) 87
Potential violation of Law of Demeter (method chain calls) 95
Potential violation of Law of Demeter (method chain calls) 95
Potential violation of Law of Demeter (object not created locally) 96
Potential violation of Law of Demeter (object not created locally) 96

Tobago Core - org/apache/myfaces/tobago/facelets/AttributeHandler.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 20 - 366
Possible God class (WMC=79, ATFD=79, TCC=0.027777777777777776) 56 - 366
The class 'AttributeHandler' has a Cyclomatic Complexity of 7 (Highest = 59). 56 - 366
Avoid really long methods. 73 - 283
The method apply() has an NCSS line count of 165 73 - 283
The method 'apply' has a Cyclomatic Complexity of 59. 73 - 283
Avoid if (x != y) ..; else ..; 80 - 281
Potential violation of Law of Demeter (method chain calls) 81
Avoid if (x != y) ..; else ..; 84 - 102
Potential violation of Law of Demeter (method chain calls) 88
Potential violation of Law of Demeter (object not created locally) 93
Potential violation of Law of Demeter (method chain calls) 103
Potential violation of Law of Demeter (method chain calls) 104
Avoid if (x != y) ..; else ..; 107 - 125
Potential violation of Law of Demeter (method chain calls) 111
Potential violation of Law of Demeter (object not created locally) 116
Potential violation of Law of Demeter (method chain calls) 126
Potential violation of Law of Demeter (method chain calls) 127
Potential violation of Law of Demeter (method chain calls) 132
Potential violation of Law of Demeter (object not created locally) 141
Potential violation of Law of Demeter (object not created locally) 149 - 150
Potential violation of Law of Demeter (method chain calls) 151
Potential violation of Law of Demeter (method chain calls) 153
Potential violation of Law of Demeter (method chain calls) 158
Potential violation of Law of Demeter (object not created locally) 167
Potential violation of Law of Demeter (object not created locally) 178 - 179
Potential violation of Law of Demeter (method chain calls) 182
Potential violation of Law of Demeter (method chain calls) 187
Potential violation of Law of Demeter (method chain calls) 192
Avoid if (x != y) ..; else ..; 193 - 200
Potential violation of Law of Demeter (object not created locally) 195
Potential violation of Law of Demeter (method chain calls) 209
Potential violation of Law of Demeter (static property access) 218
Potential violation of Law of Demeter (static property access) 224
Potential violation of Law of Demeter (method chain calls) 229
Potential violation of Law of Demeter (static property access) 233
Potential violation of Law of Demeter (static property access) 236
Potential violation of Law of Demeter (method chain calls) 239
Potential violation of Law of Demeter (method chain calls) 245
Potential violation of Law of Demeter (method chain calls) 245
Potential violation of Law of Demeter (static property access) 247
Potential violation of Law of Demeter (static property access) 254
Potential violation of Law of Demeter (static property access) 261
Potential violation of Law of Demeter (static property access) 263
Potential violation of Law of Demeter (method chain calls) 266
Potential violation of Law of Demeter (static property access) 268
Potential violation of Law of Demeter (method chain calls) 274
Potential violation of Law of Demeter (method chain calls) 276
Potential violation of Law of Demeter (method chain calls) 303
Consider using varargs for methods or constructors which take an array the last parameter. 307
Potential violation of Law of Demeter (method chain calls) 311
Avoid if (x != y) ..; else ..; 313 - 319
Potential violation of Law of Demeter (object not created locally) 315 - 316
Potential violation of Law of Demeter (object not created locally) 316
Potential violation of Law of Demeter (object not created locally) 336 - 337
Potential violation of Law of Demeter (object not created locally) 338
Potential violation of Law of Demeter (method chain calls) 345
Potential violation of Law of Demeter (method chain calls) 360
Potential violation of Law of Demeter (method chain calls) 360
Potential violation of Law of Demeter (method chain calls) 361

Tobago Core - org/apache/myfaces/tobago/facelets/ContentTypeRule.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 36
Potential violation of Law of Demeter (method chain calls) 52

Tobago Core - org/apache/myfaces/tobago/facelets/ConverterHandler.java

Violation Line
Avoid declaring a variable if it is unreferenced before a possible exit point. 53
Potential violation of Law of Demeter (object not created locally) 58
Potential violation of Law of Demeter (method chain calls) 62 - 63
Potential violation of Law of Demeter (method chain calls) 62 - 63
Potential violation of Law of Demeter (method chain calls) 62 - 63
Potential violation of Law of Demeter (method chain calls) 63
New exception is thrown in catch block, original stack trace may be lost 65
Potential violation of Law of Demeter (object not created locally) 65
Deeply nested if..then statements are hard to read 67 - 69
Potential violation of Law of Demeter (object not created locally) 68
Potential violation of Law of Demeter (object not created locally) 72

Tobago Core - org/apache/myfaces/tobago/facelets/DeprecatedDimensionRule.java

Violation Line
Potential violation of Law of Demeter (static property access) 39
Potential violation of Law of Demeter (static property access) 42
Potential violation of Law of Demeter (method chain calls) 57
Potential violation of Law of Demeter (method chain calls) 60
Potential violation of Law of Demeter (method chain calls) 74
Potential violation of Law of Demeter (method chain calls) 77

Tobago Core - org/apache/myfaces/tobago/facelets/FixCharacterEncodingFilter.java

Violation Line
Document empty method 31 - 33
Document empty method 44 - 45

Tobago Core - org/apache/myfaces/tobago/facelets/FlowLayoutRule.java

Violation Line
The class 'FlowLayoutRule' has a Cyclomatic Complexity of 10 (Highest = 9). 33 - 140
These nested if statements could be combined 39 - 58
Deeply nested if..then statements are hard to read 40 - 42
Potential violation of Law of Demeter (static property access) 40
Deeply nested if..then statements are hard to read 43 - 45
Potential violation of Law of Demeter (static property access) 43
Potential violation of Law of Demeter (static property access) 46
Deeply nested if..then statements are hard to read 46 - 48
Deeply nested if..then statements are hard to read 49 - 51
Potential violation of Law of Demeter (static property access) 49
Deeply nested if..then statements are hard to read 52 - 54
Potential violation of Law of Demeter (static property access) 52
Potential violation of Law of Demeter (static property access) 55
Deeply nested if..then statements are hard to read 55 - 57
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (object not created locally) 85
Potential violation of Law of Demeter (object not created locally) 98
Potential violation of Law of Demeter (object not created locally) 111
Potential violation of Law of Demeter (object not created locally) 124
Potential violation of Law of Demeter (object not created locally) 137

Tobago Core - org/apache/myfaces/tobago/facelets/GridLayoutConstraintHandler.java

Violation Line
Too many fields 38 - 342
The class 'GridLayoutConstraintHandler' has a Cyclomatic Complexity of 32 (Highest = 62). 38 - 342
Possible God class (WMC=62, ATFD=138, TCC=0.0) 38 - 342
The method apply() has an NPath complexity of 2106404298 98 - 341
Avoid reassigning parameters such as 'parent' 98
Avoid reassigning parameters such as 'parent' 98
The method 'apply' has a Cyclomatic Complexity of 62. 98 - 341
The method apply() has an NCSS line count of 140 98 - 341
Avoid really long methods. 98 - 341
Potential violation of Law of Demeter (method chain calls) 101
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (method chain calls) 103
Potential violation of Law of Demeter (method chain calls) 110
Potential violation of Law of Demeter (method chain calls) 119
Potential violation of Law of Demeter (object not created locally) 128
Potential violation of Law of Demeter (object not created locally) 137
Potential violation of Law of Demeter (object not created locally) 146
Potential violation of Law of Demeter (object not created locally) 155
Potential violation of Law of Demeter (object not created locally) 164
Potential violation of Law of Demeter (object not created locally) 173
Potential violation of Law of Demeter (object not created locally) 182
Potential violation of Law of Demeter (object not created locally) 191
Potential violation of Law of Demeter (object not created locally) 200
Potential violation of Law of Demeter (object not created locally) 209
Potential violation of Law of Demeter (object not created locally) 218
Potential violation of Law of Demeter (object not created locally) 227
Potential violation of Law of Demeter (object not created locally) 243
Potential violation of Law of Demeter (object not created locally) 252
Potential violation of Law of Demeter (object not created locally) 261
Potential violation of Law of Demeter (object not created locally) 270
Potential violation of Law of Demeter (object not created locally) 279
Potential violation of Law of Demeter (object not created locally) 288
Potential violation of Law of Demeter (object not created locally) 297
Potential violation of Law of Demeter (object not created locally) 306

Tobago Core - org/apache/myfaces/tobago/facelets/GridLayoutRule.java

Violation Line
The class 'GridLayoutRule' has a Cyclomatic Complexity of 12 (Highest = 11). 32 - 171
The method applyRule() has an NPath complexity of 258 36 - 66
The method 'applyRule' has a Cyclomatic Complexity of 11. 36 - 66
These nested if statements could be combined 38 - 63
Deeply nested if..then statements are hard to read 39 - 41
Potential violation of Law of Demeter (static property access) 39
Deeply nested if..then statements are hard to read 42 - 44
Potential violation of Law of Demeter (static property access) 42
Potential violation of Law of Demeter (static property access) 45
Deeply nested if..then statements are hard to read 45 - 47
Deeply nested if..then statements are hard to read 48 - 50
Potential violation of Law of Demeter (static property access) 48
Deeply nested if..then statements are hard to read 51 - 53
Potential violation of Law of Demeter (static property access) 51
Deeply nested if..then statements are hard to read 54 - 56
Potential violation of Law of Demeter (static property access) 54
Potential violation of Law of Demeter (static property access) 57
Deeply nested if..then statements are hard to read 57 - 59
Deeply nested if..then statements are hard to read 60 - 62
Potential violation of Law of Demeter (static property access) 60
Potential violation of Law of Demeter (object not created locally) 77
Potential violation of Law of Demeter (object not created locally) 90
Potential violation of Law of Demeter (object not created locally) 103
Potential violation of Law of Demeter (object not created locally) 116
Potential violation of Law of Demeter (object not created locally) 129
Potential violation of Law of Demeter (object not created locally) 142
Potential violation of Law of Demeter (object not created locally) 155
Potential violation of Law of Demeter (object not created locally) 168

Tobago Core - org/apache/myfaces/tobago/facelets/LoadBundleHandler.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 48 - 49
Potential violation of Law of Demeter (method chain calls) 48 - 49
Potential violation of Law of Demeter (method chain calls) 48 - 49

Tobago Core - org/apache/myfaces/tobago/facelets/MetaInfResourcesClasspathResourceResolver.java

Violation Line
Avoid reassigning parameters such as 'path' 52
Avoid reassigning parameters such as 'path' 52
This call to String.startsWith can be rewritten using String.charAt(0) 58
Potential violation of Law of Demeter (method chain calls) 63
Potential violation of Law of Demeter (method chain calls) 63

Tobago Core - org/apache/myfaces/tobago/facelets/PositionRule.java

Violation Line
Potential violation of Law of Demeter (static property access) 39
Potential violation of Law of Demeter (static property access) 42
Potential violation of Law of Demeter (method chain calls) 57
Potential violation of Law of Demeter (method chain calls) 60
Potential violation of Law of Demeter (method chain calls) 74
Potential violation of Law of Demeter (method chain calls) 77

Tobago Core - org/apache/myfaces/tobago/facelets/Resource.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 61
These nested if statements could be combined 73 - 75
Potential violation of Law of Demeter (method chain calls) 84
Potential violation of Law of Demeter (object not created locally) 91
Potential violation of Law of Demeter (object not created locally) 94
Avoid empty catch blocks 95 - 98
Document empty method 113 - 114
Potential violation of Law of Demeter (object not created locally) 127
Avoid if (x != y) ..; else ..; 134
Potential violation of Law of Demeter (object not created locally) 134

Tobago Core - org/apache/myfaces/tobago/facelets/ScriptHandler.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 39
Potential violation of Law of Demeter (method chain calls) 41
Potential violation of Law of Demeter (method chain calls) 43
Document empty method 48 - 49

Tobago Core - org/apache/myfaces/tobago/facelets/SheetStateChangeSourceRule.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 40
These nested if statements could be combined 40 - 42
Potential violation of Law of Demeter (method chain calls) 56 - 57

Tobago Core - org/apache/myfaces/tobago/facelets/SortActionSourceRule.java

Violation Line
These nested if statements could be combined 41 - 43
Potential violation of Law of Demeter (method chain calls) 41
Potential violation of Law of Demeter (method chain calls) 57 - 58

Tobago Core - org/apache/myfaces/tobago/facelets/StyleHandler.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 40
Potential violation of Law of Demeter (method chain calls) 42
Potential violation of Law of Demeter (method chain calls) 44
Document empty method 49 - 50

Tobago Core - org/apache/myfaces/tobago/facelets/SuggestMethodRule.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 41
These nested if statements could be combined 41 - 43
These nested if statements could be combined 46 - 50
These nested if statements could be combined 47 - 49
Deeply nested if..then statements are hard to read 47 - 49
Potential violation of Law of Demeter (method chain calls) 47
Potential violation of Law of Demeter (method chain calls) 63 - 64
Potential violation of Law of Demeter (method chain calls) 76

Tobago Core - org/apache/myfaces/tobago/facelets/SupportsMarkupRule.java

Violation Line
Potential violation of Law of Demeter (static property access) 40
These nested if statements could be combined 40 - 42
Potential violation of Law of Demeter (method chain calls) 57
Potential violation of Law of Demeter (method chain calls) 60

Tobago Core - org/apache/myfaces/tobago/facelets/SupportsRenderedPartiallyRule.java

Violation Line
Potential violation of Law of Demeter (static property access) 40
These nested if statements could be combined 40 - 42
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (method chain calls) 61

Tobago Core - org/apache/myfaces/tobago/facelets/TabChangeListenerHandler.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 70
Potential violation of Law of Demeter (object not created locally) 76
New exception is thrown in catch block, original stack trace may be lost 76
Deeply nested if..then statements are hard to read 78 - 80
Potential violation of Law of Demeter (object not created locally) 79
Avoid if (x != y) ..; else ..; 82 - 87
Potential violation of Law of Demeter (object not created locally) 86

Tobago Core - org/apache/myfaces/tobago/facelets/TabChangeSourceRule.java

Violation Line
These nested if statements could be combined 37 - 39
Potential violation of Law of Demeter (method chain calls) 37
Potential violation of Law of Demeter (method chain calls) 53 - 54

Tobago Core - org/apache/myfaces/tobago/facelets/TagMethodExpression.java

Violation Line
New exception is thrown in catch block, original stack trace may be lost 63
New exception is thrown in catch block, original stack trace may be lost 65
New exception is thrown in catch block, original stack trace may be lost 67
Consider using varargs for methods or constructors which take an array the last parameter. 71
New exception is thrown in catch block, original stack trace may be lost 75
New exception is thrown in catch block, original stack trace may be lost 77
New exception is thrown in catch block, original stack trace may be lost 79
Potential violation of Law of Demeter (method chain calls) 100
Potential violation of Law of Demeter (method chain calls) 101

Tobago Core - org/apache/myfaces/tobago/facelets/TobagoComponentHandler.java

Violation Line
The class 'TobagoComponentHandler' has a Cyclomatic Complexity of 5 (Highest = 11). 50 - 139
The method 'createMetaRuleset' has a Cyclomatic Complexity of 11. 56 - 89
The method createMetaRuleset() has an NPath complexity of 1024 56 - 89
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (object not created locally) 59
Potential violation of Law of Demeter (method chain calls) 61
Potential violation of Law of Demeter (object not created locally) 62
Potential violation of Law of Demeter (method chain calls) 64
Potential violation of Law of Demeter (object not created locally) 65
Potential violation of Law of Demeter (method chain calls) 67
Potential violation of Law of Demeter (object not created locally) 68
Potential violation of Law of Demeter (method chain calls) 70
Potential violation of Law of Demeter (object not created locally) 71
Potential violation of Law of Demeter (method chain calls) 73
Potential violation of Law of Demeter (object not created locally) 74
Potential violation of Law of Demeter (method chain calls) 76
Potential violation of Law of Demeter (object not created locally) 77
Potential violation of Law of Demeter (method chain calls) 79
Potential violation of Law of Demeter (object not created locally) 80
Potential violation of Law of Demeter (method chain calls) 82
Potential violation of Law of Demeter (object not created locally) 83
Potential violation of Law of Demeter (method chain calls) 85
Potential violation of Law of Demeter (object not created locally) 86
Potential violation of Law of Demeter (method chain calls) 93
Potential violation of Law of Demeter (method chain calls) 94
Potential violation of Law of Demeter (method chain calls) 95
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (method chain calls) 103
Potential violation of Law of Demeter (method chain calls) 104
Potential violation of Law of Demeter (object not created locally) 114
Potential violation of Law of Demeter (object not created locally) 115
Potential violation of Law of Demeter (method chain calls) 123
Potential violation of Law of Demeter (method chain calls) 123
Potential violation of Law of Demeter (method chain calls) 123
Potential violation of Law of Demeter (method chain calls) 123
Potential violation of Law of Demeter (method chain calls) 123
Potential violation of Law of Demeter (method chain calls) 123
Potential violation of Law of Demeter (method chain calls) 125
Potential violation of Law of Demeter (object not created locally) 125
Potential violation of Law of Demeter (object not created locally) 128
Potential violation of Law of Demeter (method chain calls) 129
Potential violation of Law of Demeter (method chain calls) 129
Potential violation of Law of Demeter (object not created locally) 129
Potential violation of Law of Demeter (object not created locally) 133
Potential violation of Law of Demeter (method chain calls) 133
Potential violation of Law of Demeter (method chain calls) 135
Potential violation of Law of Demeter (method chain calls) 135

Tobago Core - org/apache/myfaces/tobago/facelets/TobagoValidateHandler.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 36
Potential violation of Law of Demeter (object not created locally) 37

Tobago Core - org/apache/myfaces/tobago/facelets/WizardComponentHandler.java

Violation Line
Private field 'outcomeAttribute' could be made final; it is only initialized in the declaration or constructor. 30
Potential violation of Law of Demeter (method chain calls) 42

Tobago Core - org/apache/myfaces/tobago/facelets/extension/DateExtensionHandler.java

Violation Line
Private field 'pickerIdAttribute' could be made final; it is only initialized in the declaration or constructor. 41
Private field 'formIdAttribute' could be made final; it is only initialized in the declaration or constructor. 42
Private field 'markupAttribute' could be made final; it is only initialized in the declaration or constructor. 43
The method onComponentPopulated() has an NPath complexity of 302 60 - 99
Potential violation of Law of Demeter (method chain calls) 64
Potential violation of Law of Demeter (method chain calls) 69
Potential violation of Law of Demeter (object not created locally) 70
Potential violation of Law of Demeter (object not created locally) 71
Avoid if (x != y) ..; else ..; 72 - 74
Potential violation of Law of Demeter (object not created locally) 75
Potential violation of Law of Demeter (method chain calls) 76
Potential violation of Law of Demeter (object not created locally) 78
Potential violation of Law of Demeter (object not created locally) 79
Potential violation of Law of Demeter (object not created locally) 80
Avoid if (x != y) ..; else ..; 81 - 83
Potential violation of Law of Demeter (object not created locally) 84
Potential violation of Law of Demeter (method chain calls) 85
Potential violation of Law of Demeter (object not created locally) 85
Potential violation of Law of Demeter (object not created locally) 86
Potential violation of Law of Demeter (method chain calls) 86
Potential violation of Law of Demeter (object not created locally) 87
Potential violation of Law of Demeter (object not created locally) 91
Potential violation of Law of Demeter (object not created locally) 94
Potential violation of Law of Demeter (object not created locally) 97
Potential violation of Law of Demeter (method chain calls) 97
Potential violation of Law of Demeter (method chain calls) 103

Tobago Core - org/apache/myfaces/tobago/facelets/extension/SelectBooleanCheckboxExtensionHandler.java

Violation Line
Private field 'itemLabelAttribute' could be made final; it is only initialized in the declaration or constructor. 34
Avoid if (x != y) ..; else ..; 44 - 53
Potential violation of Law of Demeter (object not created locally) 46
Potential violation of Law of Demeter (object not created locally) 49
Potential violation of Law of Demeter (object not created locally) 52

Tobago Core - org/apache/myfaces/tobago/facelets/extension/SeparatorExtensionHandler.java

Violation Line
Private field 'labelAttribute' could be made final; it is only initialized in the declaration or constructor. 40
Potential violation of Law of Demeter (method chain calls) 50
Potential violation of Law of Demeter (method chain calls) 52
Potential violation of Law of Demeter (method chain calls) 60
Potential violation of Law of Demeter (object not created locally) 61
Potential violation of Law of Demeter (object not created locally) 62
Potential violation of Law of Demeter (object not created locally) 63
Potential violation of Law of Demeter (method chain calls) 65
Potential violation of Law of Demeter (object not created locally) 68
Potential violation of Law of Demeter (object not created locally) 71
Potential violation of Law of Demeter (method chain calls) 78
Potential violation of Law of Demeter (object not created locally) 79
Potential violation of Law of Demeter (method chain calls) 82
Potential violation of Law of Demeter (object not created locally) 85
Potential violation of Law of Demeter (object not created locally) 85

Tobago Core - org/apache/myfaces/tobago/facelets/extension/TobagoLabelExtensionHandler.java

Violation Line
The class 'TobagoLabelExtensionHandler' has a Cyclomatic Complexity of 3 (Highest = 10). 53 - 277
Private field 'labelWidthAttribute' could be made final; it is only initialized in the declaration or constructor. 59
Private field 'tipAttribute' could be made final; it is only initialized in the declaration or constructor. 60
Private field 'labelAttribute' could be made final; it is only initialized in the declaration or constructor. 61
Private field 'accessKeyAttribute' could be made final; it is only initialized in the declaration or constructor. 62
Private field 'markupAttribute' could be made final; it is only initialized in the declaration or constructor. 63
Private field 'fieldIdAttribute' could be made final; it is only initialized in the declaration or constructor. 64
Potential violation of Law of Demeter (method chain calls) 94
Potential violation of Law of Demeter (object not created locally) 96
Potential violation of Law of Demeter (method chain calls) 96
Potential violation of Law of Demeter (object not created locally) 99
Potential violation of Law of Demeter (method chain calls) 99
Potential violation of Law of Demeter (method chain calls) 103
Potential violation of Law of Demeter (method chain calls) 105
Potential violation of Law of Demeter (method chain calls) 107
Potential violation of Law of Demeter (method chain calls) 110
Potential violation of Law of Demeter (method chain calls) 118
Avoid if (x != y) ..; else ..; 124 - 128
Potential violation of Law of Demeter (object not created locally) 133
Potential violation of Law of Demeter (object not created locally) 134
Potential violation of Law of Demeter (object not created locally) 135
Potential violation of Law of Demeter (method chain calls) 140
Document empty method 143 - 144
An empty method in an abstract class should be abstract instead 143 - 144
The method 'addLabel' has a Cyclomatic Complexity of 10. 146 - 188
Potential violation of Law of Demeter (object not created locally) 152
Potential violation of Law of Demeter (object not created locally) 153
Potential violation of Law of Demeter (method chain calls) 154
Potential violation of Law of Demeter (object not created locally) 154
Potential violation of Law of Demeter (object not created locally) 165
Potential violation of Law of Demeter (object not created locally) 168
Potential violation of Law of Demeter (object not created locally) 173
Potential violation of Law of Demeter (method chain calls) 173
Potential violation of Law of Demeter (method chain calls) 173
Potential violation of Law of Demeter (object not created locally) 176
Potential violation of Law of Demeter (object not created locally) 181
Potential violation of Law of Demeter (object not created locally) 184
Potential violation of Law of Demeter (method chain calls) 187
Potential violation of Law of Demeter (method chain calls) 205
Potential violation of Law of Demeter (method chain calls) 206
Potential violation of Law of Demeter (method chain calls) 211
Potential violation of Law of Demeter (object not created locally) 219
Avoid if (x != y) ..; else ..; 220 - 229
Potential violation of Law of Demeter (object not created locally) 226
Potential violation of Law of Demeter (object not created locally) 228
Potential violation of Law of Demeter (object not created locally) 230
Potential violation of Law of Demeter (object not created locally) 231
Potential violation of Law of Demeter (method chain calls) 233
Potential violation of Law of Demeter (method chain calls) 235
Potential violation of Law of Demeter (method chain calls) 237
Potential violation of Law of Demeter (method chain calls) 246
Potential violation of Law of Demeter (object not created locally) 255
Potential violation of Law of Demeter (object not created locally) 256
Potential violation of Law of Demeter (method chain calls) 257
Potential violation of Law of Demeter (object not created locally) 258
Potential violation of Law of Demeter (method chain calls) 260
Potential violation of Law of Demeter (object not created locally) 261
Potential violation of Law of Demeter (method chain calls) 268
Potential violation of Law of Demeter (method chain calls) 271
Potential violation of Law of Demeter (object not created locally) 271
Potential violation of Law of Demeter (object not created locally) 272
Potential violation of Law of Demeter (object not created locally) 272

Tobago Core - org/apache/myfaces/tobago/facelets/extension/TobagoMenuExtensionHandler.java

Violation Line
Private field 'fieldIdAttribute' could be made final; it is only initialized in the declaration or constructor. 42
Potential violation of Law of Demeter (method chain calls) 57
Potential violation of Law of Demeter (method chain calls) 59
Potential violation of Law of Demeter (method chain calls) 68
Potential violation of Law of Demeter (object not created locally) 69
Avoid if (x != y) ..; else ..; 70 - 72
Potential violation of Law of Demeter (object not created locally) 73
Potential violation of Law of Demeter (object not created locally) 74
Potential violation of Law of Demeter (method chain calls) 76
Potential violation of Law of Demeter (method chain calls) 84
Potential violation of Law of Demeter (method chain calls) 92
Potential violation of Law of Demeter (object not created locally) 95 - 96
Potential violation of Law of Demeter (method chain calls) 95
Potential violation of Law of Demeter (method chain calls) 95 - 96
Potential violation of Law of Demeter (object not created locally) 95
Potential violation of Law of Demeter (method chain calls) 95 - 96
Potential violation of Law of Demeter (method chain calls) 96
Potential violation of Law of Demeter (object not created locally) 96
Potential violation of Law of Demeter (object not created locally) 97
Potential violation of Law of Demeter (object not created locally) 97
Potential violation of Law of Demeter (object not created locally) 105
Potential violation of Law of Demeter (object not created locally) 106

Tobago Core - org/apache/myfaces/tobago/internal/ajax/AjaxInternalUtils.java

Violation Line
This class has too many methods, consider refactoring it. 45 - 268
Potential violation of Law of Demeter (method chain calls) 69
No need to check for null before an instanceof 83
Potential violation of Law of Demeter (method chain calls) 84
Potential violation of Law of Demeter (method chain calls) 90
Potential violation of Law of Demeter (method chain calls) 90
Potential violation of Law of Demeter (object not created locally) 92
Potential violation of Law of Demeter (method chain calls) 92
Potential violation of Law of Demeter (object not created locally) 93
Potential violation of Law of Demeter (method chain calls) 109
Potential violation of Law of Demeter (method chain calls) 113
Potential violation of Law of Demeter (method chain calls) 114
Potential violation of Law of Demeter (method chain calls) 114
Potential violation of Law of Demeter (object not created locally) 115
Potential violation of Law of Demeter (object not created locally) 116
Potential violation of Law of Demeter (method chain calls) 130
Potential violation of Law of Demeter (object not created locally) 131
Potential violation of Law of Demeter (method chain calls) 139
Potential violation of Law of Demeter (method chain calls) 139
Potential violation of Law of Demeter (object not created locally) 143
Potential violation of Law of Demeter (method chain calls) 159
Potential violation of Law of Demeter (method chain calls) 159
Potential violation of Law of Demeter (method chain calls) 164
Potential violation of Law of Demeter (method chain calls) 164
These nested if statements could be combined 166 - 168
Potential violation of Law of Demeter (object not created locally) 167
Use equals() to compare object references. 184
Potential violation of Law of Demeter (object not created locally) 188
Potential violation of Law of Demeter (object not created locally) 196
Potential violation of Law of Demeter (method chain calls) 208
Potential violation of Law of Demeter (method chain calls) 208
These nested if statements could be combined 218 - 220
Potential violation of Law of Demeter (method chain calls) 228
Potential violation of Law of Demeter (method chain calls) 228
Parameter 'facesContext' is not assigned and could be declared final 251
Potential violation of Law of Demeter (object not created locally) 253
Potential violation of Law of Demeter (object not created locally) 253
Potential violation of Law of Demeter (object not created locally) 254
Potential violation of Law of Demeter (object not created locally) 258
Potential violation of Law of Demeter (object not created locally) 259
Potential violation of Law of Demeter (object not created locally) 260
Potential violation of Law of Demeter (object not created locally) 261
Potential violation of Law of Demeter (object not created locally) 262
Potential violation of Law of Demeter (method chain calls) 263
Potential violation of Law of Demeter (object not created locally) 263
Potential violation of Law of Demeter (method chain calls) 263
Potential violation of Law of Demeter (object not created locally) 264
Potential violation of Law of Demeter (object not created locally) 265

Tobago Core - org/apache/myfaces/tobago/internal/ajax/AjaxNavigationListener.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 37
Potential violation of Law of Demeter (object not created locally) 50
Parameter 'facesContext' is not assigned and could be declared final 56
Potential violation of Law of Demeter (method chain calls) 60
Potential violation of Law of Demeter (method chain calls) 60

Tobago Core - org/apache/myfaces/tobago/internal/ajax/AjaxNavigationState.java

Violation Line
Private field 'viewRoot' could be made final; it is only initialized in the declaration or constructor. 48
Private field 'messages' could be made final; it is only initialized in the declaration or constructor. 50
Avoid if (x != y) ..; else ..; 109 - 113
Potential violation of Law of Demeter (object not created locally) 110
Potential violation of Law of Demeter (method chain calls) 115
Potential violation of Law of Demeter (method chain calls) 115
Avoid if (x != y) ..; else ..; 121 - 128
Potential violation of Law of Demeter (object not created locally) 123
Potential violation of Law of Demeter (method chain calls) 130
Potential violation of Law of Demeter (object not created locally) 131
Use equals() to compare object references. 132
Potential violation of Law of Demeter (object not created locally) 135
Potential violation of Law of Demeter (object not created locally) 135
Potential violation of Law of Demeter (method chain calls) 143
Potential violation of Law of Demeter (method chain calls) 143
Potential violation of Law of Demeter (method chain calls) 154
Potential violation of Law of Demeter (object not created locally) 159
Potential violation of Law of Demeter (object not created locally) 160
Potential violation of Law of Demeter (object not created locally) 160
Potential violation of Law of Demeter (object not created locally) 170
Potential violation of Law of Demeter (method chain calls) 170
Potential violation of Law of Demeter (object not created locally) 174
Potential violation of Law of Demeter (method chain calls) 174
Potential violation of Law of Demeter (object not created locally) 175
Parameter 'facesContext' is not assigned and could be declared final 180
Potential violation of Law of Demeter (method chain calls) 182
Potential violation of Law of Demeter (method chain calls) 182
Potential violation of Law of Demeter (method chain calls) 184
Local variable 'throwable' could be declared final 184
Potential violation of Law of Demeter (method chain calls) 184
Parameter 'facesContext' is not assigned and could be declared final 192

Tobago Core - org/apache/myfaces/tobago/internal/ajax/AjaxResponseRenderer.java

Violation Line
Private field 'callback' could be made final; it is only initialized in the declaration or constructor. 62
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (object not created locally) 86
Potential violation of Law of Demeter (object not created locally) 87
Potential violation of Law of Demeter (object not created locally) 88
Potential violation of Law of Demeter (object not created locally) 90
Potential violation of Law of Demeter (method chain calls) 91
Potential violation of Law of Demeter (object not created locally) 92
Potential violation of Law of Demeter (object not created locally) 94
Potential violation of Law of Demeter (object not created locally) 95
Potential violation of Law of Demeter (object not created locally) 97
Potential violation of Law of Demeter (object not created locally) 99
Potential violation of Law of Demeter (object not created locally) 100
Potential violation of Law of Demeter (object not created locally) 101
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (object not created locally) 105
Potential violation of Law of Demeter (method chain calls) 113
Potential violation of Law of Demeter (object not created locally) 114
Potential violation of Law of Demeter (object not created locally) 115
Avoid reassigning parameters such as 'charset' 119
Potential violation of Law of Demeter (object not created locally) 124
Potential violation of Law of Demeter (object not created locally) 125
Potential violation of Law of Demeter (object not created locally) 126
Potential violation of Law of Demeter (method chain calls) 127
Avoid if (x != y) ..; else ..; 139 - 143
Potential violation of Law of Demeter (object not created locally) 140
Potential violation of Law of Demeter (method chain calls) 140
Potential violation of Law of Demeter (object not created locally) 147
Potential violation of Law of Demeter (object not created locally) 148
Potential violation of Law of Demeter (object not created locally) 149
Potential violation of Law of Demeter (object not created locally) 154
Potential violation of Law of Demeter (object not created locally) 155
Potential violation of Law of Demeter (object not created locally) 156
Potential violation of Law of Demeter (object not created locally) 157
Potential violation of Law of Demeter (object not created locally) 158
Potential violation of Law of Demeter (object not created locally) 166
Potential violation of Law of Demeter (object not created locally) 167
Potential violation of Law of Demeter (object not created locally) 169
Potential violation of Law of Demeter (object not created locally) 171
Potential violation of Law of Demeter (object not created locally) 172
Potential violation of Law of Demeter (object not created locally) 173
Potential violation of Law of Demeter (method chain calls) 177
Potential violation of Law of Demeter (method chain calls) 179
Potential violation of Law of Demeter (method chain calls) 181
Potential violation of Law of Demeter (object not created locally) 193

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIButton.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 22 - 24

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIColumn.java

Violation Line
An empty method in an abstract class should be abstract instead 31 - 33

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIColumnNode.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 27 - 28

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIColumnSelector.java

Violation Line
An empty method in an abstract class should be abstract instead 27 - 29

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUICommand.java

Violation Line
These nested if statements could be combined 42 - 44
Potential violation of Law of Demeter (object not created locally) 69

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUICommandBase.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 26 - 28

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIData.java

Violation Line
The String literal "Not a tree model" appears 4 times in this file; the first occurrence is on line 72 72
Avoid if (x != y) ..; else ..; 81 - 85
Avoid if (x != y) ..; else ..; 103
Avoid if (x != y) ..; else ..; 146 - 150
Avoid if (x != y) ..; else ..; 155
Avoid if (x != y) ..; else ..; 160
An empty method in an abstract class should be abstract instead 165 - 167
An empty method in an abstract class should be abstract instead 182 - 184
Potential violation of Law of Demeter (object not created locally) 195
Potential violation of Law of Demeter (object not created locally) 199
Potential violation of Law of Demeter (object not created locally) 200
String.indexOf(char) is faster than String.indexOf(String). 201
Potential violation of Law of Demeter (object not created locally) 201
Potential violation of Law of Demeter (object not created locally) 203
Potential violation of Law of Demeter (method chain calls) 231
Potential violation of Law of Demeter (method chain calls) 243

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIDate.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 22 - 23

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIDatePicker.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 52
Potential violation of Law of Demeter (method chain calls) 57
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (object not created locally) 59
Potential violation of Law of Demeter (object not created locally) 60
Potential violation of Law of Demeter (method chain calls) 61
Potential violation of Law of Demeter (object not created locally) 61
Potential violation of Law of Demeter (object not created locally) 62
Potential violation of Law of Demeter (object not created locally) 64
Potential violation of Law of Demeter (method chain calls) 64
Potential violation of Law of Demeter (method chain calls) 71
Potential violation of Law of Demeter (method chain calls) 77
An empty method in an abstract class should be abstract instead 81 - 83
An empty method in an abstract class should be abstract instead 85 - 87
An empty method in an abstract class should be abstract instead 89 - 91
An empty method in an abstract class should be abstract instead 93 - 95
An empty method in an abstract class should be abstract instead 97 - 99

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIFile.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 37
Potential violation of Law of Demeter (object not created locally) 37

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIFlowLayout.java

Violation Line
Document empty method 30 - 31
An empty method in an abstract class should be abstract instead 30 - 31
Document empty method 33 - 34
An empty method in an abstract class should be abstract instead 33 - 34
Document empty method 36 - 37
An empty method in an abstract class should be abstract instead 36 - 37
Document empty method 39 - 41
An empty method in an abstract class should be abstract instead 39 - 41
Document empty method 43 - 44
An empty method in an abstract class should be abstract instead 43 - 44

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIForm.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 54
Avoid if (x != y) ..; else ..; 74 - 85
Potential violation of Law of Demeter (object not created locally) 83
Avoid if (x != y) ..; else ..; 94 - 105
Potential violation of Law of Demeter (object not created locally) 103
Potential violation of Law of Demeter (method chain calls) 113
These nested if statements could be combined 113 - 115
Potential violation of Law of Demeter (static property access) 113
Potential violation of Law of Demeter (method chain calls) 113
Potential violation of Law of Demeter (method chain calls) 117
Potential violation of Law of Demeter (method chain calls) 117

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIGridLayout.java

Violation Line
The class 'AbstractUIGridLayout' has a Cyclomatic Complexity of 5 (Highest = 27). 50 - 509
Possible God class (WMC=121, ATFD=94, TCC=0.003076923076923077) 50 - 509
Potential violation of Law of Demeter (method chain calls) 63
Potential violation of Law of Demeter (method chain calls) 69
Avoid instantiating new objects inside loops 73
Potential violation of Law of Demeter (method chain calls) 78
Potential violation of Law of Demeter (method chain calls) 78
The method fixRelativeInsideAuto() has an NPath complexity of 400 86 - 132
The method 'fixRelativeInsideAuto' has a Cyclomatic Complexity of 15. 86 - 132
Potential violation of Law of Demeter (method chain calls) 88
Potential violation of Law of Demeter (method chain calls) 97
Potential violation of Law of Demeter (method chain calls) 97
Deeply nested if..then statements are hard to read 98 - 101
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (object not created locally) 112
Potential violation of Law of Demeter (method chain calls) 112
Potential violation of Law of Demeter (object not created locally) 118
Potential violation of Law of Demeter (object not created locally) 119
Potential violation of Law of Demeter (method chain calls) 120
Potential violation of Law of Demeter (method chain calls) 123
Potential violation of Law of Demeter (object not created locally) 123
Potential violation of Law of Demeter (method chain calls) 123
Potential violation of Law of Demeter (object not created locally) 124
Potential violation of Law of Demeter (method chain calls) 129
Potential violation of Law of Demeter (method chain calls) 129
The method preProcessing() has an NPath complexity of 57620 134 - 247
Avoid really long methods. 134 - 247
The method 'preProcessing' has a Cyclomatic Complexity of 27. 134 - 247
Potential violation of Law of Demeter (method chain calls) 136
Potential violation of Law of Demeter (object not created locally) 147
Potential violation of Law of Demeter (object not created locally) 150
Potential violation of Law of Demeter (method chain calls) 151
Potential violation of Law of Demeter (method chain calls) 151
Potential violation of Law of Demeter (method chain calls) 151
Potential violation of Law of Demeter (method chain calls) 151
Potential violation of Law of Demeter (method chain calls) 153
Potential violation of Law of Demeter (method chain calls) 153
Avoid instantiating new objects inside loops 157
Potential violation of Law of Demeter (object not created locally) 162
Potential violation of Law of Demeter (object not created locally) 164
Potential violation of Law of Demeter (object not created locally) 164
Potential violation of Law of Demeter (method chain calls) 165
Potential violation of Law of Demeter (method chain calls) 165
These nested if statements could be combined 169 - 177
Useless parentheses. 169
Potential violation of Law of Demeter (object not created locally) 169
Potential violation of Law of Demeter (object not created locally) 169
Potential violation of Law of Demeter (object not created locally) 170
Avoid instantiating new objects inside loops 171
Deeply nested if..then statements are hard to read 173 - 175
Potential violation of Law of Demeter (object not created locally) 182
Potential violation of Law of Demeter (method chain calls) 184
Potential violation of Law of Demeter (method chain calls) 184
Potential violation of Law of Demeter (method chain calls) 187
Potential violation of Law of Demeter (method chain calls) 187
Potential violation of Law of Demeter (object not created locally) 188
Potential violation of Law of Demeter (method chain calls) 189
Potential violation of Law of Demeter (object not created locally) 189
Potential violation of Law of Demeter (method chain calls) 189
Potential violation of Law of Demeter (method chain calls) 191
Potential violation of Law of Demeter (method chain calls) 191
Potential violation of Law of Demeter (method chain calls) 198
Potential violation of Law of Demeter (method chain calls) 198
Potential violation of Law of Demeter (object not created locally) 222
Avoid empty if statements 223 - 226
Potential violation of Law of Demeter (object not created locally) 227
Potential violation of Law of Demeter (object not created locally) 234
Potential violation of Law of Demeter (object not created locally) 238
Potential violation of Law of Demeter (object not created locally) 239
Potential violation of Law of Demeter (object not created locally) 240
Potential violation of Law of Demeter (object not created locally) 241
Potential violation of Law of Demeter (object not created locally) 242
Potential violation of Law of Demeter (object not created locally) 243
Potential violation of Law of Demeter (object not created locally) 244
The method mainProcessing() has an NPath complexity of 30400 249 - 346
The method 'mainProcessing' has a Cyclomatic Complexity of 23. 249 - 346
Potential violation of Law of Demeter (method chain calls) 251
Potential violation of Law of Demeter (object not created locally) 261
Potential violation of Law of Demeter (object not created locally) 261
Potential violation of Law of Demeter (object not created locally) 262
Potential violation of Law of Demeter (object not created locally) 262
Potential violation of Law of Demeter (method chain calls) 262
Potential violation of Law of Demeter (object not created locally) 262
Potential violation of Law of Demeter (method chain calls) 262
Potential violation of Law of Demeter (object not created locally) 265
Avoid if (x != y) ..; else ..; 269 - 303
Potential violation of Law of Demeter (object not created locally) 271
Potential violation of Law of Demeter (object not created locally) 271
Potential violation of Law of Demeter (object not created locally) 273
Potential violation of Law of Demeter (object not created locally) 274
Potential violation of Law of Demeter (object not created locally) 275
Potential violation of Law of Demeter (object not created locally) 276
Potential violation of Law of Demeter (object not created locally) 277
Potential violation of Law of Demeter (object not created locally) 278
Potential violation of Law of Demeter (object not created locally) 279
Potential violation of Law of Demeter (object not created locally) 284
Potential violation of Law of Demeter (object not created locally) 284
Potential violation of Law of Demeter (object not created locally) 285
Potential violation of Law of Demeter (object not created locally) 288
Potential violation of Law of Demeter (object not created locally) 294
Potential violation of Law of Demeter (object not created locally) 294
Potential violation of Law of Demeter (object not created locally) 296
Potential violation of Law of Demeter (method chain calls) 296
Potential violation of Law of Demeter (method chain calls) 296
Potential violation of Law of Demeter (method chain calls) 296
Potential violation of Law of Demeter (method chain calls) 296
Potential violation of Law of Demeter (method chain calls) 296
Potential violation of Law of Demeter (method chain calls) 296
Potential violation of Law of Demeter (method chain calls) 296
Potential violation of Law of Demeter (method chain calls) 296
Potential violation of Law of Demeter (method chain calls) 296
Potential violation of Law of Demeter (method chain calls) 296
Potential violation of Law of Demeter (method chain calls) 296
Potential violation of Law of Demeter (object not created locally) 311
Potential violation of Law of Demeter (method chain calls) 313
Potential violation of Law of Demeter (object not created locally) 318
Potential violation of Law of Demeter (method chain calls) 318
Potential violation of Law of Demeter (method chain calls) 318
Potential violation of Law of Demeter (method chain calls) 318
Potential violation of Law of Demeter (method chain calls) 318
Potential violation of Law of Demeter (object not created locally) 320
Potential violation of Law of Demeter (object not created locally) 327
Potential violation of Law of Demeter (object not created locally) 327
Potential violation of Law of Demeter (method chain calls) 328
Potential violation of Law of Demeter (method chain calls) 328
Potential violation of Law of Demeter (object not created locally) 335
Potential violation of Law of Demeter (object not created locally) 336
Potential violation of Law of Demeter (object not created locally) 337
Potential violation of Law of Demeter (object not created locally) 339
Potential violation of Law of Demeter (object not created locally) 339
Potential violation of Law of Demeter (object not created locally) 341
Potential violation of Law of Demeter (object not created locally) 342
Potential violation of Law of Demeter (object not created locally) 343
The method 'postProcessing' has a Cyclomatic Complexity of 15. 348 - 400
Potential violation of Law of Demeter (method chain calls) 350
Potential violation of Law of Demeter (object not created locally) 362
Potential violation of Law of Demeter (object not created locally) 366
Potential violation of Law of Demeter (object not created locally) 367
Potential violation of Law of Demeter (method chain calls) 370
Potential violation of Law of Demeter (method chain calls) 370
Potential violation of Law of Demeter (method chain calls) 371
Potential violation of Law of Demeter (method chain calls) 371
Potential violation of Law of Demeter (method chain calls) 372
Potential violation of Law of Demeter (method chain calls) 372
Potential violation of Law of Demeter (method chain calls) 372
Potential violation of Law of Demeter (method chain calls) 373
Potential violation of Law of Demeter (method chain calls) 373
Potential violation of Law of Demeter (method chain calls) 373
Potential violation of Law of Demeter (method chain calls) 373
Potential violation of Law of Demeter (object not created locally) 373
Potential violation of Law of Demeter (object not created locally) 374
Potential violation of Law of Demeter (object not created locally) 378
Potential violation of Law of Demeter (object not created locally) 380
Potential violation of Law of Demeter (object not created locally) 384
Potential violation of Law of Demeter (object not created locally) 384
Potential violation of Law of Demeter (method chain calls) 385
Potential violation of Law of Demeter (method chain calls) 385
Potential violation of Law of Demeter (method chain calls) 391
Potential violation of Law of Demeter (method chain calls) 393
Potential violation of Law of Demeter (method chain calls) 428
Potential violation of Law of Demeter (method chain calls) 428
Potential violation of Law of Demeter (method chain calls) 428
Useless parentheses. 428
Potential violation of Law of Demeter (method chain calls) 428
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (method chain calls) 434
An empty method in an abstract class should be abstract instead 470 - 472
Potential violation of Law of Demeter (method chain calls) 476
Potential violation of Law of Demeter (method chain calls) 476
Potential violation of Law of Demeter (object not created locally) 476
Avoid appending characters as strings in StringBuffer.append. 476
Potential violation of Law of Demeter (method chain calls) 476
Potential violation of Law of Demeter (object not created locally) 477
Potential violation of Law of Demeter (object not created locally) 478
Avoid appending characters as strings in StringBuffer.append. 478
Potential violation of Law of Demeter (object not created locally) 480
Potential violation of Law of Demeter (object not created locally) 481
Potential violation of Law of Demeter (object not created locally) 485
Potential violation of Law of Demeter (method chain calls) 487
Potential violation of Law of Demeter (object not created locally) 487
Potential violation of Law of Demeter (object not created locally) 488
Avoid appending characters as strings in StringBuffer.append. 488
Potential violation of Law of Demeter (object not created locally) 490
Potential violation of Law of Demeter (object not created locally) 491
Potential violation of Law of Demeter (object not created locally) 495
Potential violation of Law of Demeter (object not created locally) 497
Potential violation of Law of Demeter (method chain calls) 497
Avoid appending characters as strings in StringBuffer.append. 498
Potential violation of Law of Demeter (object not created locally) 498
Potential violation of Law of Demeter (object not created locally) 501
Potential violation of Law of Demeter (object not created locally) 501
Potential violation of Law of Demeter (object not created locally) 502

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIIn.java

Violation Line
These nested if statements could be combined 35 - 42
Potential violation of Law of Demeter (method chain calls) 38
Potential violation of Law of Demeter (object not created locally) 39
Potential violation of Law of Demeter (object not created locally) 40
Potential violation of Law of Demeter (object not created locally) 41

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUILabel.java

Violation Line
Avoid if (x != y) ..; else ..; 32 - 38
Potential violation of Law of Demeter (object not created locally) 33
Avoid if (x != y) ..; else ..; 34 - 38

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUILayoutBase.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 24 - 25

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIMediator.java

Violation Line
Avoid unused private fields such as 'LOG'. 34
Potential violation of Law of Demeter (method chain calls) 42
Potential violation of Law of Demeter (method chain calls) 42
Potential violation of Law of Demeter (method chain calls) 49
Potential violation of Law of Demeter (method chain calls) 49
Potential violation of Law of Demeter (method chain calls) 56
Potential violation of Law of Demeter (method chain calls) 56
Potential violation of Law of Demeter (object not created locally) 57
Potential violation of Law of Demeter (object not created locally) 61

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIMenuBar.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 36

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIMessages.java

Violation Line
Avoid if (x != y) ..; else ..; 41 - 45
Potential violation of Law of Demeter (static property access) 50
Avoid declaring a variable if it is unreferenced before a possible exit point. 63
Potential violation of Law of Demeter (method chain calls) 67
Potential violation of Law of Demeter (object not created locally) 67
Potential violation of Law of Demeter (method chain calls) 67
Potential violation of Law of Demeter (method chain calls) 70
Potential violation of Law of Demeter (method chain calls) 70
Potential violation of Law of Demeter (object not created locally) 70
Avoid instantiating new objects inside loops 73
Potential violation of Law of Demeter (method chain calls) 108
Potential violation of Law of Demeter (method chain calls) 108
Potential violation of Law of Demeter (method chain calls) 108
Potential violation of Law of Demeter (method chain calls) 108
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 133

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIOut.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 26 - 27

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIPage.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 20 - 400
Possible God class (WMC=69, ATFD=34, TCC=0.014245014245014245) 67 - 400
The class 'AbstractUIPage' has a Cyclomatic Complexity of 3 (Highest = 10). 67 - 400
This class has too many methods, consider refactoring it. 68 - 400
An empty method in an abstract class should be abstract instead 87 - 89
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (method chain calls) 111
Potential violation of Law of Demeter (method chain calls) 118
Potential violation of Law of Demeter (method chain calls) 122
Potential violation of Law of Demeter (method chain calls) 122
Potential violation of Law of Demeter (object not created locally) 137
Avoid if (x != y) ..; else ..; 147 - 165
Potential violation of Law of Demeter (object not created locally) 150
Potential violation of Law of Demeter (object not created locally) 151
Potential violation of Law of Demeter (object not created locally) 159
The method 'decodeActionComponent' has a Cyclomatic Complexity of 10. 168 - 198
Potential violation of Law of Demeter (object not created locally) 176
Avoid empty catch blocks 180 - 182
Use equals() to compare object references. 191
Potential violation of Law of Demeter (object not created locally) 194
Avoid if (x != y) ..; else ..; 208 - 215
Potential violation of Law of Demeter (object not created locally) 209
Avoid if (x != y) ..; else ..; 224 - 230
Potential violation of Law of Demeter (object not created locally) 225
The method 'markSubmittedForm' has a Cyclomatic Complexity of 10. 233 - 284
Potential violation of Law of Demeter (object not created locally) 246
Potential violation of Law of Demeter (object not created locally) 250
Potential violation of Law of Demeter (object not created locally) 255
Potential violation of Law of Demeter (object not created locally) 257
Avoid empty catch blocks 259 - 261
Avoid if (x != y) ..; else ..; 270 - 283
Potential violation of Law of Demeter (object not created locally) 272
Potential violation of Law of Demeter (object not created locally) 276
Potential violation of Law of Demeter (method chain calls) 288
Potential violation of Law of Demeter (method chain calls) 288
Potential violation of Law of Demeter (object not created locally) 289
Potential violation of Law of Demeter (method chain calls) 290
Potential violation of Law of Demeter (method chain calls) 295
Document empty method 314 - 315
An empty method in an abstract class should be abstract instead 314 - 315
Avoid if (x != y) ..; else ..; 323 - 333
Potential violation of Law of Demeter (static property access) 356
Potential violation of Law of Demeter (static property access) 364
Potential violation of Law of Demeter (method chain calls) 390

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIPanel.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 45
Potential violation of Law of Demeter (method chain calls) 51
Potential violation of Law of Demeter (method chain calls) 57
An empty method in an abstract class should be abstract instead 61 - 62
Document empty method 61 - 62
Avoid if (x != y) ..; else ..; 73 - 77
Potential violation of Law of Demeter (method chain calls) 74
Potential violation of Law of Demeter (object not created locally) 74
Potential violation of Law of Demeter (object not created locally) 79
Avoid if (x != y) ..; else ..; 80 - 91
Potential violation of Law of Demeter (object not created locally) 88
Potential violation of Law of Demeter (method chain calls) 89
Potential violation of Law of Demeter (object not created locally) 89
Potential violation of Law of Demeter (method chain calls) 95

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIPanelBase.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 26 - 27

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIPopup.java

Violation Line
Avoid unused private fields such as 'LOG'. 54
Potential violation of Law of Demeter (method chain calls) 61
Potential violation of Law of Demeter (method chain calls) 61
Potential violation of Law of Demeter (method chain calls) 68
Potential violation of Law of Demeter (method chain calls) 68
Potential violation of Law of Demeter (object not created locally) 92
Avoid if (x != y) ..; else ..; 109 - 114
Potential violation of Law of Demeter (object not created locally) 111
Potential violation of Law of Demeter (object not created locally) 111
Potential violation of Law of Demeter (object not created locally) 120 - 121
Potential violation of Law of Demeter (method chain calls) 128 - 129
Potential violation of Law of Demeter (method chain calls) 128 - 129
No need to check for null before an instanceof 130
Potential violation of Law of Demeter (method chain calls) 131
Potential violation of Law of Demeter (object not created locally) 131
Potential violation of Law of Demeter (object not created locally) 148
Potential violation of Law of Demeter (object not created locally) 162
Potential violation of Law of Demeter (method chain calls) 193

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUISelectBooleanCheckbox.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 41
These nested if statements could be combined 47 - 54

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUISelectItem.java

Violation Line
Avoid empty if statements 49 - 51
Potential violation of Law of Demeter (method chain calls) 52 - 53
Potential violation of Law of Demeter (method chain calls) 53

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUISelectMany.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 34

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUISelectOneBase.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 38
Avoid if (x != y) ..; else ..; 39 - 46

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUISelectOneChoice.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 22 - 23

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUISelectOneListbox.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 22 - 23

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUISelectOneRadio.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 22 - 23

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUISeparator.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 26 - 27

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUISheet.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 20 - 673
This class has a bunch of public methods and attributes 20 - 673
Possible God class (WMC=138, ATFD=57, TCC=0.013062409288824383) 65 - 673
The class 'AbstractUISheet' has a Cyclomatic Complexity of 3 (Highest = 19). 65 - 673
This class has too many methods, consider refactoring it. 67 - 673
Potential violation of Law of Demeter (object not created locally) 106
Avoid if (x != y) ..; else ..; 109 - 113
Potential violation of Law of Demeter (object not created locally) 110
Potential violation of Law of Demeter (object not created locally) 165
Potential violation of Law of Demeter (method chain calls) 167
Useless parentheses. 209
Avoid if (x != y) ..; else ..; 276 - 280
Avoid if (x != y) ..; else ..; 286 - 294
Avoid if (x != y) ..; else ..; 320 - 328
Avoid if (x != y) ..; else ..; 327
Potential violation of Law of Demeter (object not created locally) 346
Avoid if (x != y) ..; else ..; 347
Potential violation of Law of Demeter (object not created locally) 347
Potential violation of Law of Demeter (method chain calls) 347
Potential violation of Law of Demeter (method chain calls) 347
Potential violation of Law of Demeter (object not created locally) 348
Potential violation of Law of Demeter (object not created locally) 348
Potential violation of Law of Demeter (object not created locally) 349
Potential violation of Law of Demeter (object not created locally) 349
Potential violation of Law of Demeter (object not created locally) 350
Potential violation of Law of Demeter (object not created locally) 351
Local variable 'result' could be declared final 372
Local variable 'result' could be declared final 378
Avoid empty if statements 388 - 390
Potential violation of Law of Demeter (object not created locally) 416
Potential violation of Law of Demeter (object not created locally) 419
Potential violation of Law of Demeter (object not created locally) 420
Potential violation of Law of Demeter (object not created locally) 421
Potential violation of Law of Demeter (method chain calls) 421
Potential violation of Law of Demeter (object not created locally) 421
Potential violation of Law of Demeter (method chain calls) 435
Potential violation of Law of Demeter (method chain calls) 440
Avoid if (x != y) ..; else ..; 446 - 453
Potential violation of Law of Demeter (method chain calls) 448
Potential violation of Law of Demeter (method chain calls) 449
Potential violation of Law of Demeter (method chain calls) 451
Potential violation of Law of Demeter (method chain calls) 480
Potential violation of Law of Demeter (method chain calls) 482
Avoid reassigning parameters such as 'searchId' 493
The method 'performPaging' has a Cyclomatic Complexity of 19. 509 - 571
Potential violation of Law of Demeter (method chain calls) 514
Potential violation of Law of Demeter (method chain calls) 514
Avoid if (x != y) ..; else ..; 563 - 567
Potential violation of Law of Demeter (method chain calls) 564
Potential violation of Law of Demeter (method chain calls) 564
Potential violation of Law of Demeter (object not created locally) 564
Potential violation of Law of Demeter (method chain calls) 569
The method 'getComponents' has a Cyclomatic Complexity of 11. 573 - 615
Avoid empty if statements 581 - 583
Potential violation of Law of Demeter (object not created locally) 587
Potential violation of Law of Demeter (object not created locally) 594
Potential violation of Law of Demeter (object not created locally) 595
Avoid if (x != y) ..; else ..; 599 - 611
Potential violation of Law of Demeter (method chain calls) 603 - 604
Potential violation of Law of Demeter (object not created locally) 604
Potential violation of Law of Demeter (method chain calls) 604
Potential violation of Law of Demeter (object not created locally) 605
Potential violation of Law of Demeter (object not created locally) 606
Potential violation of Law of Demeter (method chain calls) 606
Potential violation of Law of Demeter (object not created locally) 610
Potential violation of Law of Demeter (object not created locally) 610
Potential violation of Law of Demeter (method chain calls) 622
Potential violation of Law of Demeter (method chain calls) 635
An empty method in an abstract class should be abstract instead 642 - 644
Potential violation of Law of Demeter (method chain calls) 658
Potential violation of Law of Demeter (method chain calls) 663

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUISheetLayout.java

Violation Line
The class 'AbstractUISheetLayout' has a Cyclomatic Complexity of 6 (Highest = 19). 53 - 429
Possible God class (WMC=88, ATFD=93, TCC=0.01098901098901099) 53 - 429
Potential violation of Law of Demeter (method chain calls) 64
Potential violation of Law of Demeter (method chain calls) 66
Potential violation of Law of Demeter (method chain calls) 66
Potential violation of Law of Demeter (method chain calls) 79
Potential violation of Law of Demeter (method chain calls) 81
Potential violation of Law of Demeter (method chain calls) 81
Avoid unused local variables such as 'intervals'. 89
Potential violation of Law of Demeter (method chain calls) 90
These nested if statements could be combined 93 - 95
Potential violation of Law of Demeter (method chain calls) 94
Potential violation of Law of Demeter (method chain calls) 94
The method 'mainProcessing' has a Cyclomatic Complexity of 13. 117 - 168
Potential violation of Law of Demeter (object not created locally) 131
Potential violation of Law of Demeter (object not created locally) 134
Deeply nested if..then statements are hard to read 136 - 138
Potential violation of Law of Demeter (method chain calls) 144
Potential violation of Law of Demeter (object not created locally) 145
Potential violation of Law of Demeter (object not created locally) 151
Potential violation of Law of Demeter (object not created locally) 152
Potential violation of Law of Demeter (object not created locally) 153
Potential violation of Law of Demeter (object not created locally) 154
Potential violation of Law of Demeter (object not created locally) 155
Potential violation of Law of Demeter (object not created locally) 156
Potential violation of Law of Demeter (object not created locally) 157
Potential violation of Law of Demeter (object not created locally) 157
Deeply nested if..then statements are hard to read 160 - 162
Potential violation of Law of Demeter (method chain calls) 161
Potential violation of Law of Demeter (method chain calls) 161
Potential violation of Law of Demeter (object not created locally) 176
Potential violation of Law of Demeter (method chain calls) 189
Potential violation of Law of Demeter (method chain calls) 189
An empty method in an abstract class should be abstract instead 203 - 205
The method 'ensureColumnWidthList' has a Cyclomatic Complexity of 19. 207 - 301
The method ensureColumnWidthList() has an NPath complexity of 6192 207 - 301
Potential violation of Law of Demeter (object not created locally) 216
Potential violation of Law of Demeter (object not created locally) 219
Potential violation of Law of Demeter (object not created locally) 229
Potential violation of Law of Demeter (object not created locally) 229
Potential violation of Law of Demeter (object not created locally) 235
Potential violation of Law of Demeter (object not created locally) 235
Potential violation of Law of Demeter (object not created locally) 236
Potential violation of Law of Demeter (object not created locally) 236
Local variable 'verticalScrollbarWeight' could be declared final 237
Potential violation of Law of Demeter (object not created locally) 237
Local variable 'needVerticalScrollbar' could be declared final 238
Potential violation of Law of Demeter (object not created locally) 240
Potential violation of Law of Demeter (object not created locally) 247
Potential violation of Law of Demeter (object not created locally) 248
Potential violation of Law of Demeter (object not created locally) 249
Potential violation of Law of Demeter (object not created locally) 251
Potential violation of Law of Demeter (method chain calls) 252
Potential violation of Law of Demeter (method chain calls) 252
Potential violation of Law of Demeter (object not created locally) 252
Potential violation of Law of Demeter (method chain calls) 252
Potential violation of Law of Demeter (object not created locally) 252
Potential violation of Law of Demeter (object not created locally) 254
Potential violation of Law of Demeter (object not created locally) 257
Potential violation of Law of Demeter (object not created locally) 258
Potential violation of Law of Demeter (object not created locally) 258
Potential violation of Law of Demeter (object not created locally) 260
Potential violation of Law of Demeter (object not created locally) 271
Potential violation of Law of Demeter (object not created locally) 271
Potential violation of Law of Demeter (method chain calls) 273
Potential violation of Law of Demeter (object not created locally) 275
Potential violation of Law of Demeter (object not created locally) 275
Potential violation of Law of Demeter (object not created locally) 276
Potential violation of Law of Demeter (object not created locally) 278
Local variable 'width' could be declared final 279
Potential violation of Law of Demeter (object not created locally) 285
Potential violation of Law of Demeter (object not created locally) 285
Potential violation of Law of Demeter (object not created locally) 287
Potential violation of Law of Demeter (object not created locally) 287
Potential violation of Law of Demeter (object not created locally) 290
Potential violation of Law of Demeter (object not created locally) 294
Potential violation of Law of Demeter (object not created locally) 294
Avoid if (x != y) ..; else ..; 294 - 300
Potential violation of Law of Demeter (object not created locally) 295
Potential violation of Law of Demeter (object not created locally) 296
The method 'needVerticalScrollbar' has a Cyclomatic Complexity of 13. 303 - 348
The method needVerticalScrollbar() has an NPath complexity of 660 303 - 348
Potential violation of Law of Demeter (method chain calls) 313
Potential violation of Law of Demeter (method chain calls) 315
Potential violation of Law of Demeter (method chain calls) 317
Potential violation of Law of Demeter (method chain calls) 319
Avoid if (x != y) ..; else ..; 329 - 344
Potential violation of Law of Demeter (method chain calls) 334
Potential violation of Law of Demeter (object not created locally) 336
Potential violation of Law of Demeter (object not created locally) 339
Potential violation of Law of Demeter (object not created locally) 341
Potential violation of Law of Demeter (object not created locally) 353
Potential violation of Law of Demeter (object not created locally) 354
Avoid unused local variables such as 'component'. 363
Potential violation of Law of Demeter (object not created locally) 363
Potential violation of Law of Demeter (method chain calls) 385
Potential violation of Law of Demeter (method chain calls) 390
Potential violation of Law of Demeter (method chain calls) 395
Potential violation of Law of Demeter (object not created locally) 401
Potential violation of Law of Demeter (object not created locally) 407
Avoid unused local variables such as 'ignored'. 408
Potential violation of Law of Demeter (object not created locally) 415
Potential violation of Law of Demeter (object not created locally) 419
Avoid instantiating new objects inside loops 419
Potential violation of Law of Demeter (object not created locally) 419
Potential violation of Law of Demeter (object not created locally) 427

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUITabGroup.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 20 - 344
Possible God class (WMC=68, ATFD=23, TCC=0.0) 54 - 344
The class 'AbstractUITabGroup' has a Cyclomatic Complexity of 2 (Highest = 11). 54 - 344
This class has too many methods, consider refactoring it. 56 - 344
Potential violation of Law of Demeter (method chain calls) 71
An empty method in an abstract class should be abstract instead 75 - 78
Potential violation of Law of Demeter (method chain calls) 83
An empty method in an abstract class should be abstract instead 92 - 94
Potential violation of Law of Demeter (method chain calls) 110
Potential violation of Law of Demeter (method chain calls) 111
The method 'processDecodes' has a Cyclomatic Complexity of 11. 135 - 175
Avoid if (x != y) ..; else ..; 136 - 174
Potential violation of Law of Demeter (object not created locally) 148
Potential violation of Law of Demeter (object not created locally) 150
Potential violation of Law of Demeter (object not created locally) 152
Local variable 'facet' could be declared final 152
Potential violation of Law of Demeter (method chain calls) 163
Avoid if (x != y) ..; else ..; 179 - 193
Potential violation of Law of Demeter (object not created locally) 187
Potential violation of Law of Demeter (method chain calls) 188
Avoid if (x != y) ..; else ..; 198 - 213
Potential violation of Law of Demeter (object not created locally) 206
Potential violation of Law of Demeter (method chain calls) 207
Potential violation of Law of Demeter (method chain calls) 234
Potential violation of Law of Demeter (method chain calls) 234
Potential violation of Law of Demeter (object not created locally) 236
Potential violation of Law of Demeter (object not created locally) 239
Avoid if (x != y) ..; else ..; 241 - 245
Potential violation of Law of Demeter (method chain calls) 242
Potential violation of Law of Demeter (method chain calls) 242
Potential violation of Law of Demeter (object not created locally) 242
Potential violation of Law of Demeter (object not created locally) 258
Useless parentheses. 258
Potential violation of Law of Demeter (method chain calls) 337

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUITabGroupLayout.java

Violation Line
The class 'AbstractUITabGroupLayout' has a Cyclomatic Complexity of 5 (Highest = 10). 33 - 137
Potential violation of Law of Demeter (method chain calls) 41
Potential violation of Law of Demeter (method chain calls) 43
Potential violation of Law of Demeter (method chain calls) 43
Potential violation of Law of Demeter (method chain calls) 56
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (method chain calls) 67
Potential violation of Law of Demeter (method chain calls) 70
Potential violation of Law of Demeter (method chain calls) 70
Avoid instantiating new objects inside loops 75
The method 'mainProcessing' has a Cyclomatic Complexity of 10. 90 - 113
Avoid if (x != y) ..; else ..; 98 - 104
Potential violation of Law of Demeter (method chain calls) 99
Potential violation of Law of Demeter (method chain calls) 108
Potential violation of Law of Demeter (method chain calls) 110
Potential violation of Law of Demeter (method chain calls) 110
Potential violation of Law of Demeter (method chain calls) 118
Potential violation of Law of Demeter (method chain calls) 121
Potential violation of Law of Demeter (method chain calls) 121
An empty method in an abstract class should be abstract instead 134 - 136

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUITextarea.java

Violation Line
An empty method in an abstract class should be abstract instead 25 - 27

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUITime.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 36
Potential violation of Law of Demeter (object not created locally) 38
Potential violation of Law of Demeter (object not created locally) 39
Potential violation of Law of Demeter (object not created locally) 40
Potential violation of Law of Demeter (object not created locally) 41
An empty method in an abstract class should be abstract instead 50 - 52

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIToolBar.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 24 - 38

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIToolBarCommand.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 22 - 24

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIToolBarSelectOne.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 24 - 25

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUITree.java

Violation Line
Potential violation of Law of Demeter (static property access) 114
An empty method in an abstract class should be abstract instead 119 - 121
Potential violation of Law of Demeter (method chain calls) 209
Potential violation of Law of Demeter (method chain calls) 227
Potential violation of Law of Demeter (method chain calls) 232

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUITreeCommand.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 22 - 23

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUITreeData.java

Violation Line
Potential violation of Law of Demeter (static property access) 47
Avoid if (x != y) ..; else ..; 50 - 54
Potential violation of Law of Demeter (method chain calls) 53
Avoid if (x != y) ..; else ..; 59 - 63
Potential violation of Law of Demeter (method chain calls) 62
Potential violation of Law of Demeter (static property access) 93
Potential violation of Law of Demeter (static property access) 101
Potential violation of Law of Demeter (static property access) 109

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUITreeIndent.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 26 - 27

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUITreeListbox.java

Violation Line
An empty method in an abstract class should be abstract instead 25 - 27

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUITreeNode.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 45
Potential violation of Law of Demeter (object not created locally) 46
Potential violation of Law of Demeter (method chain calls) 56
Potential violation of Law of Demeter (object not created locally) 57
Potential violation of Law of Demeter (method chain calls) 61
Potential violation of Law of Demeter (object not created locally) 62
Potential violation of Law of Demeter (method chain calls) 66
Potential violation of Law of Demeter (object not created locally) 67
Potential violation of Law of Demeter (method chain calls) 71
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (object not created locally) 78
Potential violation of Law of Demeter (object not created locally) 79
Potential violation of Law of Demeter (object not created locally) 79
Potential violation of Law of Demeter (object not created locally) 91
Consider simply returning the value vs storing it in local variable 'rowData' 92
The String literal "Doesn't work anymore." appears 10 times in this file; the first occurrence is on line 100 100
Potential violation of Law of Demeter (static property access) 100
Potential violation of Law of Demeter (static property access) 108
Potential violation of Law of Demeter (static property access) 116
Potential violation of Law of Demeter (static property access) 124
Potential violation of Law of Demeter (static property access) 133
Potential violation of Law of Demeter (static property access) 141
Potential violation of Law of Demeter (static property access) 149
Potential violation of Law of Demeter (static property access) 157
Potential violation of Law of Demeter (static property access) 165
Potential violation of Law of Demeter (static property access) 174
Potential violation of Law of Demeter (static property access) 182
The String literal "treeExpansionListener!" appears 5 times in this file; the first occurrence is on line 182 182
Potential violation of Law of Demeter (static property access) 191
Potential violation of Law of Demeter (static property access) 199
Return an empty array rather than null. 206 - 209
Potential violation of Law of Demeter (static property access) 207
Potential violation of Law of Demeter (static property access) 216
The String literal "treeMarkedListener!" appears 5 times in this file; the first occurrence is on line 224 224
Potential violation of Law of Demeter (static property access) 224
Potential violation of Law of Demeter (static property access) 233
Potential violation of Law of Demeter (static property access) 241
Return an empty array rather than null. 248 - 251
Potential violation of Law of Demeter (static property access) 249
Potential violation of Law of Demeter (static property access) 258
Potential violation of Law of Demeter (static property access) 266
Potential violation of Law of Demeter (static property access) 275
Potential violation of Law of Demeter (static property access) 283
Potential violation of Law of Demeter (static property access) 292
Potential violation of Law of Demeter (static property access) 300
Potential violation of Law of Demeter (static property access) 309

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUITreeSelect.java

Violation Line
Overriding method merely calls super 32 - 34

Tobago Core - org/apache/myfaces/tobago/internal/component/AbstractUIWizard.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 49
Potential violation of Law of Demeter (method chain calls) 49
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (method chain calls) 72
Potential violation of Law of Demeter (method chain calls) 72
Potential violation of Law of Demeter (method chain calls) 74
Potential violation of Law of Demeter (method chain calls) 75
Potential violation of Law of Demeter (object not created locally) 75
Potential violation of Law of Demeter (method chain calls) 77
Potential violation of Law of Demeter (object not created locally) 77
Potential violation of Law of Demeter (method chain calls) 77
Potential violation of Law of Demeter (method chain calls) 87
Potential violation of Law of Demeter (method chain calls) 87
Potential violation of Law of Demeter (method chain calls) 96
Potential violation of Law of Demeter (method chain calls) 96
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (method chain calls) 104
Potential violation of Law of Demeter (method chain calls) 104
Potential violation of Law of Demeter (method chain calls) 107
Potential violation of Law of Demeter (method chain calls) 107
Avoid if (x != y) ..; else ..; 133 - 137
Potential violation of Law of Demeter (object not created locally) 134
Unnecessary use of fully qualified name 'javax.faces.el.ValueBinding' due to existing import 'javax.faces.el.ValueBinding' 156
Potential violation of Law of Demeter (object not created locally) 158
Unnecessary use of fully qualified name 'javax.faces.el.ValueBinding' due to existing import 'javax.faces.el.ValueBinding' 172
Potential violation of Law of Demeter (object not created locally) 174
Unnecessary use of fully qualified name 'javax.faces.el.ValueBinding' due to existing import 'javax.faces.el.ValueBinding' 188
Potential violation of Law of Demeter (object not created locally) 190

Tobago Core - org/apache/myfaces/tobago/internal/config/ContentSecurityPolicy.java

Violation Line
Avoid using redundant field initializer for 'unmodifiable' 31
Potential violation of Law of Demeter (static property access) 82
Potential violation of Law of Demeter (static property access) 84
Potential violation of Law of Demeter (static property access) 86

Tobago Core - org/apache/myfaces/tobago/internal/config/RenderersConfigImpl.java

Violation Line
Avoid using redundant field initializer for 'merged' 40
Avoid using redundant field initializer for 'unmodifiable' 42
Potential violation of Law of Demeter (method chain calls) 77
Avoid if (x != y) ..; else ..; 85 - 90
Potential violation of Law of Demeter (object not created locally) 86

Tobago Core - org/apache/myfaces/tobago/internal/config/ThemeBuilder.java

Violation Line
Private field 'availableThemes' could be made final; it is only initialized in the declaration or constructor. 37
Private field 'tobagoConfig' could be made final; it is only initialized in the declaration or constructor. 38

Tobago Core - org/apache/myfaces/tobago/internal/config/TobagoConfigBuilder.java

Violation Line
Private field 'list' could be made final; it is only initialized in the declaration or constructor. 45
Avoid unused local variables such as 'builder'. 72
Potential violation of Law of Demeter (method chain calls) 97
Potential violation of Law of Demeter (object not created locally) 99
Avoid instantiating new objects inside loops 103
Potential violation of Law of Demeter (method chain calls) 111
Potential violation of Law of Demeter (method chain calls) 111
Potential violation of Law of Demeter (method chain calls) 111
Potential violation of Law of Demeter (method chain calls) 115

Tobago Core - org/apache/myfaces/tobago/internal/config/TobagoConfigEntityResolver.java

Violation Line
Position literals first in String comparisons 50
Potential violation of Law of Demeter (method chain calls) 51
Position literals first in String comparisons 52
Potential violation of Law of Demeter (method chain calls) 53
Position literals first in String comparisons 54
Potential violation of Law of Demeter (method chain calls) 55
Position literals first in String comparisons 56
Potential violation of Law of Demeter (method chain calls) 57
Avoid if (x != y) ..; else ..; 61 - 67

Tobago Core - org/apache/myfaces/tobago/internal/config/TobagoConfigFragment.java

Violation Line
Too many fields 31 - 216
Private field 'before' could be made final; it is only initialized in the declaration or constructor. 36
Private field 'after' could be made final; it is only initialized in the declaration or constructor. 37
Private field 'supportedThemeNames' could be made final; it is only initialized in the declaration or constructor. 39
Private field 'resourceDirs' could be made final; it is only initialized in the declaration or constructor. 41
Private field 'themeDefinitions' could be made final; it is only initialized in the declaration or constructor. 48
Parameter 'sanitizerClass' is not assigned and could be declared final 184
Parameter 'sanitizerProperties' is not assigned and could be declared final 192
Parameter 'autoAccessKeyFromLabel' is not assigned and could be declared final 200
Parameter 'classicDateTimePicker' is not assigned and could be declared final 208
Avoid if (x != y) ..; else ..; 214

Tobago Core - org/apache/myfaces/tobago/internal/config/TobagoConfigImpl.java

Violation Line
The class 'TobagoConfigImpl' has a Cyclomatic Complexity of 2 (Highest = 10). 49 - 415
Possible God class (WMC=69, ATFD=25, TCC=0.08199643493761141) 49 - 415
Too many fields 49 - 415
Private field 'contentSecurityPolicy' could be made final; it is only initialized in the declaration or constructor. 64
Avoid using redundant field initializer for 'unmodifiable' 71
Local variable 'theme' could be declared final 92
Potential violation of Law of Demeter (method chain calls) 93
Potential violation of Law of Demeter (method chain calls) 100
The method 'resolveThemes' has a Cyclomatic Complexity of 10. 117 - 158
Avoid if (x != y) ..; else ..; 119 - 146
Potential violation of Law of Demeter (object not created locally) 129
Potential violation of Law of Demeter (method chain calls) 130
Potential violation of Law of Demeter (object not created locally) 130
Potential violation of Law of Demeter (object not created locally) 132
Potential violation of Law of Demeter (method chain calls) 132
Potential violation of Law of Demeter (method chain calls) 175
Potential violation of Law of Demeter (method chain calls) 179
The method 'initProjectState' has a Cyclomatic Complexity of 10. 236 - 275
Avoid empty catch blocks 250 - 252
Use block level rather than method level synchronization 277 - 296
Potential violation of Law of Demeter (object not created locally) 284
Potential violation of Law of Demeter (object not created locally) 285
Substitute calls to size() == 0 (or size() != 0) with calls to isEmpty() 286
Potential violation of Law of Demeter (object not created locally) 286
Parameter 'sanitizer' is not assigned and could be declared final 351
Parameter 'autoAccessKeyFromLabel' is not assigned and could be declared final 360
Parameter 'classicDateTimePicker' is not assigned and could be declared final 369
StringBuffer constructor is initialized with size 16, but has at least 332 characters appended. 375
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 376

Tobago Core - org/apache/myfaces/tobago/internal/config/TobagoConfigParser.java

Violation Line
Possible God class (WMC=98, ATFD=37, TCC=0.05454545454545454) 48 - 439
The class 'TobagoConfigParser' has a Cyclomatic Complexity of 5 (Highest = 30). 48 - 439
This class has too many methods, consider refactoring it. 48 - 439
StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 91
Document empty constructor 97 - 98
Potential violation of Law of Demeter (object not created locally) 111
Potential violation of Law of Demeter (object not created locally) 119
Potential violation of Law of Demeter (object not created locally) 120
Potential violation of Law of Demeter (object not created locally) 122
Potential violation of Law of Demeter (object not created locally) 123
The method 'startElement' has a Cyclomatic Complexity of 15. 149 - 247
Potential violation of Law of Demeter (method chain calls) 153
This is an inefficient use of StringBuffer.toString; call StringBuffer.length instead. 153
Potential violation of Law of Demeter (method chain calls) 153
Avoid if (x != y) ..; else ..; 170 - 174
Potential violation of Law of Demeter (object not created locally) 192
Potential violation of Law of Demeter (method chain calls) 194
Potential violation of Law of Demeter (method chain calls) 196
Potential violation of Law of Demeter (object not created locally) 202
Potential violation of Law of Demeter (method chain calls) 204
Potential violation of Law of Demeter (method chain calls) 206
Avoid really long methods. 255 - 401
The method endElement() has an NCSS line count of 109 255 - 401
The method 'endElement' has a Cyclomatic Complexity of 30. 255 - 401
Potential violation of Law of Demeter (method chain calls) 258
Potential violation of Law of Demeter (object not created locally) 265
Avoid if (x != y) ..; else ..; 281 - 285
Potential violation of Law of Demeter (method chain calls) 282
Potential violation of Law of Demeter (method chain calls) 284
Potential violation of Law of Demeter (method chain calls) 326
Potential violation of Law of Demeter (method chain calls) 326
Potential violation of Law of Demeter (method chain calls) 423
Potential violation of Law of Demeter (method chain calls) 424
Potential violation of Law of Demeter (object not created locally) 424
Potential violation of Law of Demeter (method chain calls) 424
Potential violation of Law of Demeter (method chain calls) 425
Potential violation of Law of Demeter (method chain calls) 427
Potential violation of Law of Demeter (object not created locally) 427
Potential violation of Law of Demeter (method chain calls) 427
Potential violation of Law of Demeter (method chain calls) 428
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (method chain calls) 429
Potential violation of Law of Demeter (object not created locally) 429
Potential violation of Law of Demeter (object not created locally) 433
Potential violation of Law of Demeter (object not created locally) 436

Tobago Core - org/apache/myfaces/tobago/internal/config/TobagoConfigSorter.java

Violation Line
The class 'TobagoConfigSorter' has a Cyclomatic Complexity of 5 (Highest = 18). 34 - 317
Private field 'list' could be made final; it is only initialized in the declaration or constructor. 38
Potential violation of Law of Demeter (object not created locally) 60
Prefer StringBuffer over += for concatenating strings 64
Potential violation of Law of Demeter (object not created locally) 66
The method merge() has an NPath complexity of 24579 71 - 165
The method 'merge' has a Cyclomatic Complexity of 18. 71 - 165
Potential violation of Law of Demeter (method chain calls) 76
Potential violation of Law of Demeter (object not created locally) 78
Potential violation of Law of Demeter (object not created locally) 82
Potential violation of Law of Demeter (object not created locally) 84
Potential violation of Law of Demeter (object not created locally) 88
Potential violation of Law of Demeter (object not created locally) 89
Potential violation of Law of Demeter (object not created locally) 93
Potential violation of Law of Demeter (object not created locally) 94
Potential violation of Law of Demeter (object not created locally) 98
Potential violation of Law of Demeter (object not created locally) 99
Potential violation of Law of Demeter (object not created locally) 100
Potential violation of Law of Demeter (object not created locally) 100
Potential violation of Law of Demeter (method chain calls) 100
Potential violation of Law of Demeter (object not created locally) 100
Potential violation of Law of Demeter (object not created locally) 101
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (object not created locally) 107
Potential violation of Law of Demeter (object not created locally) 108
Potential violation of Law of Demeter (object not created locally) 108
Potential violation of Law of Demeter (object not created locally) 110
Potential violation of Law of Demeter (object not created locally) 111
Potential violation of Law of Demeter (object not created locally) 111
Potential violation of Law of Demeter (object not created locally) 114
Potential violation of Law of Demeter (object not created locally) 115
Potential violation of Law of Demeter (object not created locally) 115
Potential violation of Law of Demeter (object not created locally) 118
Potential violation of Law of Demeter (method chain calls) 119
Potential violation of Law of Demeter (object not created locally) 119
Potential violation of Law of Demeter (object not created locally) 119
Potential violation of Law of Demeter (object not created locally) 122
Potential violation of Law of Demeter (object not created locally) 123
Potential violation of Law of Demeter (object not created locally) 123
Potential violation of Law of Demeter (object not created locally) 126
Potential violation of Law of Demeter (object not created locally) 127
Potential violation of Law of Demeter (object not created locally) 128
Potential violation of Law of Demeter (object not created locally) 131
Potential violation of Law of Demeter (object not created locally) 132
Potential violation of Law of Demeter (object not created locally) 132
Potential violation of Law of Demeter (object not created locally) 135
Potential violation of Law of Demeter (object not created locally) 136
Potential violation of Law of Demeter (object not created locally) 136
Potential violation of Law of Demeter (method chain calls) 154
Potential violation of Law of Demeter (object not created locally) 155
Potential violation of Law of Demeter (object not created locally) 156
Potential violation of Law of Demeter (object not created locally) 157
Potential violation of Law of Demeter (method chain calls) 174
Potential violation of Law of Demeter (method chain calls) 174
Potential violation of Law of Demeter (method chain calls) 175
Potential violation of Law of Demeter (method chain calls) 175
Potential violation of Law of Demeter (method chain calls) 175
Potential violation of Law of Demeter (method chain calls) 175
Avoid instantiation through private constructors from outside of the constructors class. 176
Potential violation of Law of Demeter (method chain calls) 176
Potential violation of Law of Demeter (method chain calls) 176
Avoid instantiating new objects inside loops 176
Avoid instantiating new objects inside loops 187
The String literal "' < '" appears 4 times in this file; the first occurrence is on line 190 190
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 192
Avoid appending characters as strings in StringBuffer.append. 195
Avoid instantiating new objects inside loops 211
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 220
Avoid appending characters as strings in StringBuffer.append. 223
Avoid instantiating new objects inside loops 255
Avoid instantiation through private constructors from outside of the constructors class. 255
Avoid instantiation through private constructors from outside of the constructors class. 261
Avoid instantiating new objects inside loops 261

Tobago Core - org/apache/myfaces/tobago/internal/config/TobagoConfigVersion.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 56

Tobago Core - org/apache/myfaces/tobago/internal/context/ClientPropertiesKey.java

Violation Line
The class 'ClientPropertiesKey' has a Cyclomatic Complexity of 2 (Highest = 10). 32 - 135
Potential violation of Law of Demeter (object not created locally) 56
The method 'equals' has a Cyclomatic Complexity of 10. 68 - 98

Tobago Core - org/apache/myfaces/tobago/internal/context/DateTimeI18n.java

Violation Line
A class which only has private constructors should be final 31 - 106
Parameter 'locale' is not assigned and could be declared final 44
Unnecessary use of fully qualified name 'java.util.Calendar.MONTH' due to existing import 'java.util.Calendar' 56
Use block level rather than method level synchronization 73 - 81
Parameter 'locale' is not assigned and could be declared final 73

Tobago Core - org/apache/myfaces/tobago/internal/context/ImageCacheKey.java

Violation Line
Parameter 'o' is not assigned and could be declared final 36
Local variable 'that' could be declared final 44
Avoid if (x != y) ..; else ..; 49

Tobago Core - org/apache/myfaces/tobago/internal/context/MeasureValue.java

Violation Line
Private field 'value' could be made final; it is only initialized in the declaration or constructor. 31
Avoid if (x != y) ..; else ..; 52
Useless parentheses. 61
Avoid if (x != y) ..; else ..; 61
Do not add empty strings 66

Tobago Core - org/apache/myfaces/tobago/internal/context/ResourceLocator.java

Violation Line
This class has too many methods, consider refactoring it. 62 - 455
Possible God class (WMC=71, ATFD=41, TCC=0.07575757575757576) 62 - 455
The class 'ResourceLocator' has a Cyclomatic Complexity of 6 (Highest = 14). 62 - 455
Private field 'servletContext' could be made final; it is only initialized in the declaration or constructor. 70
Private field 'resourceManager' could be made final; it is only initialized in the declaration or constructor. 71
Private field 'themeBuilder' could be made final; it is only initialized in the declaration or constructor. 72
The method 'locateResourcesInWar' has a Cyclomatic Complexity of 14. 89 - 140
The method locateResourcesInWar() has an NPath complexity of 240 89 - 140
Avoid reassigning parameters such as 'path' 90
Potential violation of Law of Demeter (object not created locally) 101
Potential violation of Law of Demeter (method chain calls) 149
Potential violation of Law of Demeter (object not created locally) 150
Potential violation of Law of Demeter (object not created locally) 152
Potential violation of Law of Demeter (object not created locally) 153
Avoid instantiating new objects inside loops 154
Potential violation of Law of Demeter (object not created locally) 159
Potential violation of Law of Demeter (method chain calls) 161
Potential violation of Law of Demeter (method chain calls) 161
Potential violation of Law of Demeter (method chain calls) 161
An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 168
Potential violation of Law of Demeter (method chain calls) 189
Potential violation of Law of Demeter (object not created locally) 190
Potential violation of Law of Demeter (object not created locally) 192
Potential violation of Law of Demeter (object not created locally) 193
Potential violation of Law of Demeter (object not created locally) 196
Potential violation of Law of Demeter (method chain calls) 196
Potential violation of Law of Demeter (object not created locally) 203
Potential violation of Law of Demeter (method chain calls) 207
Potential violation of Law of Demeter (method chain calls) 207
Potential violation of Law of Demeter (method chain calls) 207
Potential violation of Law of Demeter (object not created locally) 212
Potential violation of Law of Demeter (object not created locally) 213
Potential violation of Law of Demeter (object not created locally) 231
Potential violation of Law of Demeter (object not created locally) 231
Avoid if (x != y) ..; else ..; 241 - 245
Potential violation of Law of Demeter (object not created locally) 242
Potential violation of Law of Demeter (method chain calls) 255
Potential violation of Law of Demeter (method chain calls) 255
Potential violation of Law of Demeter (method chain calls) 255
Potential violation of Law of Demeter (method chain calls) 256
Potential violation of Law of Demeter (object not created locally) 257
Potential violation of Law of Demeter (object not created locally) 259
Potential violation of Law of Demeter (object not created locally) 260
Potential violation of Law of Demeter (object not created locally) 261
Potential violation of Law of Demeter (method chain calls) 261
Potential violation of Law of Demeter (object not created locally) 262
Potential violation of Law of Demeter (method chain calls) 262
Potential violation of Law of Demeter (object not created locally) 275
The method 'addResourcesFromZip' has a Cyclomatic Complexity of 12. 280 - 335
The method addResourcesFromZip() has an NPath complexity of 288 280 - 335
Avoid reassigning parameters such as 'fileName' 281
Avoid reassigning parameters such as 'fileName' 281
Avoid reassigning parameters such as 'fileName' 281
String.indexOf(char) is faster than String.indexOf(String). 285
Do not add empty strings 290
Position literals first in String comparisons 294
Position literals first in String comparisons 303
Potential violation of Law of Demeter (object not created locally) 320
Potential violation of Law of Demeter (object not created locally) 322
Potential violation of Law of Demeter (object not created locally) 322
Potential violation of Law of Demeter (object not created locally) 323
Potential violation of Law of Demeter (object not created locally) 326
Potential violation of Law of Demeter (object not created locally) 327
Avoid empty if statements 340 - 342
Potential violation of Law of Demeter (method chain calls) 347
Potential violation of Law of Demeter (method chain calls) 347
Potential violation of Law of Demeter (method chain calls) 358
Potential violation of Law of Demeter (method chain calls) 358
Avoid reassigning parameters such as 'resourcePath' 369
Avoid reassigning parameters such as 'resourcePath' 369
This call to String.startsWith can be rewritten using String.charAt(0) 370
Avoid declaring a variable if it is unreferenced before a possible exit point. 384
Potential violation of Law of Demeter (object not created locally) 387
Potential violation of Law of Demeter (object not created locally) 389
Avoid declaring a variable if it is unreferenced before a possible exit point. 391
Potential violation of Law of Demeter (object not created locally) 391
Potential violation of Law of Demeter (object not created locally) 417
Potential violation of Law of Demeter (object not created locally) 418
Potential violation of Law of Demeter (object not created locally) 429
Potential violation of Law of Demeter (object not created locally) 430
Potential violation of Law of Demeter (object not created locally) 436
Potential violation of Law of Demeter (object not created locally) 437
Potential violation of Law of Demeter (object not created locally) 438
Avoid if (x != y) ..; else ..; 445 - 451

Tobago Core - org/apache/myfaces/tobago/internal/context/ResourceManagerFactory.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 38
Potential violation of Law of Demeter (method chain calls) 42 - 43
Potential violation of Law of Demeter (method chain calls) 42 - 43
Potential violation of Law of Demeter (object not created locally) 59
Potential violation of Law of Demeter (object not created locally) 60

Tobago Core - org/apache/myfaces/tobago/internal/context/ResourceManagerImpl.java

Violation Line
Possible God class (WMC=132, ATFD=75, TCC=0.13333333333333333) 44 - 688
The class 'ResourceManagerImpl' has a Cyclomatic Complexity of 5 (Highest = 34). 44 - 688
Private field 'production' could be made final; it is only initialized in the declaration or constructor. 64
Private field 'tobagoConfig' could be made final; it is only initialized in the declaration or constructor. 84
Potential violation of Law of Demeter (method chain calls) 129 - 130
Potential violation of Law of Demeter (object not created locally) 133
The String literal "' clientProperties = '" appears 4 times in this file; the first occurrence is on line 133 133
The String literal "name = '" appears 4 times in this file; the first occurrence is on line 133 133
Avoid if (x != y) ..; else ..; 154 - 158
Potential violation of Law of Demeter (object not created locally) 155
Potential violation of Law of Demeter (object not created locally) 161
Potential violation of Law of Demeter (object not created locally) 187
Avoid if (x != y) ..; else ..; 187 - 193
Potential violation of Law of Demeter (object not created locally) 188
Potential violation of Law of Demeter (object not created locally) 189
Potential violation of Law of Demeter (object not created locally) 195
Potential violation of Law of Demeter (object not created locally) 197
Avoid if (x != y) ..; else ..; 232 - 236
Potential violation of Law of Demeter (object not created locally) 233
Potential violation of Law of Demeter (object not created locally) 239
Potential violation of Law of Demeter (object not created locally) 262
Potential violation of Law of Demeter (object not created locally) 270
Potential violation of Law of Demeter (object not created locally) 271
Avoid if (x != y) ..; else ..; 276 - 280
Potential violation of Law of Demeter (object not created locally) 283
Avoid if (x != y) ..; else ..; 338 - 342
Potential violation of Law of Demeter (object not created locally) 339
Potential violation of Law of Demeter (object not created locally) 346
These nested if statements could be combined 346 - 348
Potential violation of Law of Demeter (object not created locally) 351
The method 'getPaths' has a Cyclomatic Complexity of 34. 357 - 453
The method getPaths() has an NPath complexity of 5278 357 - 453
Avoid long parameter lists. 357 - 360
Avoid reassigning parameters such as 'ignoreMissing' 360
Avoid declaring a variable if it is unreferenced before a possible exit point. 362
Avoid declaring a variable if it is unreferenced before a possible exit point. 363
Avoid declaring a variable if it is unreferenced before a possible exit point. 364
Potential violation of Law of Demeter (object not created locally) 395
Potential violation of Law of Demeter (object not created locally) 397
Potential violation of Law of Demeter (object not created locally) 429
Potential violation of Law of Demeter (method chain calls) 433
Potential violation of Law of Demeter (object not created locally) 441
The method 'checkPath' has a Cyclomatic Complexity of 11. 455 - 497
Avoid long parameter lists. 455 - 458
Avoid if (x != y) ..; else ..; 476 - 495
Potential violation of Law of Demeter (object not created locally) 478
Potential violation of Law of Demeter (method chain calls) 478
The String literal "testing path: " appears 6 times in this file; the first occurrence is on line 481 481
Avoid long parameter lists. 499 - 503
The method 'checkPath' has a Cyclomatic Complexity of 14. 499 - 546
Avoid if (x != y) ..; else ..; 525 - 544
Potential violation of Law of Demeter (object not created locally) 527
Potential violation of Law of Demeter (method chain calls) 527
Avoid long parameter lists. 548 - 551
Potential violation of Law of Demeter (method chain calls) 610
Prefer StringBuffer over += for concatenating strings 615
Potential violation of Law of Demeter (object not created locally) 616
Potential violation of Law of Demeter (method chain calls) 618
Potential violation of Law of Demeter (method chain calls) 618
Potential violation of Law of Demeter (object not created locally) 618
Avoid if (x != y) ..; else ..; 662 - 670

Tobago Core - org/apache/myfaces/tobago/internal/context/ResponseWriterDivider.java

Violation Line
Private field 'writers' could be made final; it is only initialized in the declaration or constructor. 41
Private field 'buffers' could be made final; it is only initialized in the declaration or constructor. 42
Private field 'original' could be made final; it is only initialized in the declaration or constructor. 44
Potential violation of Law of Demeter (method chain calls) 51
Potential violation of Law of Demeter (object not created locally) 52
Potential violation of Law of Demeter (object not created locally) 55
Potential violation of Law of Demeter (method chain calls) 85
Potential violation of Law of Demeter (method chain calls) 91
Potential violation of Law of Demeter (method chain calls) 111
Potential violation of Law of Demeter (method chain calls) 117
Potential violation of Law of Demeter (method chain calls) 133
Potential violation of Law of Demeter (object not created locally) 134
StringBuffer constructor is initialized with size 16, but has at least 175 characters appended. 139
Avoid appending characters as strings in StringBuffer.append. 144

Tobago Core - org/apache/myfaces/tobago/internal/context/StringValue.java

Violation Line
Private field 'value' could be made final; it is only initialized in the declaration or constructor. 29
Avoid if (x != y) ..; else ..; 50
Avoid if (x != y) ..; else ..; 59
Useless parentheses. 59

Tobago Core - org/apache/myfaces/tobago/internal/context/ThemeConfigCacheKey.java

Violation Line
Avoid if (x != y) ..; else ..; 59
Avoid if (x != y) ..; else ..; 73

Tobago Core - org/apache/myfaces/tobago/internal/layout/FactorList.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 47

Tobago Core - org/apache/myfaces/tobago/internal/layout/Grid.java

Violation Line
Possible God class (WMC=104, ATFD=22, TCC=0.3006535947712418) 32 - 498
The class 'Grid' has a Cyclomatic Complexity of 5 (Highest = 55). 32 - 498
Private field 'cells' could be made final; it is only initialized in the declaration or constructor. 40
Private field 'columnHeads' could be made final; it is only initialized in the declaration or constructor. 42
Private field 'columnCount' could be made final; it is only initialized in the declaration or constructor. 45
Avoid instantiating new objects inside loops 65
Avoid instantiating new objects inside loops 69
Avoid reassigning parameters such as 'columnSpan' 78
Avoid reassigning parameters such as 'columnSpan' 78
Avoid instantiating new objects inside loops 110
Avoid instantiating new objects inside loops 176
The method gridAsString() has an NPath complexity of 11503356 246 - 474
Avoid really long methods. 246 - 474
The method gridAsString() has an NCSS line count of 175 246 - 474
The method 'gridAsString' has a Cyclomatic Complexity of 55. 246 - 474
StringBuffer constructor is initialized with size 16, but has at least 17 characters appended. 248
Avoid if (x != y) ..; else ..; 253 - 257
Avoid appending characters as strings in StringBuffer.append. 254
Avoid appending characters as strings in StringBuffer.append. 256
Avoid appending characters as strings in StringBuffer.append. 262
Avoid appending characters as strings in StringBuffer.append. 265
Avoid appending characters as strings in StringBuffer.append. 268
Avoid appending characters as strings in StringBuffer.append. 270
Avoid appending characters as strings in StringBuffer.append. 272
Avoid if (x != y) ..; else ..; 277 - 281
Avoid appending characters as strings in StringBuffer.append. 278
Avoid appending characters as strings in StringBuffer.append. 280
Avoid if (x != y) ..; else ..; 284 - 288
Avoid appending characters as strings in StringBuffer.append. 285
Avoid appending characters as strings in StringBuffer.append. 287
Avoid appending characters as strings in StringBuffer.append. 289
Avoid appending characters as strings in StringBuffer.append. 300
Avoid appending characters as strings in StringBuffer.append. 303
Avoid appending characters as strings in StringBuffer.append. 306
Avoid appending characters as strings in StringBuffer.append. 308
Avoid appending characters as strings in StringBuffer.append. 310
Avoid appending characters as strings in StringBuffer.append. 325
Avoid appending characters as strings in StringBuffer.append. 327
Avoid appending characters as strings in StringBuffer.append. 330
Avoid appending characters as strings in StringBuffer.append. 335
Avoid appending characters as strings in StringBuffer.append. 337
Avoid appending characters as strings in StringBuffer.append. 339
Avoid appending characters as strings in StringBuffer.append. 344
Avoid appending characters as strings in StringBuffer.append. 346
Avoid appending characters as strings in StringBuffer.append. 350
Avoid appending characters as strings in StringBuffer.append. 352
Avoid appending characters as strings in StringBuffer.append. 361
Avoid appending characters as strings in StringBuffer.append. 363
Avoid appending characters as strings in StringBuffer.append. 369
Avoid appending characters as strings in StringBuffer.append. 372
Avoid appending characters as strings in StringBuffer.append. 375
Avoid appending characters as strings in StringBuffer.append. 377
Avoid appending characters as strings in StringBuffer.append. 379
Avoid appending characters as strings in StringBuffer.append. 383
Avoid if (x != y) ..; else ..; 389 - 393
Avoid appending characters as strings in StringBuffer.append. 390
Avoid appending characters as strings in StringBuffer.append. 392
Avoid appending characters as strings in StringBuffer.append. 398
Avoid appending characters as strings in StringBuffer.append. 400
Avoid appending characters as strings in StringBuffer.append. 404
Avoid appending characters as strings in StringBuffer.append. 407
Avoid appending characters as strings in StringBuffer.append. 410
Avoid appending characters as strings in StringBuffer.append. 415
Avoid appending characters as strings in StringBuffer.append. 417
Avoid appending characters as strings in StringBuffer.append. 421
Avoid if (x != y) ..; else ..; 425 - 429
Avoid appending characters as strings in StringBuffer.append. 426
Avoid appending characters as strings in StringBuffer.append. 428
Avoid appending characters as strings in StringBuffer.append. 430
Avoid if (x != y) ..; else ..; 436 - 440
Avoid appending characters as strings in StringBuffer.append. 437
Avoid appending characters as strings in StringBuffer.append. 439
Avoid appending characters as strings in StringBuffer.append. 445
Avoid appending characters as strings in StringBuffer.append. 448
Avoid appending characters as strings in StringBuffer.append. 451
Avoid appending characters as strings in StringBuffer.append. 453
Avoid appending characters as strings in StringBuffer.append. 455
Avoid if (x != y) ..; else ..; 460 - 464
Avoid appending characters as strings in StringBuffer.append. 461
Avoid appending characters as strings in StringBuffer.append. 463
Avoid if (x != y) ..; else ..; 466 - 470
Avoid appending characters as strings in StringBuffer.append. 467
Avoid appending characters as strings in StringBuffer.append. 469
Avoid appending characters as strings in StringBuffer.append. 471
StringBuffer constructor is initialized with size 16, but has at least 25 characters appended. 478
Avoid appending characters as strings in StringBuffer.append. 482
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 482
Avoid appending characters as strings in StringBuffer.append. 485
Potential violation of Law of Demeter (method chain calls) 496

Tobago Core - org/apache/myfaces/tobago/internal/layout/Interval.java

Violation Line
Avoid if (x != y) ..; else ..; 66 - 67
Avoid if (x != y) ..; else ..; 68
Avoid if (x != y) ..; else ..; 69
Avoid if (x != y) ..; else ..; 70
Avoid appending characters as strings in StringBuffer.append. 92
Avoid appending characters as strings in StringBuffer.append. 98
Avoid appending characters as strings in StringBuffer.append. 100

Tobago Core - org/apache/myfaces/tobago/internal/layout/IntervalList.java

Violation Line
Avoid if (x != y) ..; else ..; 49 - 53
Potential violation of Law of Demeter (object not created locally) 49
Potential violation of Law of Demeter (object not created locally) 83
Potential violation of Law of Demeter (object not created locally) 85
Potential violation of Law of Demeter (object not created locally) 87
Potential violation of Law of Demeter (object not created locally) 87
Potential violation of Law of Demeter (object not created locally) 88

Tobago Core - org/apache/myfaces/tobago/internal/layout/LayoutContext.java

Violation Line
The class 'LayoutContext' has a Cyclomatic Complexity of 5 (Highest = 12). 59 - 159
Private field 'container' could be made final; it is only initialized in the declaration or constructor. 63
The method 'layout' has a Cyclomatic Complexity of 12. 69 - 120
The method layout() has an NPath complexity of 2048 69 - 120
Potential violation of Law of Demeter (object not created locally) 79
Potential violation of Law of Demeter (object not created locally) 83
Potential violation of Law of Demeter (object not created locally) 87
Potential violation of Law of Demeter (object not created locally) 91
Potential violation of Law of Demeter (object not created locally) 95
Potential violation of Law of Demeter (object not created locally) 99
Potential violation of Law of Demeter (object not created locally) 103
Potential violation of Law of Demeter (object not created locally) 107
Potential violation of Law of Demeter (object not created locally) 111
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 123
Potential violation of Law of Demeter (method chain calls) 135
Potential violation of Law of Demeter (method chain calls) 135
Avoid appending characters as strings in StringBuffer.append. 136
Avoid appending characters as strings in StringBuffer.append. 139
Potential violation of Law of Demeter (method chain calls) 140
Potential violation of Law of Demeter (method chain calls) 140
Potential violation of Law of Demeter (method chain calls) 142
Potential violation of Law of Demeter (method chain calls) 142
Avoid appending characters as strings in StringBuffer.append. 143
Potential violation of Law of Demeter (method chain calls) 146
Avoid appending characters as strings in StringBuffer.append. 148
Potential violation of Law of Demeter (method chain calls) 151
Potential violation of Law of Demeter (method chain calls) 151
Avoid appending characters as strings in StringBuffer.append. 154

Tobago Core - org/apache/myfaces/tobago/internal/layout/LayoutUtils.java

Violation Line
Avoid unused private fields such as 'LOG'. 39
Potential violation of Law of Demeter (method chain calls) 51
Avoid reassigning parameters such as 'size' 105
Avoid reassigning parameters such as 'size' 105
Avoid reassigning parameters such as 'size' 105
Avoid reassigning parameters such as 'size' 105
Avoid reassigning parameters such as 'size' 105
Avoid reassigning parameters such as 'size' 105
Avoid if (x != y) ..; else ..; 108 - 119
Avoid if (x != y) ..; else ..; 123 - 134

Tobago Core - org/apache/myfaces/tobago/internal/layout/MathUtils.java

Violation Line
Avoid reassigning parameters such as 'bias' 36
Avoid unused local variables such as 'ignored'. 37
Consider using varargs for methods or constructors which take an array the last parameter. 53
Potential violation of Law of Demeter (method chain calls) 57
Consider using varargs for methods or constructors which take an array the last parameter. 70
Potential violation of Law of Demeter (method chain calls) 74

Tobago Core - org/apache/myfaces/tobago/internal/layout/OriginCell.java

Violation Line
Private field 'component' could be made final; it is only initialized in the declaration or constructor. 27

Tobago Core - org/apache/myfaces/tobago/internal/layout/SpanCell.java

Violation Line
Private field 'origin' could be made final; it is only initialized in the declaration or constructor. 26
Private field 'horizontalFirst' could be made final; it is only initialized in the declaration or constructor. 27
Private field 'verticalFirst' could be made final; it is only initialized in the declaration or constructor. 28

Tobago Core - org/apache/myfaces/tobago/internal/taglib/TobagoBodyTag.java

Violation Line
Avoid unused private fields such as 'LOG'. 31
An empty method in an abstract class should be abstract instead 39 - 40
Document empty method 39 - 40
Potential violation of Law of Demeter (object not created locally) 51
Potential violation of Law of Demeter (method chain calls) 52
String.trim().length()==0 is an inefficient way to validate an empty String. 52
Potential violation of Law of Demeter (object not created locally) 52

Tobago Core - org/apache/myfaces/tobago/internal/taglib/TobagoELTag.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 38
Potential violation of Law of Demeter (method chain calls) 38
Potential violation of Law of Demeter (object not created locally) 39
Potential violation of Law of Demeter (method chain calls) 39
Potential violation of Law of Demeter (object not created locally) 40
Potential violation of Law of Demeter (method chain calls) 40
Potential violation of Law of Demeter (object not created locally) 50
Potential violation of Law of Demeter (method chain calls) 50
Potential violation of Law of Demeter (object not created locally) 51
Potential violation of Law of Demeter (method chain calls) 51
Potential violation of Law of Demeter (method chain calls) 52
Potential violation of Law of Demeter (object not created locally) 52
Potential violation of Law of Demeter (object not created locally) 80
String.trim().length()==0 is an inefficient way to validate an empty String. 81
Potential violation of Law of Demeter (method chain calls) 81
Potential violation of Law of Demeter (object not created locally) 81

Tobago Core - org/apache/myfaces/tobago/internal/taglib/TobagoTag.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 36
Potential violation of Law of Demeter (object not created locally) 36
Potential violation of Law of Demeter (method chain calls) 37
Potential violation of Law of Demeter (object not created locally) 37
Potential violation of Law of Demeter (object not created locally) 38
Potential violation of Law of Demeter (method chain calls) 38

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/AttributeTag.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 70
Useless parentheses. 71
Potential violation of Law of Demeter (object not created locally) 74
Potential violation of Law of Demeter (method chain calls) 80
Avoid if (x != y) ..; else ..; 84 - 94
Potential violation of Law of Demeter (object not created locally) 85
Potential violation of Law of Demeter (static property access) 86
Potential violation of Law of Demeter (static property access) 88
Potential violation of Law of Demeter (method chain calls) 91
Potential violation of Law of Demeter (object not created locally) 93
Potential violation of Law of Demeter (method chain calls) 93
Useless parentheses. 95

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/CellTagDeclaration.java

Violation Line
The String literal "java.lang.Integer" appears 4 times in this file; the first occurrence is on line 52 52

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/ConverterTag.java

Violation Line
The class 'ConverterTag' has a Cyclomatic Complexity of 4 (Highest = 12). 46 - 138
The method doStartTag() has an NPath complexity of 576 62 - 114
The method 'doStartTag' has a Cyclomatic Complexity of 12. 62 - 114
Potential violation of Law of Demeter (object not created locally) 72
Useless parentheses. 73
Potential violation of Law of Demeter (object not created locally) 76
Potential violation of Law of Demeter (object not created locally) 83
Potential violation of Law of Demeter (method chain calls) 83
Potential violation of Law of Demeter (object not created locally) 90
Potential violation of Law of Demeter (method chain calls) 99
Potential violation of Law of Demeter (object not created locally) 99
Avoid if (x != y) ..; else ..; 103 - 110
Potential violation of Law of Demeter (object not created locally) 104
Potential violation of Law of Demeter (object not created locally) 106
Potential violation of Law of Demeter (object not created locally) 109
Useless parentheses. 113

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/DataAttributeTag.java

Violation Line
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 52
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 53
Potential violation of Law of Demeter (object not created locally) 75
Useless parentheses. 76
Potential violation of Law of Demeter (object not created locally) 79
Potential violation of Law of Demeter (method chain calls) 85
Useless parentheses. 92

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/GridLayoutConstraintTag.java

Violation Line
Possible God class (WMC=82, ATFD=101, TCC=0.16304347826086957) 50 - 543
Too many fields 50 - 543
The class 'GridLayoutConstraintTag' has a Cyclomatic Complexity of 3 (Highest = 59). 50 - 543
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 56
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 57
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 58
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 59
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 60
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 61
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 62
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 63
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 64
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 65
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 66
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 67
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 68
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 69
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 70
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 71
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 72
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 73
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 74
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 75
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 76
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 77
The method doStartTag() has an NCSS line count of 151 80 - 319
The method 'doStartTag' has a Cyclomatic Complexity of 59. 80 - 319
Avoid really long methods. 80 - 319
Potential violation of Law of Demeter (object not created locally) 90
Useless parentheses. 91
Potential violation of Law of Demeter (object not created locally) 94
Potential violation of Law of Demeter (object not created locally) 101
Potential violation of Law of Demeter (method chain calls) 101
Potential violation of Law of Demeter (method chain calls) 101
Potential violation of Law of Demeter (method chain calls) 101
Potential violation of Law of Demeter (object not created locally) 101
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (method chain calls) 109
Potential violation of Law of Demeter (object not created locally) 113
The String literal "Ignoring '" appears 10 times in this file; the first occurrence is on line 115 115
Potential violation of Law of Demeter (object not created locally) 121
Potential violation of Law of Demeter (object not created locally) 129
Potential violation of Law of Demeter (object not created locally) 131
Potential violation of Law of Demeter (object not created locally) 137
Potential violation of Law of Demeter (object not created locally) 139
Potential violation of Law of Demeter (object not created locally) 145
Potential violation of Law of Demeter (object not created locally) 147
Potential violation of Law of Demeter (object not created locally) 153
Potential violation of Law of Demeter (object not created locally) 155
Potential violation of Law of Demeter (object not created locally) 161
Potential violation of Law of Demeter (object not created locally) 163
Potential violation of Law of Demeter (object not created locally) 169
Potential violation of Law of Demeter (object not created locally) 171
Potential violation of Law of Demeter (object not created locally) 177
Potential violation of Law of Demeter (object not created locally) 179
Potential violation of Law of Demeter (object not created locally) 185
Potential violation of Law of Demeter (object not created locally) 187
Potential violation of Law of Demeter (object not created locally) 193
Potential violation of Law of Demeter (object not created locally) 195
Potential violation of Law of Demeter (object not created locally) 201
Potential violation of Law of Demeter (object not created locally) 203
Potential violation of Law of Demeter (object not created locally) 209
Potential violation of Law of Demeter (object not created locally) 211
Potential violation of Law of Demeter (object not created locally) 217
Potential violation of Law of Demeter (object not created locally) 219
Potential violation of Law of Demeter (object not created locally) 226
Potential violation of Law of Demeter (object not created locally) 228
The String literal "', because the parent is not a LayoutContainer!" appears 8 times in this file; the first occurrence is on line 231 231
Potential violation of Law of Demeter (object not created locally) 238
Potential violation of Law of Demeter (object not created locally) 240
Potential violation of Law of Demeter (object not created locally) 250
Potential violation of Law of Demeter (object not created locally) 252
Potential violation of Law of Demeter (object not created locally) 262
Potential violation of Law of Demeter (object not created locally) 264
Potential violation of Law of Demeter (object not created locally) 274
Potential violation of Law of Demeter (object not created locally) 276
Potential violation of Law of Demeter (object not created locally) 286
Potential violation of Law of Demeter (object not created locally) 288
Potential violation of Law of Demeter (object not created locally) 297
Potential violation of Law of Demeter (object not created locally) 299
Potential violation of Law of Demeter (object not created locally) 309
Potential violation of Law of Demeter (object not created locally) 311
Useless parentheses. 318
The String literal "java.lang.Object" appears 40 times in this file; the first occurrence is on line 367 367

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/LoadBundleTag.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 61
Potential violation of Law of Demeter (object not created locally) 65
Potential violation of Law of Demeter (method chain calls) 65
Potential violation of Law of Demeter (method chain calls) 65

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/PopupReferenceTag.java

Violation Line
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 49
Potential violation of Law of Demeter (object not created locally) 61
Useless parentheses. 62
Potential violation of Law of Demeter (object not created locally) 65
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (method chain calls) 72
Potential violation of Law of Demeter (object not created locally) 76
Potential violation of Law of Demeter (method chain calls) 80
Potential violation of Law of Demeter (method chain calls) 80
Potential violation of Law of Demeter (object not created locally) 82
Useless parentheses. 84

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/ResetInputActionListenerTag.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 65
Useless parentheses. 66
Potential violation of Law of Demeter (object not created locally) 69
Potential violation of Law of Demeter (method chain calls) 76
Potential violation of Law of Demeter (object not created locally) 76
Potential violation of Law of Demeter (method chain calls) 79
Useless parentheses. 90
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 104

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/SheetTagDeclaration.java

Violation Line
The String literal "boolean" appears 4 times in this file; the first occurrence is on line 75 75
The String literal "center" appears 4 times in this file; the first occurrence is on line 152 152
The String literal "none" appears 4 times in this file; the first occurrence is on line 153 153
The String literal "right" appears 4 times in this file; the first occurrence is on line 153 153
The String literal "left" appears 4 times in this file; the first occurrence is on line 153 153

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/SuggestTagDeclaration.java

Violation Line
The String literal "java.lang.Integer" appears 4 times in this file; the first occurrence is on line 84 84

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/TabChangeListenerTag.java

Violation Line
The class 'TabChangeListenerTag' has a Cyclomatic Complexity of 5 (Highest = 14). 46 - 147
The method doStartTag() has an NPath complexity of 960 79 - 131
The method 'doStartTag' has a Cyclomatic Complexity of 14. 79 - 131
Potential violation of Law of Demeter (object not created locally) 89
Useless parentheses. 90
Potential violation of Law of Demeter (object not created locally) 93
Potential violation of Law of Demeter (object not created locally) 100
Potential violation of Law of Demeter (method chain calls) 100
Potential violation of Law of Demeter (method chain calls) 103
Avoid if (x != y) ..; else ..; 122 - 127
Potential violation of Law of Demeter (object not created locally) 126
Useless parentheses. 130
Potential violation of Law of Demeter (method chain calls) 141
Potential violation of Law of Demeter (method chain calls) 141
Potential violation of Law of Demeter (object not created locally) 142
Potential violation of Law of Demeter (object not created locally) 142

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/ValidateFileItemTag.java

Violation Line
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 52
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 53
Potential violation of Law of Demeter (object not created locally) 58
Potential violation of Law of Demeter (object not created locally) 59
Potential violation of Law of Demeter (object not created locally) 60
Potential violation of Law of Demeter (object not created locally) 64
Potential violation of Law of Demeter (object not created locally) 70

Tobago Core - org/apache/myfaces/tobago/internal/taglib/component/ValidateSubmittedValueLengthTag.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 53
Potential violation of Law of Demeter (object not created locally) 55
Potential violation of Law of Demeter (method chain calls) 56
Potential violation of Law of Demeter (object not created locally) 60
Avoid empty catch blocks 61 - 63
Potential violation of Law of Demeter (object not created locally) 67
Avoid empty catch blocks 68 - 70

Tobago Core - org/apache/myfaces/tobago/internal/taglib/declaration/HasMargins.java

Violation Line
The String literal "org.apache.myfaces.tobago.layout.Measure" appears 4 times in this file; the first occurrence is on line 32 32
The String literal "getMargin() != null\n" appears 4 times in this file; the first occurrence is on line 33 33
The String literal " ? getMargin()\n : getRendererType() != null" appears 4 times in this file; the first occurrence is on line 34 34

Tobago Core - org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutComponentBase.java

Violation Line
The String literal "org.apache.myfaces.tobago.layout.Measure" appears 14 times in this file; the first occurrence is on line 35 35
The String literal "java.lang.Integer" appears 4 times in this file; the first occurrence is on line 51 51
The String literal "getRendererType() != null ? ((LayoutComponentRenderer) " appears 10 times in this file; the first occurrence is on line 64 64

Tobago Core - org/apache/myfaces/tobago/internal/taglib/declaration/IsGridLayoutContainer.java

Violation Line
The String literal "org.apache.myfaces.tobago.layout.Measure" appears 8 times in this file; the first occurrence is on line 32 32
The String literal "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n" appears 8 times in this file; the first occurrence is on line 33 33

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/DateExtensionTag.java

Violation Line
The class 'DateExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 26). 56 - 503
Possible God class (WMC=57, ATFD=40, TCC=0.1402116402116402) 56 - 503
Too many fields 56 - 503
The method 'doStartTag' has a Cyclomatic Complexity of 26. 89 - 182
The method doStartTag() has an NPath complexity of 33554432 89 - 182
Avoid if (x != y) ..; else ..; 102 - 106
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 288
The String literal "false" appears 4 times in this file; the first occurrence is on line 305 305
The String literal "boolean" appears 5 times in this file; the first occurrence is on line 305 305

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/ExtensionPanelTag.java

Violation Line
Avoid unused private fields such as 'LOG'. 33
Potential violation of Law of Demeter (object not created locally) 51
Avoid unused local variables such as 'application'. 51
Avoid if (x != y) ..; else ..; 53 - 57
Potential violation of Law of Demeter (object not created locally) 54
Potential violation of Law of Demeter (object not created locally) 56
Potential violation of Law of Demeter (static property access) 56
Potential violation of Law of Demeter (object not created locally) 60

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/FileExtensionTag.java

Violation Line
Too many fields 55 - 379
The class 'FileExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 21). 55 - 379
The method doStartTag() has an NPath complexity of 1048576 80 - 155
The method 'doStartTag' has a Cyclomatic Complexity of 21. 80 - 155
Avoid empty if statements 138 - 140
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 204
The String literal "boolean" appears 4 times in this file; the first occurrence is on line 258 258

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/InExtensionTag.java

Violation Line
Too many fields 57 - 529
The class 'InExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 30). 57 - 529
Possible God class (WMC=59, ATFD=38, TCC=0.12183908045977011) 57 - 529
The method doStartTag() has an NPath complexity of 536870912 93 - 195
Avoid really long methods. 93 - 195
The method 'doStartTag' has a Cyclomatic Complexity of 30. 93 - 195
Avoid unused private fields such as 'LOG'. 204
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 290
The String literal "false" appears 5 times in this file; the first occurrence is on line 298 298
The String literal "boolean" appears 6 times in this file; the first occurrence is on line 298 298

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/LabelExtensionTag.java

Violation Line
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 74
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 75
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 76
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 77
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 78
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 80
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 81
Avoid if (x != y) ..; else ..; 110 - 114
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 119
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 173
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 182
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 191
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 201
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 205
Avoid if (x != y) ..; else ..; 206 - 212
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 236

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/MenuCheckboxExtensionTag.java

Violation Line
Too many fields 58 - 339
The class 'MenuCheckboxExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 15). 58 - 339
The method 'doStartTag' has a Cyclomatic Complexity of 15. 78 - 141
The method doStartTag() has an NPath complexity of 16384 78 - 141
Potential violation of Law of Demeter (object not created locally) 150
Avoid if (x != y) ..; else ..; 151 - 156
Potential violation of Law of Demeter (object not created locally) 152
Potential violation of Law of Demeter (method chain calls) 154
Potential violation of Law of Demeter (object not created locally) 154
Potential violation of Law of Demeter (object not created locally) 155
The String literal "boolean" appears 4 times in this file; the first occurrence is on line 252 252

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/MenuRadioExtensionTag.java

Violation Line
Too many fields 62 - 361
The class 'MenuRadioExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 16). 62 - 361
The method 'doStartTag' has a Cyclomatic Complexity of 16. 84 - 150
The method doStartTag() has an NPath complexity of 32768 84 - 150
Potential violation of Law of Demeter (object not created locally) 159
Avoid if (x != y) ..; else ..; 160 - 165
Potential violation of Law of Demeter (object not created locally) 161
Potential violation of Law of Demeter (object not created locally) 163
Potential violation of Law of Demeter (method chain calls) 163
Potential violation of Law of Demeter (object not created locally) 164
The String literal "boolean" appears 4 times in this file; the first occurrence is on line 258 258

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/SelectBooleanCheckboxExtensionTag.java

Violation Line
Possible God class (WMC=51, ATFD=31, TCC=0.13846153846153847) 41 - 436
The class 'SelectBooleanCheckboxExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 26). 41 - 436
Too many fields 41 - 436
The method doStartTag() has an NPath complexity of 33554432 70 - 162
The method 'doStartTag' has a Cyclomatic Complexity of 26. 70 - 162
Avoid if (x != y) ..; else ..; 137 - 141
The String literal "false" appears 4 times in this file; the first occurrence is on line 230 230
The String literal "boolean" appears 5 times in this file; the first occurrence is on line 230 230
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 268

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/SelectManyCheckboxExtensionTag.java

Violation Line
The class 'SelectManyCheckboxExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 27). 40 - 454
Too many fields 40 - 454
Possible God class (WMC=53, ATFD=33, TCC=0.1339031339031339) 40 - 454
The method doStartTag() has an NPath complexity of 67108864 71 - 168
The method 'doStartTag' has a Cyclomatic Complexity of 27. 71 - 168
The String literal "false" appears 5 times in this file; the first occurrence is on line 214 214
The String literal "boolean" appears 6 times in this file; the first occurrence is on line 214 214
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 294

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/SelectManyListboxExtensionTag.java

Violation Line
The class 'SelectManyListboxExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 25). 40 - 419
Too many fields 40 - 419
Possible God class (WMC=49, ATFD=31, TCC=0.14333333333333334) 40 - 419
The method 'doStartTag' has a Cyclomatic Complexity of 25. 68 - 156
The method doStartTag() has an NPath complexity of 16777216 68 - 156
The String literal "boolean" appears 5 times in this file; the first occurrence is on line 199 199
The String literal "false" appears 4 times in this file; the first occurrence is on line 199 199
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 272

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/SelectManyShuttleExtensionTag.java

Violation Line
The class 'SelectManyShuttleExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 27). 39 - 447
Too many fields 39 - 447
Possible God class (WMC=53, ATFD=33, TCC=0.1339031339031339) 39 - 447
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 41
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 42
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 44
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 45
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 46
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 47
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 49
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 50
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 51
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 52
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 53
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 54
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 56
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 57
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 58
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 59
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 60
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 61
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 62
The method 'doStartTag' has a Cyclomatic Complexity of 27. 69 - 163
The method doStartTag() has an NPath complexity of 67108864 69 - 163
The String literal "false" appears 4 times in this file; the first occurrence is on line 209 209
The String literal "boolean" appears 5 times in this file; the first occurrence is on line 209 209
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 210
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 219
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 245
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 254
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 263
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 273
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 282
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 291
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 300
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 330
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 340
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 350
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 359
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 370
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 380
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 386
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 395
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 404
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 413
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 422

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/SelectOneChoiceExtensionTag.java

Violation Line
Too many fields 41 - 419
The class 'SelectOneChoiceExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 25). 41 - 419
Possible God class (WMC=49, ATFD=30, TCC=0.14333333333333334) 41 - 419
The method 'doStartTag' has a Cyclomatic Complexity of 25. 69 - 156
The method doStartTag() has an NPath complexity of 16777216 69 - 156
The String literal "false" appears 4 times in this file; the first occurrence is on line 199 199
The String literal "boolean" appears 5 times in this file; the first occurrence is on line 199 199
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 302

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/SelectOneListboxExtensionTag.java

Violation Line
Too many fields 40 - 423
The class 'SelectOneListboxExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 25). 40 - 423
Possible God class (WMC=49, ATFD=31, TCC=0.14333333333333334) 40 - 423
The method doStartTag() has an NPath complexity of 16777216 68 - 159
The method 'doStartTag' has a Cyclomatic Complexity of 25. 68 - 159
The String literal "boolean" appears 5 times in this file; the first occurrence is on line 203 203
The String literal "false" appears 4 times in this file; the first occurrence is on line 203 203
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 276

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/SelectOneRadioExtensionTag.java

Violation Line
The class 'SelectOneRadioExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 27). 42 - 448
Possible God class (WMC=53, ATFD=32, TCC=0.1339031339031339) 42 - 448
Too many fields 42 - 448
The method 'doStartTag' has a Cyclomatic Complexity of 27. 72 - 166
The method doStartTag() has an NPath complexity of 67108864 72 - 166
The String literal "false" appears 5 times in this file; the first occurrence is on line 211 211
The String literal "boolean" appears 6 times in this file; the first occurrence is on line 211 211
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 322

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/TextareaExtensionTag.java

Violation Line
Too many fields 55 - 434
Possible God class (WMC=49, ATFD=31, TCC=0.14333333333333334) 55 - 434
The class 'TextareaExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 25). 55 - 434
The method doStartTag() has an NPath complexity of 16777216 83 - 171
The method 'doStartTag' has a Cyclomatic Complexity of 25. 83 - 171
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 249
The String literal "boolean" appears 5 times in this file; the first occurrence is on line 257 257
The String literal "false" appears 4 times in this file; the first occurrence is on line 257 257

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/TimeExtensionTag.java

Violation Line
Too many fields 54 - 432
The class 'TimeExtensionTag' has a Cyclomatic Complexity of 2 (Highest = 24). 54 - 432
Possible God class (WMC=48, ATFD=29, TCC=0.14) 54 - 432
Avoid unused private fields such as 'converter'. 57
The method 'doStartTag' has a Cyclomatic Complexity of 24. 82 - 169
The method doStartTag() has an NPath complexity of 8388608 82 - 169
Unnecessary use of fully qualified name 'javax.el.ValueExpression' due to existing import 'javax.el.ValueExpression' 257
The String literal "false" appears 4 times in this file; the first occurrence is on line 265 265
The String literal "boolean" appears 5 times in this file; the first occurrence is on line 265 265

Tobago Core - org/apache/myfaces/tobago/internal/taglib/extension/TobagoExtensionBodyTagSupport.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 35 - 36
Potential violation of Law of Demeter (method chain calls) 35 - 36
Potential violation of Law of Demeter (method chain calls) 35 - 36

Tobago Core - org/apache/myfaces/tobago/internal/util/AccessKeyLogger.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 46
Potential violation of Law of Demeter (method chain calls) 47
Potential violation of Law of Demeter (method chain calls) 47
Potential violation of Law of Demeter (method chain calls) 50
Potential violation of Law of Demeter (method chain calls) 50
Parameter 'clientId' is not assigned and could be declared final 55
Local variable 'entry' could be declared final 76
Potential violation of Law of Demeter (object not created locally) 76
Potential violation of Law of Demeter (object not created locally) 84

Tobago Core - org/apache/myfaces/tobago/internal/util/ArrayUtils.java

Violation Line
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 22 - 34

Tobago Core - org/apache/myfaces/tobago/internal/util/ComponentAttributeUtils.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 38
Potential violation of Law of Demeter (method chain calls) 48
Useless parentheses. 60
Potential violation of Law of Demeter (method chain calls) 68
Potential violation of Law of Demeter (method chain calls) 68

Tobago Core - org/apache/myfaces/tobago/internal/util/ContentType.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 51
Potential violation of Law of Demeter (method chain calls) 51

Tobago Core - org/apache/myfaces/tobago/internal/util/DateFormatUtils.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 63
Potential violation of Law of Demeter (object not created locally) 86

Tobago Core - org/apache/myfaces/tobago/internal/util/Deprecation.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 49

Tobago Core - org/apache/myfaces/tobago/internal/util/FacesContextUtils.java

Violation Line
This class has too many methods, consider refactoring it. 33 - 280
Potential violation of Law of Demeter (method chain calls) 54
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (method chain calls) 62
Potential violation of Law of Demeter (method chain calls) 66
Potential violation of Law of Demeter (method chain calls) 70
Potential violation of Law of Demeter (method chain calls) 74
Potential violation of Law of Demeter (method chain calls) 79
Potential violation of Law of Demeter (method chain calls) 83
Potential violation of Law of Demeter (method chain calls) 87
Potential violation of Law of Demeter (method chain calls) 91
Potential violation of Law of Demeter (method chain calls) 95
Potential violation of Law of Demeter (method chain calls) 103
Potential violation of Law of Demeter (method chain calls) 106
Potential violation of Law of Demeter (method chain calls) 113
Potential violation of Law of Demeter (method chain calls) 121
Potential violation of Law of Demeter (method chain calls) 124
Potential violation of Law of Demeter (method chain calls) 131
Potential violation of Law of Demeter (method chain calls) 139
Potential violation of Law of Demeter (method chain calls) 142
Potential violation of Law of Demeter (method chain calls) 148
Potential violation of Law of Demeter (method chain calls) 156
Potential violation of Law of Demeter (method chain calls) 159
Potential violation of Law of Demeter (method chain calls) 165
Potential violation of Law of Demeter (method chain calls) 174
Potential violation of Law of Demeter (method chain calls) 177
Potential violation of Law of Demeter (method chain calls) 183
Potential violation of Law of Demeter (method chain calls) 186
Potential violation of Law of Demeter (method chain calls) 192
Potential violation of Law of Demeter (method chain calls) 200
Potential violation of Law of Demeter (method chain calls) 203
Potential violation of Law of Demeter (method chain calls) 209
Potential violation of Law of Demeter (method chain calls) 217
Potential violation of Law of Demeter (method chain calls) 220
Potential violation of Law of Demeter (method chain calls) 226
Potential violation of Law of Demeter (method chain calls) 234
Potential violation of Law of Demeter (method chain calls) 237
Potential violation of Law of Demeter (method chain calls) 243
Potential violation of Law of Demeter (object not created locally) 244
Potential violation of Law of Demeter (method chain calls) 248
Potential violation of Law of Demeter (method chain calls) 256
Potential violation of Law of Demeter (method chain calls) 259
Potential violation of Law of Demeter (method chain calls) 265
Potential violation of Law of Demeter (method chain calls) 273
Potential violation of Law of Demeter (method chain calls) 276

Tobago Core - org/apache/myfaces/tobago/internal/util/FastStringWriter.java

Violation Line
StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 27

Tobago Core - org/apache/myfaces/tobago/internal/util/FindComponentUtils.java

Violation Line
Parameter 'from' is not assigned and could be declared final 41
Parameter 'relativeId' is not assigned and could be declared final 41

Tobago Core - org/apache/myfaces/tobago/internal/util/HtmlWriterUtils.java

Violation Line
The class 'HtmlWriterUtils' has a Cyclomatic Complexity of 9 (Highest = 14). 25 - 122
The method 'writeEncodedValue' has a Cyclomatic Complexity of 14. 60 - 121
Potential violation of Law of Demeter (object not created locally) 77
Potential violation of Law of Demeter (object not created locally) 80
Useless parentheses. 89
Potential violation of Law of Demeter (object not created locally) 92
Avoid if (x != y) ..; else ..; 93 - 97
Potential violation of Law of Demeter (method chain calls) 94
Potential violation of Law of Demeter (object not created locally) 94
Potential violation of Law of Demeter (object not created locally) 96
Potential violation of Law of Demeter (object not created locally) 99
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (object not created locally) 104
Potential violation of Law of Demeter (object not created locally) 106
Potential violation of Law of Demeter (object not created locally) 107
Potential violation of Law of Demeter (object not created locally) 109
Potential violation of Law of Demeter (object not created locally) 119

Tobago Core - org/apache/myfaces/tobago/internal/util/IoUtils.java

Violation Line
Avoid empty catch blocks 35 - 37

Tobago Core - org/apache/myfaces/tobago/internal/util/JavascriptWriterUtils.java

Violation Line
The class 'JavascriptWriterUtils' has a Cyclomatic Complexity of 9 (Highest = 14). 25 - 120
The method 'writeEncodedValue' has a Cyclomatic Complexity of 14. 58 - 119
Potential violation of Law of Demeter (object not created locally) 75
Potential violation of Law of Demeter (object not created locally) 78
Useless parentheses. 87
Potential violation of Law of Demeter (object not created locally) 90
Avoid if (x != y) ..; else ..; 91 - 95
Potential violation of Law of Demeter (method chain calls) 92
Potential violation of Law of Demeter (object not created locally) 92
Potential violation of Law of Demeter (object not created locally) 94
Potential violation of Law of Demeter (object not created locally) 97
Potential violation of Law of Demeter (object not created locally) 100
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (object not created locally) 104
Potential violation of Law of Demeter (object not created locally) 105
Potential violation of Law of Demeter (object not created locally) 107
Potential violation of Law of Demeter (object not created locally) 117

Tobago Core - org/apache/myfaces/tobago/internal/util/JndiUtils.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 46
Potential violation of Law of Demeter (object not created locally) 51
Prefer StringBuffer over += for concatenating strings 57
Potential violation of Law of Demeter (object not created locally) 66
Potential violation of Law of Demeter (object not created locally) 67
Potential violation of Law of Demeter (object not created locally) 69
Potential violation of Law of Demeter (object not created locally) 71

Tobago Core - org/apache/myfaces/tobago/internal/util/JsonWriterUtils.java

Violation Line
The class 'JsonWriterUtils' has a Cyclomatic Complexity of 9 (Highest = 14). 26 - 125
The method 'writeEncodedValue' has a Cyclomatic Complexity of 14. 63 - 124
Potential violation of Law of Demeter (object not created locally) 80
Potential violation of Law of Demeter (object not created locally) 83
Useless parentheses. 92
Potential violation of Law of Demeter (object not created locally) 95
Avoid if (x != y) ..; else ..; 96 - 100
Potential violation of Law of Demeter (object not created locally) 97
Potential violation of Law of Demeter (method chain calls) 97
Potential violation of Law of Demeter (object not created locally) 99
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (object not created locally) 105
Potential violation of Law of Demeter (object not created locally) 107
Potential violation of Law of Demeter (object not created locally) 109
Potential violation of Law of Demeter (object not created locally) 110
Potential violation of Law of Demeter (object not created locally) 112
Potential violation of Law of Demeter (object not created locally) 122

Tobago Core - org/apache/myfaces/tobago/internal/util/MimeTypeUtils.java

Violation Line
The class 'MimeTypeUtils' has a Cyclomatic Complexity of 6 (Highest = 10). 22 - 49
The method 'getMimeTypeForFile' has a Cyclomatic Complexity of 10. 29 - 48

Tobago Core - org/apache/myfaces/tobago/internal/util/NumberUtils.java

Violation Line
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 22 - 34
Useless parentheses. 24
Useless parentheses. 24

Tobago Core - org/apache/myfaces/tobago/internal/util/ObjectUtils.java

Violation Line
A class which only has private constructors should be final 22 - 32
Parameter 'o2' is not assigned and could be declared final 29
Parameter 'o1' is not assigned and could be declared final 29
Use equals() to compare object references. 30

Tobago Core - org/apache/myfaces/tobago/internal/util/ResponseUtils.java

Violation Line
The class 'ResponseUtils' has a Cyclomatic Complexity of 3 (Highest = 10). 33 - 145
Potential violation of Law of Demeter (method chain calls) 42
Potential violation of Law of Demeter (method chain calls) 59
Potential violation of Law of Demeter (method chain calls) 63
Avoid if (x != y) ..; else ..; 72 - 83
The method 'ensureContentSecurityPolicyHeader' has a Cyclomatic Complexity of 10. 97 - 132
Potential violation of Law of Demeter (method chain calls) 99
Avoid declaring a variable if it is unreferenced before a possible exit point. 101
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (object not created locally) 109
Potential violation of Law of Demeter (object not created locally) 112
Avoid appending characters as strings in StringBuffer.append. 120
Potential violation of Law of Demeter (object not created locally) 124
These nested if statements could be combined 128 - 130
Potential violation of Law of Demeter (method chain calls) 135

Tobago Core - org/apache/myfaces/tobago/internal/util/ResponseWriterBuffer.java

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

Tobago Core - org/apache/myfaces/tobago/internal/util/StringUtils.java

Violation Line
This class has too many methods, consider refactoring it. 27 - 478
Possible God class (WMC=105, ATFD=9, TCC=0.0) 27 - 478
The class 'StringUtils' has a Cyclomatic Complexity of 5 (Highest = 18). 27 - 478
Potential violation of Law of Demeter (method chain calls) 43
Potential violation of Law of Demeter (object not created locally) 44
Avoid instantiating new objects inside loops 45
Avoid instantiating Integer objects. Call Integer.valueOf() instead. 45
Avoid appending characters as strings in StringBuffer.append. 57
Potential violation of Law of Demeter (object not created locally) 66
Potential violation of Law of Demeter (method chain calls) 67
Potential violation of Law of Demeter (object not created locally) 67
Potential violation of Law of Demeter (object not created locally) 68
Potential violation of Law of Demeter (object not created locally) 70
Potential violation of Law of Demeter (method chain calls) 72
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (method chain calls) 72
Potential violation of Law of Demeter (method chain calls) 73
Potential violation of Law of Demeter (method chain calls) 73
Potential violation of Law of Demeter (object not created locally) 73
Potential violation of Law of Demeter (object not created locally) 76
Potential violation of Law of Demeter (object not created locally) 80
Potential violation of Law of Demeter (object not created locally) 86
Potential violation of Law of Demeter (object not created locally) 88
Potential violation of Law of Demeter (method chain calls) 98
Potential violation of Law of Demeter (method chain calls) 100
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (method chain calls) 102
Useless parentheses. 102
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (method chain calls) 102
The method 'equalsIgnoreCaseAndWhitespace' has a Cyclomatic Complexity of 14. 113 - 167
The method equalsIgnoreCaseAndWhitespace() has an NPath complexity of 378 113 - 167
Use equals() to compare object references. 116
Potential violation of Law of Demeter (method chain calls) 133
Potential violation of Law of Demeter (method chain calls) 133
Potential violation of Law of Demeter (method chain calls) 137
Potential violation of Law of Demeter (method chain calls) 140
Potential violation of Law of Demeter (method chain calls) 149
Potential violation of Law of Demeter (method chain calls) 158
Useless parentheses. 174
Potential violation of Law of Demeter (object not created locally) 203
Potential violation of Law of Demeter (object not created locally) 213
Potential violation of Law of Demeter (object not created locally) 215
The method 'split' has a Cyclomatic Complexity of 18. 221 - 296
Avoid declaring a variable if it is unreferenced before a possible exit point. 222
Potential violation of Law of Demeter (object not created locally) 247
Potential violation of Law of Demeter (object not created locally) 265
Potential violation of Law of Demeter (object not created locally) 282
Potential violation of Law of Demeter (object not created locally) 293
Potential violation of Law of Demeter (object not created locally) 295
Useless parentheses. 340
The method replace() has an NPath complexity of 1080 357 - 382
The method 'replace' has a Cyclomatic Complexity of 10. 357 - 382
Avoid declaring a variable if it is unreferenced before a possible exit point. 358
Useless parentheses. 369
Useless parentheses. 370
Useless parentheses. 370
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 371
Potential violation of Law of Demeter (object not created locally) 373
Potential violation of Law of Demeter (method chain calls) 373
Potential violation of Law of Demeter (object not created locally) 380
Potential violation of Law of Demeter (object not created locally) 381
No need to call String.valueOf to append to a string. 413
Potential violation of Law of Demeter (method chain calls) 438
Local variable 'colon' could be declared final 467

Tobago Core - org/apache/myfaces/tobago/internal/util/WriterUtils.java

Violation Line
Useless parentheses. 172
Useless parentheses. 174
Useless parentheses. 176
Useless parentheses. 178
Useless parentheses. 182
Useless parentheses. 184
Useless parentheses. 186
Useless parentheses. 190
Useless parentheses. 192

Tobago Core - org/apache/myfaces/tobago/internal/webapp/DebugContentTypeFilter.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 39
Potential violation of Law of Demeter (method chain calls) 39
Potential violation of Law of Demeter (method chain calls) 46
Potential violation of Law of Demeter (method chain calls) 46
Potential violation of Law of Demeter (method chain calls) 50
Potential violation of Law of Demeter (method chain calls) 50
Document empty method 58 - 60

Tobago Core - org/apache/myfaces/tobago/internal/webapp/DebugContentTypeResponse.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 54
These nested if statements could be combined 55 - 57
Potential violation of Law of Demeter (method chain calls) 64
These nested if statements could be combined 65 - 67

Tobago Core - org/apache/myfaces/tobago/internal/webapp/DebugResponseWriterWrapper.java

Violation Line
This class has too many methods, consider refactoring it. 37 - 188
Private field 'stack' could be made final; it is only initialized in the declaration or constructor. 39
Potential violation of Law of Demeter (object not created locally) 55
Potential violation of Law of Demeter (static property access) 97
Potential violation of Law of Demeter (object not created locally) 182

Tobago Core - org/apache/myfaces/tobago/internal/webapp/HtmlResponseWriter.java

Violation Line
This class has too many methods, consider refactoring it. 39 - 183
Private field 'javascriptWriter' could be made final; it is only initialized in the declaration or constructor. 45
Avoid empty if statements 119 - 121
Potential violation of Law of Demeter (method chain calls) 128
Potential violation of Law of Demeter (method chain calls) 136
Avoid reassigning parameters such as 'styles' 149
Potential violation of Law of Demeter (method chain calls) 152
Potential violation of Law of Demeter (method chain calls) 159
Potential violation of Law of Demeter (method chain calls) 160

Tobago Core - org/apache/myfaces/tobago/internal/webapp/JsonResponseWriter.java

Violation Line
This class has too many methods, consider refactoring it. 34 - 191
Private field 'javascriptWriter' could be made final; it is only initialized in the declaration or constructor. 38
Private field 'encodeInJavascriptBlock' could be made final; it is only initialized in the declaration or constructor. 40
Private field 'encodeOutsideJavascriptBlock' could be made final; it is only initialized in the declaration or constructor. 41
Consider using varargs for methods or constructors which take an array the last parameter. 75
Potential violation of Law of Demeter (method chain calls) 81
Potential violation of Law of Demeter (method chain calls) 82
Potential violation of Law of Demeter (method chain calls) 82
Potential violation of Law of Demeter (method chain calls) 82
Potential violation of Law of Demeter (method chain calls) 130
Potential violation of Law of Demeter (object not created locally) 144
Potential violation of Law of Demeter (object not created locally) 144
Potential violation of Law of Demeter (method chain calls) 155
Potential violation of Law of Demeter (method chain calls) 167
Document empty method 185 - 186
Document empty method 189 - 190

Tobago Core - org/apache/myfaces/tobago/internal/webapp/TobagoMultipartFormdataRequest.java

Violation Line
The class 'TobagoMultipartFormdataRequest' has a Cyclomatic Complexity of 3 (Highest = 13). 43 - 200
The method 'init' has a Cyclomatic Complexity of 13. 65 - 134
The method init() has an NPath complexity of 401 65 - 134
Avoid if (x != y) ..; else ..; 66 - 133
Potential violation of Law of Demeter (object not created locally) 79
Potential violation of Law of Demeter (object not created locally) 81
Potential violation of Law of Demeter (object not created locally) 83
Potential violation of Law of Demeter (object not created locally) 87
Potential violation of Law of Demeter (method chain calls) 93
Potential violation of Law of Demeter (object not created locally) 93
Potential violation of Law of Demeter (method chain calls) 93
Potential violation of Law of Demeter (object not created locally) 96
Potential violation of Law of Demeter (object not created locally) 98
Potential violation of Law of Demeter (object not created locally) 99
Potential violation of Law of Demeter (object not created locally) 100
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (object not created locally) 103
Potential violation of Law of Demeter (object not created locally) 105
Potential violation of Law of Demeter (object not created locally) 109
Potential violation of Law of Demeter (object not created locally) 111
Potential violation of Law of Demeter (object not created locally) 112
Potential violation of Law of Demeter (object not created locally) 123
Potential violation of Law of Demeter (object not created locally) 124
Potential violation of Law of Demeter (object not created locally) 181
Potential violation of Law of Demeter (object not created locally) 183
Potential violation of Law of Demeter (object not created locally) 183
Potential violation of Law of Demeter (object not created locally) 184
Potential violation of Law of Demeter (object not created locally) 186
Potential violation of Law of Demeter (object not created locally) 186
Potential violation of Law of Demeter (object not created locally) 187
Potential violation of Law of Demeter (object not created locally) 189
Potential violation of Law of Demeter (object not created locally) 189
Potential violation of Law of Demeter (object not created locally) 192
Potential violation of Law of Demeter (method chain calls) 194 - 195
Potential violation of Law of Demeter (method chain calls) 195

Tobago Core - org/apache/myfaces/tobago/internal/webapp/TobagoResponseWriterBase.java

Violation Line
This class has too many methods, consider refactoring it. 36 - 329
Possible God class (WMC=49, ATFD=12, TCC=0.07142857142857142) 36 - 329
Avoid if (x != y) ..; else ..; 75
Avoid if (x != y) ..; else ..; 99 - 126
Avoid if (x != y) ..; else ..; 101 - 126
Avoid if (x != y) ..; else ..; 102 - 117
Potential violation of Law of Demeter (method chain calls) 103
Avoid if (x != y) ..; else ..; 104 - 108
Potential violation of Law of Demeter (object not created locally) 105
Potential violation of Law of Demeter (object not created locally) 113
Potential violation of Law of Demeter (object not created locally) 113
Potential violation of Law of Demeter (object not created locally) 122
Potential violation of Law of Demeter (object not created locally) 122
Consider using varargs for methods or constructors which take an array the last parameter. 151
An empty method in an abstract class should be abstract instead 189 - 191
An empty method in an abstract class should be abstract instead 193 - 195
Potential violation of Law of Demeter (method chain calls) 246
Potential violation of Law of Demeter (method chain calls) 246
Potential violation of Law of Demeter (method chain calls) 246
Potential violation of Law of Demeter (method chain calls) 249
Potential violation of Law of Demeter (method chain calls) 249
Potential violation of Law of Demeter (object not created locally) 256
Potential violation of Law of Demeter (static property access) 276
Potential violation of Law of Demeter (static property access) 285
Potential violation of Law of Demeter (object not created locally) 313
Potential violation of Law of Demeter (object not created locally) 313

Tobago Core - org/apache/myfaces/tobago/internal/webapp/TobagoResponseWriterWrapper.java

Violation Line
This class has too many methods, consider refactoring it. 32 - 125
Private field 'responseWriter' could be made final; it is only initialized in the declaration or constructor. 34
Potential violation of Law of Demeter (static property access) 90

Tobago Core - org/apache/myfaces/tobago/internal/webapp/XmlResponseWriter.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 51
Avoid empty if statements 57 - 59
Potential violation of Law of Demeter (method chain calls) 71
Potential violation of Law of Demeter (method chain calls) 76
Potential violation of Law of Demeter (method chain calls) 81
Potential violation of Law of Demeter (method chain calls) 82

Tobago Core - org/apache/myfaces/tobago/layout/Box.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 49
Potential violation of Law of Demeter (method chain calls) 56

Tobago Core - org/apache/myfaces/tobago/layout/LayoutTokens.java

Violation Line
This class has too many methods, consider refactoring it. 31 - 170
The class 'LayoutTokens' has a Cyclomatic Complexity of 2 (Highest = 10). 31 - 170
Private field 'tokens' could be made final; it is only initialized in the declaration or constructor. 35
Document empty constructor 37 - 38
Consider using varargs for methods or constructors which take an array the last parameter. 80
Potential violation of Law of Demeter (method chain calls) 101
The method 'parseToken' has a Cyclomatic Complexity of 10. 114 - 139
Potential violation of Law of Demeter (method chain calls) 116
Potential violation of Law of Demeter (method chain calls) 121
Potential violation of Law of Demeter (method chain calls) 121
Potential violation of Law of Demeter (method chain calls) 123
Avoid appending characters as strings in StringBuffer.append. 165

Tobago Core - org/apache/myfaces/tobago/layout/Measure.java

Violation Line
Possible God class (WMC=51, ATFD=9, TCC=0.008333333333333333) 32 - 203
This class has too many methods, consider refactoring it. 32 - 203
Avoid unused private fields such as 'LOG'. 36
Potential violation of Law of Demeter (object not created locally) 162
Potential violation of Law of Demeter (object not created locally) 175
Avoid if (x != y) ..; else ..; 186 - 190
Avoid if (x != y) ..; else ..; 189
Avoid if (x != y) ..; else ..; 197 - 201
Avoid if (x != y) ..; else ..; 200

Tobago Core - org/apache/myfaces/tobago/layout/PercentLayoutToken.java

Violation Line
Avoid using redundant field initializer for 'percent' 26
Private field 'percent' could be made final; it is only initialized in the declaration or constructor. 26

Tobago Core - org/apache/myfaces/tobago/layout/PixelMeasure.java

Violation Line
This class has too many methods, consider refactoring it. 25 - 131
Avoid instantiating new objects inside loops 35
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 39

Tobago Core - org/apache/myfaces/tobago/layout/RelativeLayoutToken.java

Violation Line
Private field 'factor' could be made final; it is only initialized in the declaration or constructor. 29

Tobago Core - org/apache/myfaces/tobago/layout/TextAlign.java

Violation Line
Avoid if (x != y) ..; else ..; 64 - 68

Tobago Core - org/apache/myfaces/tobago/lifecycle/SecretPhaseListener.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 38
Potential violation of Law of Demeter (object not created locally) 39
Potential violation of Law of Demeter (method chain calls) 40
Potential violation of Law of Demeter (object not created locally) 45
Document empty method 49 - 50

Tobago Core - org/apache/myfaces/tobago/model/CalendarModel.java

Violation Line
Private field 'calendarArray' could be made final; it is only initialized in the declaration or constructor. 28
Private field 'firstDayOffset' could be made final; it is only initialized in the declaration or constructor. 29
Avoid instantiating new objects inside loops 43
Potential violation of Law of Demeter (method chain calls) 54
Potential violation of Law of Demeter (method chain calls) 54
Potential violation of Law of Demeter (method chain calls) 54
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (object not created locally) 67
Potential violation of Law of Demeter (object not created locally) 68
Potential violation of Law of Demeter (object not created locally) 69
Potential violation of Law of Demeter (object not created locally) 70
Potential violation of Law of Demeter (method chain calls) 77
Potential violation of Law of Demeter (method chain calls) 77
Avoid appending characters as strings in StringBuffer.append. 77
When instantiating a SimpleDateFormat object, specify a Locale 80
Potential violation of Law of Demeter (method chain calls) 83
Potential violation of Law of Demeter (method chain calls) 83
Potential violation of Law of Demeter (object not created locally) 83
Avoid appending characters as strings in StringBuffer.append. 84
Potential violation of Law of Demeter (object not created locally) 84
Potential violation of Law of Demeter (method chain calls) 84
Avoid appending characters as strings in StringBuffer.append. 86
Avoid appending characters as strings in StringBuffer.append. 90
Potential violation of Law of Demeter (object not created locally) 90
Potential violation of Law of Demeter (method chain calls) 90
Avoid appending characters as strings in StringBuffer.append. 92

Tobago Core - org/apache/myfaces/tobago/model/DateModel.java

Violation Line
Avoid if (x != y) ..; else ..; 72 - 73
Potential violation of Law of Demeter (object not created locally) 74

Tobago Core - org/apache/myfaces/tobago/model/ExpandedState.java

Violation Line
Private field 'expandedSet' could be made final; it is only initialized in the declaration or constructor. 37
Private field 'collapsedSet' could be made final; it is only initialized in the declaration or constructor. 38
Potential violation of Law of Demeter (object not created locally) 112
Potential violation of Law of Demeter (object not created locally) 120
Avoid reassigning parameters such as 'level' 164
Potential violation of Law of Demeter (object not created locally) 173
Potential violation of Law of Demeter (object not created locally) 181

Tobago Core - org/apache/myfaces/tobago/model/MixedTreeModel.java

Violation Line
Private field 'junctions' could be made final; it is only initialized in the declaration or constructor. 39
Potential violation of Law of Demeter (method chain calls) 64
Potential violation of Law of Demeter (object not created locally) 71
Potential violation of Law of Demeter (object not created locally) 77

Tobago Core - org/apache/myfaces/tobago/model/Node.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 65
Potential violation of Law of Demeter (object not created locally) 93
Potential violation of Law of Demeter (object not created locally) 94
Potential violation of Law of Demeter (object not created locally) 96
Potential violation of Law of Demeter (object not created locally) 98

Tobago Core - org/apache/myfaces/tobago/model/SelectItem.java

Violation Line
Avoid using redundant field initializer for 'currentMarkup' 31
Consider using varargs for methods or constructors which take an array the last parameter. 58
Consider using varargs for methods or constructors which take an array the last parameter. 77
Parameter 'tip' is not assigned and could be declared final 99

Tobago Core - org/apache/myfaces/tobago/model/Selectable.java

Violation Line
Avoid if (x != y) ..; else ..; 127 - 131

Tobago Core - org/apache/myfaces/tobago/model/SelectedState.java

Violation Line
Private field 'selected' could be made final; it is only initialized in the declaration or constructor. 32

Tobago Core - org/apache/myfaces/tobago/model/SheetState.java

Violation Line
Overridable method 'resetSelected' called during object construction 50
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (method chain calls) 102
Potential violation of Law of Demeter (object not created locally) 106
Consider using varargs for methods or constructors which take an array the last parameter. 114
String.indexOf(char) is faster than String.indexOf(String). 147
Do not add empty strings 149

Tobago Core - org/apache/myfaces/tobago/model/SuggestFilter.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 33
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 40

Tobago Core - org/apache/myfaces/tobago/model/TreeNodeDataModel.java

Violation Line
Private field 'mapping' could be made final; it is only initialized in the declaration or constructor. 43
Private field 'back' could be made final; it is only initialized in the declaration or constructor. 44
Private field 'showRoot' could be made final; it is only initialized in the declaration or constructor. 45
Overridable method 'reset' called during object construction 59
Avoid instantiating new objects inside loops 69
Avoid instantiation through private constructors from outside of the constructors class. 69
Potential violation of Law of Demeter (object not created locally) 73
Potential violation of Law of Demeter (object not created locally) 74
Avoid instantiating new objects inside loops 89
Avoid instantiation through private constructors from outside of the constructors class. 89
Potential violation of Law of Demeter (object not created locally) 95
Potential violation of Law of Demeter (object not created locally) 96
Avoid reassigning parameters such as 'node' 103
Potential violation of Law of Demeter (object not created locally) 124
Potential violation of Law of Demeter (object not created locally) 125
Potential violation of Law of Demeter (object not created locally) 126
Potential violation of Law of Demeter (method chain calls) 138
Potential violation of Law of Demeter (object not created locally) 149
Potential violation of Law of Demeter (method chain calls) 163
Potential violation of Law of Demeter (method chain calls) 170
Potential violation of Law of Demeter (object not created locally) 199
Potential violation of Law of Demeter (object not created locally) 202
Potential violation of Law of Demeter (method chain calls) 205
Potential violation of Law of Demeter (object not created locally) 205
Avoid instantiating new objects inside loops 208
Potential violation of Law of Demeter (object not created locally) 211
Potential violation of Law of Demeter (method chain calls) 218
Potential violation of Law of Demeter (method chain calls) 226
Potential violation of Law of Demeter (method chain calls) 234
Potential violation of Law of Demeter (method chain calls) 234
Avoid if (x != y) ..; else ..; 235 - 239
Potential violation of Law of Demeter (method chain calls) 236
Potential violation of Law of Demeter (object not created locally) 247
Potential violation of Law of Demeter (object not created locally) 250
Potential violation of Law of Demeter (object not created locally) 263
Potential violation of Law of Demeter (object not created locally) 264
Potential violation of Law of Demeter (object not created locally) 272
Potential violation of Law of Demeter (object not created locally) 272
Private field 'node' could be made final; it is only initialized in the declaration or constructor. 281

Tobago Core - org/apache/myfaces/tobago/model/TreePath.java

Violation Line
Avoid reassigning parameters such as 'node' 90
Avoid appending characters as strings in StringBuffer.append. 129
Avoid appending characters as strings in StringBuffer.append. 142
Potential violation of Law of Demeter (method chain calls) 143
Avoid reassigning parameters such as 'tree' 156
Avoid if (x != y) ..; else ..; 185

Tobago Core - org/apache/myfaces/tobago/model/TreeSelectable.java

Violation Line
Avoid if (x != y) ..; else ..; 70 - 74

Tobago Core - org/apache/myfaces/tobago/model/TreeState.java

Violation Line
Private field 'expandedState' could be made final; it is only initialized in the declaration or constructor. 26
Private field 'selectedState' could be made final; it is only initialized in the declaration or constructor. 27

Tobago Core - org/apache/myfaces/tobago/model/Wizard.java

Violation Line
Overridable method 'reset' called during object construction 38
Potential violation of Law of Demeter (method chain calls) 48
Potential violation of Law of Demeter (method chain calls) 48
Potential violation of Law of Demeter (method chain calls) 48
Useless parentheses. 48
Potential violation of Law of Demeter (method chain calls) 48
Potential violation of Law of Demeter (method chain calls) 59

Tobago Core - org/apache/myfaces/tobago/model/WizardStep.java

Violation Line
StringBuffer constructor is initialized with size 16, but has at least 21 characters appended. 57
Avoid appending characters as strings in StringBuffer.append. 58
Avoid appending characters as strings in StringBuffer.append. 64

Tobago Core - org/apache/myfaces/tobago/renderkit/AbstractAjaxRendererBaseWrapper.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 32

Tobago Core - org/apache/myfaces/tobago/renderkit/AbstractLayoutRendererWrapper.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 32
Potential violation of Law of Demeter (method chain calls) 36
Potential violation of Law of Demeter (method chain calls) 40
Potential violation of Law of Demeter (method chain calls) 44
Potential violation of Law of Demeter (method chain calls) 48
Potential violation of Law of Demeter (method chain calls) 52

Tobago Core - org/apache/myfaces/tobago/renderkit/AbstractLayoutableRendererBaseWrapper.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 32
Potential violation of Law of Demeter (method chain calls) 36
Potential violation of Law of Demeter (method chain calls) 40
Potential violation of Law of Demeter (method chain calls) 44
Potential violation of Law of Demeter (method chain calls) 48
Potential violation of Law of Demeter (method chain calls) 52
Potential violation of Law of Demeter (method chain calls) 56
Potential violation of Law of Demeter (method chain calls) 60
Potential violation of Law of Demeter (method chain calls) 64
Potential violation of Law of Demeter (method chain calls) 68
Potential violation of Law of Demeter (method chain calls) 72
Potential violation of Law of Demeter (method chain calls) 76
Potential violation of Law of Demeter (method chain calls) 80
Potential violation of Law of Demeter (method chain calls) 84
Potential violation of Law of Demeter (method chain calls) 88
Potential violation of Law of Demeter (method chain calls) 92
Potential violation of Law of Demeter (method chain calls) 96
Potential violation of Law of Demeter (method chain calls) 100
Potential violation of Law of Demeter (method chain calls) 104
Potential violation of Law of Demeter (method chain calls) 108
Potential violation of Law of Demeter (method chain calls) 112
Potential violation of Law of Demeter (method chain calls) 116

Tobago Core - org/apache/myfaces/tobago/renderkit/AbstractRendererBaseWrapper.java

Violation Line
Avoid unused private fields such as 'LOG'. 35
Potential violation of Law of Demeter (method chain calls) 40
Potential violation of Law of Demeter (method chain calls) 45
Potential violation of Law of Demeter (method chain calls) 49
Potential violation of Law of Demeter (method chain calls) 53
Potential violation of Law of Demeter (method chain calls) 58
Potential violation of Law of Demeter (method chain calls) 63
Potential violation of Law of Demeter (method chain calls) 68
Potential violation of Law of Demeter (method chain calls) 73
Potential violation of Law of Demeter (method chain calls) 78
Potential violation of Law of Demeter (method chain calls) 83
Potential violation of Law of Demeter (method chain calls) 90
Potential violation of Law of Demeter (method chain calls) 95
Potential violation of Law of Demeter (method chain calls) 100
Potential violation of Law of Demeter (method chain calls) 105
Potential violation of Law of Demeter (method chain calls) 110
Potential violation of Law of Demeter (method chain calls) 114 - 115

Tobago Core - org/apache/myfaces/tobago/renderkit/HtmlUtils.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 45
Useless parentheses. 45
Potential violation of Law of Demeter (method chain calls) 52
Avoid if (x != y) ..; else ..; 53 - 54
Potential violation of Law of Demeter (object not created locally) 54
Potential violation of Law of Demeter (method chain calls) 77
Potential violation of Law of Demeter (object not created locally) 79

Tobago Core - org/apache/myfaces/tobago/renderkit/InputRendererBase.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 54
Potential violation of Law of Demeter (object not created locally) 55
Potential violation of Law of Demeter (object not created locally) 56
Local variable 'textarea' could be declared final 63
Potential violation of Law of Demeter (object not created locally) 65
Potential violation of Law of Demeter (method chain calls) 65
Potential violation of Law of Demeter (method chain calls) 66
Potential violation of Law of Demeter (object not created locally) 67
Potential violation of Law of Demeter (object not created locally) 71

Tobago Core - org/apache/myfaces/tobago/renderkit/LabelWithAccessKey.java

Violation Line
The class 'LabelWithAccessKey' has a Cyclomatic Complexity of 3 (Highest = 17). 32 - 218
Avoid unused private fields such as 'ESCAPED_INDICATOR'. 37
The constructor 'LabelWithAccessKey' has a Cyclomatic Complexity of 17. 59 - 132
Local variable 'auto' could be declared final 84
These nested if statements could be combined 101 - 109
Deeply nested if..then statements are hard to read 101 - 109
Potential violation of Law of Demeter (static property access) 164
Potential violation of Law of Demeter (static property access) 172
Potential violation of Law of Demeter (static property access) 200
Parameter 'accessKey' is not assigned and could be declared final 207
Potential violation of Law of Demeter (static property access) 208

Tobago Core - org/apache/myfaces/tobago/renderkit/LayoutComponentRendererBase.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 32
Potential violation of Law of Demeter (method chain calls) 36
Potential violation of Law of Demeter (method chain calls) 40
Potential violation of Law of Demeter (method chain calls) 44
Potential violation of Law of Demeter (method chain calls) 48
Potential violation of Law of Demeter (method chain calls) 52
Potential violation of Law of Demeter (method chain calls) 56
Potential violation of Law of Demeter (method chain calls) 60
Potential violation of Law of Demeter (method chain calls) 64
Potential violation of Law of Demeter (method chain calls) 68
Potential violation of Law of Demeter (method chain calls) 72
Potential violation of Law of Demeter (method chain calls) 76
Potential violation of Law of Demeter (method chain calls) 80
Potential violation of Law of Demeter (method chain calls) 84
Potential violation of Law of Demeter (method chain calls) 88
Potential violation of Law of Demeter (method chain calls) 92
Potential violation of Law of Demeter (method chain calls) 96
Potential violation of Law of Demeter (method chain calls) 100
Potential violation of Law of Demeter (method chain calls) 104
Potential violation of Law of Demeter (method chain calls) 108
Potential violation of Law of Demeter (method chain calls) 112
Potential violation of Law of Demeter (object not created locally) 117
Avoid if (x != y) ..; else ..; 118 - 122
Potential violation of Law of Demeter (method chain calls) 121

Tobago Core - org/apache/myfaces/tobago/renderkit/RendererBase.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 58
Potential violation of Law of Demeter (object not created locally) 59
Document empty method 67 - 68
Potential violation of Law of Demeter (method chain calls) 75
Potential violation of Law of Demeter (method chain calls) 83
Potential violation of Law of Demeter (method chain calls) 83
Potential violation of Law of Demeter (object not created locally) 98
Potential violation of Law of Demeter (object not created locally) 99
Potential violation of Law of Demeter (method chain calls) 122
Potential violation of Law of Demeter (method chain calls) 129
Potential violation of Law of Demeter (method chain calls) 132
Potential violation of Law of Demeter (object not created locally) 138
Potential violation of Law of Demeter (method chain calls) 144
Potential violation of Law of Demeter (method chain calls) 153
Potential violation of Law of Demeter (object not created locally) 158
Potential violation of Law of Demeter (method chain calls) 164
Avoid if (x != y) ..; else ..; 180 - 184
Potential violation of Law of Demeter (object not created locally) 181
Document empty method 188 - 189
Use block level rather than method level synchronization 191 - 196

Tobago Core - org/apache/myfaces/tobago/renderkit/RendererBaseWrapper.java

Violation Line
Private field 'renderer' could be made final; it is only initialized in the declaration or constructor. 29
Document empty method 35 - 36

Tobago Core - org/apache/myfaces/tobago/renderkit/SelectManyRendererBase.java

Violation Line
The class 'SelectManyRendererBase' has a Cyclomatic Complexity of 13 (Highest = 26). 39 - 200
Potential violation of Law of Demeter (method chain calls) 51
Potential violation of Law of Demeter (object not created locally) 51
Potential violation of Law of Demeter (method chain calls) 51
Avoid if (x != y) ..; else ..; 55
Deeply nested if..then statements are hard to read 56 - 60
Potential violation of Law of Demeter (object not created locally) 66
Avoid really long methods. 86 - 198
The method 'getConvertedUISelectManyValue' has a Cyclomatic Complexity of 26. 86 - 198
The method getConvertedUISelectManyValue() has an NPath complexity of 823680 86 - 198
Consider using varargs for methods or constructors which take an array the last parameter. 88
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (object not created locally) 103
Potential violation of Law of Demeter (object not created locally) 104
Potential violation of Law of Demeter (method chain calls) 116
Potential violation of Law of Demeter (method chain calls) 127
Potential violation of Law of Demeter (method chain calls) 130
Potential violation of Law of Demeter (method chain calls) 135
Potential violation of Law of Demeter (object not created locally) 137
Potential violation of Law of Demeter (object not created locally) 145
These nested if statements could be combined 146 - 148
Potential violation of Law of Demeter (object not created locally) 147
Potential violation of Law of Demeter (method chain calls) 147
Potential violation of Law of Demeter (method chain calls) 147
Potential violation of Law of Demeter (method chain calls) 159
Potential violation of Law of Demeter (object not created locally) 159
Potential violation of Law of Demeter (method chain calls) 164
Potential violation of Law of Demeter (object not created locally) 171
Potential violation of Law of Demeter (method chain calls) 171
Potential violation of Law of Demeter (method chain calls) 171
Potential violation of Law of Demeter (object not created locally) 180
Potential violation of Law of Demeter (method chain calls) 185 - 186
Potential violation of Law of Demeter (method chain calls) 186
Potential violation of Law of Demeter (object not created locally) 186
Potential violation of Law of Demeter (method chain calls) 194
Potential violation of Law of Demeter (method chain calls) 194
Potential violation of Law of Demeter (object not created locally) 194

Tobago Core - org/apache/myfaces/tobago/renderkit/SelectOneRendererBase.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 41
Potential violation of Law of Demeter (method chain calls) 43
Potential violation of Law of Demeter (method chain calls) 43
Potential violation of Law of Demeter (object not created locally) 47

Tobago Core - org/apache/myfaces/tobago/renderkit/TobagoRenderKit.java

Violation Line
The class 'TobagoRenderKit' has a Cyclomatic Complexity of 4 (Highest = 13). 48 - 195
Private field 'renderers' could be made final; it is only initialized in the declaration or constructor. 56
Avoid instantiation through private constructors from outside of the constructors class. 66
Potential violation of Law of Demeter (object not created locally) 87
The method createResponseWriter() has an NPath complexity of 400 93 - 142
The method 'createResponseWriter' has a Cyclomatic Complexity of 13. 93 - 142
Avoid declaring a variable if it is unreferenced before a possible exit point. 95
The String literal "text/html" appears 5 times in this file; the first occurrence is on line 101 101
Potential violation of Law of Demeter (method chain calls) 119
Potential violation of Law of Demeter (method chain calls) 120
Potential violation of Law of Demeter (method chain calls) 121
Potential violation of Law of Demeter (method chain calls) 122
Potential violation of Law of Demeter (method chain calls) 127 - 128
Potential violation of Law of Demeter (method chain calls) 127 - 128
Potential violation of Law of Demeter (method chain calls) 138
Avoid instantiation through private constructors from outside of the constructors class. 146
Potential violation of Law of Demeter (method chain calls) 151
Potential violation of Law of Demeter (method chain calls) 156

Tobago Core - org/apache/myfaces/tobago/renderkit/css/Classes.java

Violation Line
Use block level rather than method level synchronization 86 - 101
Potential violation of Law of Demeter (method chain calls) 90
Avoid if (x != y) ..; else ..; 108
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 119

Tobago Core - org/apache/myfaces/tobago/renderkit/css/Style.java

Violation Line
This class has a bunch of public methods and attributes 20 - 556
Too many fields 33 - 556
Possible God class (WMC=101, ATFD=48, TCC=0.10638297872340426) 33 - 556
The class 'Style' has a Cyclomatic Complexity of 2 (Highest = 24). 33 - 556
Document empty constructor 60 - 61
The constructor 'Style' has a Cyclomatic Complexity of 10. 88 - 133
Overridable method 'getDisplay' called during object construction 126
Avoid really long methods. 144 - 258
The method 'encode' has a Cyclomatic Complexity of 23. 144 - 258
The method encode() has an NPath complexity of 4194304 144 - 258
StringBuffer constructor is initialized with size 16, but has at least 22 characters appended. 145
The method encodeJson() has an NPath complexity of 8388608 260 - 379
Avoid really long methods. 260 - 379
The method 'encodeJson' has a Cyclomatic Complexity of 24. 260 - 379
StringBuffer constructor is initialized with size 17, but has at least 66 characters appended. 261
The String literal "\"," appears 21 times in this file; the first occurrence is on line 265 265
Avoid appending characters as strings in StringBuffer.append. 365
Parameter 'backgroundPosition' is not assigned and could be declared final 537

Tobago Core - org/apache/myfaces/tobago/renderkit/util/EncodeUtils.java

Violation Line
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 30 - 53
Potential violation of Law of Demeter (object not created locally) 40
Potential violation of Law of Demeter (object not created locally) 41
Potential violation of Law of Demeter (object not created locally) 44

Tobago Core - org/apache/myfaces/tobago/sanitizer/IgnoringSanitizer.java

Violation Line
Parameter 'html' is not assigned and could be declared final 34
Parameter 'configuration' is not assigned and could be declared final 38
Potential violation of Law of Demeter (method chain calls) 44

Tobago Core - org/apache/myfaces/tobago/sanitizer/JsoupSanitizer.java

Violation Line
Avoid using redundant field initializer for 'unmodifiable' 40
Potential violation of Law of Demeter (object not created locally) 57
Local variable 'key' could be declared final 58
Potential violation of Law of Demeter (object not created locally) 58
Potential violation of Law of Demeter (method chain calls) 59
Potential violation of Law of Demeter (method chain calls) 61
Potential violation of Law of Demeter (method chain calls) 63
Potential violation of Law of Demeter (method chain calls) 65
Potential violation of Law of Demeter (method chain calls) 67
Potential violation of Law of Demeter (method chain calls) 69
Potential violation of Law of Demeter (method chain calls) 93

Tobago Core - org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 50
Potential violation of Law of Demeter (object not created locally) 53
Avoid declaring a variable if it is unreferenced before a possible exit point. 57
Potential violation of Law of Demeter (object not created locally) 59
Potential violation of Law of Demeter (object not created locally) 66
Potential violation of Law of Demeter (object not created locally) 67
Potential violation of Law of Demeter (object not created locally) 68
Potential violation of Law of Demeter (object not created locally) 71
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (object not created locally) 75
Potential violation of Law of Demeter (object not created locally) 77
Potential violation of Law of Demeter (method chain calls) 82
Potential violation of Law of Demeter (method chain calls) 82
An empty method in an abstract class should be abstract instead 91 - 93

Tobago Core - org/apache/myfaces/tobago/servlet/ResourceServlet.java

Violation Line
The class 'ResourceServlet' has a Cyclomatic Complexity of 4 (Highest = 10). 69 - 201
Private field 'resourceDirs' could be made final; it is only initialized in the declaration or constructor. 77
Potential violation of Law of Demeter (object not created locally) 84
Potential violation of Law of Demeter (object not created locally) 87
Potential violation of Law of Demeter (object not created locally) 88
Potential violation of Law of Demeter (object not created locally) 89
Avoid instantiating Long objects.Call Long.valueOf() instead 94
Potential violation of Law of Demeter (object not created locally) 96
Potential violation of Law of Demeter (object not created locally) 105
Potential violation of Law of Demeter (object not created locally) 108
Potential violation of Law of Demeter (object not created locally) 119
This call to String.startsWith can be rewritten using String.charAt(0) 119
Potential violation of Law of Demeter (object not created locally) 120
The method 'doGet' has a Cyclomatic Complexity of 10. 127 - 183
Potential violation of Law of Demeter (method chain calls) 132
Potential violation of Law of Demeter (method chain calls) 132
Potential violation of Law of Demeter (object not created locally) 132
Potential violation of Law of Demeter (object not created locally) 134
Potential violation of Law of Demeter (object not created locally) 135
Potential violation of Law of Demeter (object not created locally) 136
Potential violation of Law of Demeter (object not created locally)