| Violation |
Line |
| The class 'ThreadLoggerService' has a Cyclomatic Complexity of 4 (Highest = 11). |
52–227 |
| All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. |
53–227 |
| The method 'watchThreads' has a Cyclomatic Complexity of 11. |
60–131 |
| Consider using varargs for methods or constructors which take an array the last parameter. |
60 |
| Avoid appending characters as strings in StringBuffer.append. |
82 |
| StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
90 |
| StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
91 |
| StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
92 |
| Deeply nested if..then statements are hard to read |
99–102 |
| Deeply nested if..then statements are hard to read |
106–109 |
| Deeply nested if..then statements are hard to read |
113–116 |
| Deeply nested if..then statements are hard to read |
120–123 |
| Return an empty array rather than null. |
133–145 |
| Consider using varargs for methods or constructors which take an array the last parameter. |
152 |
| Avoid appending characters as strings in StringBuffer.append. |
154 |
| Avoid appending characters as strings in StringBuffer.append. |
158 |
| Avoid appending characters as strings in StringBuffer.append. |
159 |
| Avoid appending characters as strings in StringBuffer.append. |
159 |
| Consider using varargs for methods or constructors which take an array the last parameter. |
169 |
| Avoid appending characters as strings in StringBuffer.append. |
173 |
| Consider using varargs for methods or constructors which take an array the last parameter. |
177 |
| Avoid appending characters as strings in StringBuffer.append. |
181 |
| Avoid appending characters as strings in StringBuffer.append. |
187 |
| Avoid appending characters as strings in StringBuffer.append. |
188 |
| Avoid appending characters as strings in StringBuffer.append. |
189 |
| Consider using varargs for methods or constructors which take an array the last parameter. |
200 |
| Avoid variables with short names like o2 |
222 |
| Avoid variables with short names like o1 |
222 |