The following document contains the results of PMD 5.5.1.
Violation | Line |
---|---|
Possible God class (WMC=117, ATFD=321, TCC=0.0) | 34–1561 |
The class 'CalendarDAO' has a Cyclomatic Complexity of 3 (Highest = 23). | 60–1561 |
Avoid really long classes. | 60–1561 |
The class 'CalendarDAO' has a Modified Cyclomatic Complexity of 3 (Highest = 23). | 60–1561 |
The class 'CalendarDAO' has a Standard Cyclomatic Complexity of 3 (Highest = 23). | 60–1561 |
The String literal " FROM calendar_events_occurrences a, calendar_events b" appears 4 times in this file; the first occurrence is on line 88 | 88 |
Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 221 |
Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 222 |
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). | 235 |
Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 275 |
Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 279 |
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). | 297 |
Avoid using Literals in Conditional Statements | 479 |
The String literal "ASC" appears 5 times in this file; the first occurrence is on line 481 | 481 |
The String literal "DESC" appears 5 times in this file; the first occurrence is on line 485 | 485 |
Use explicit scoping instead of the default package private level | 523–541 |
Avoid reassigning parameters such as 'event' | 548 |
Avoid variables with short names like i | 554 |
Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 570 |
Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 604 |
Avoid using Literals in Conditional Statements | 631 |
Avoid using Literals in Conditional Statements | 679 |
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). | 1013 |
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). | 1061 |
Avoid really long methods. | 1231–1359 |
The method 'getDaoFromFilter' has a Standard Cyclomatic Complexity of 23. | 1231–1359 |
The method 'getDaoFromFilter' has a Modified Cyclomatic Complexity of 23. | 1231–1359 |
The method getDaoFromFilter() has an NPath complexity of 926100 | 1231–1359 |
The method 'getDaoFromFilter' has a Cyclomatic Complexity of 23. | 1231–1359 |
Avoid using Literals in Conditional Statements | 1312 |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 1321 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 1323 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 1333 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 1343 |
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks | 1353 |
Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 1407 |
Avoid using Literals in Conditional Statements | 1434 |
Avoid using Literals in Conditional Statements | 1497 |
Violation | Line |
---|---|
Returning '_arrayCategoriesId' may expose an internal array. | 87 |
Consider using varargs for methods or constructors which take an array the last parameter. | 93 |
The user-supplied array 'arrayCategoriesId' is stored directly. | 93 |
Returning '_arrayId' may expose an internal array. | 103 |
Consider using varargs for methods or constructors which take an array the last parameter. | 109 |
The user-supplied array 'arrayId' is stored directly. | 109 |
Returning '_arrayCalendarId' may expose an internal array. | 119 |
The user-supplied array 'calendarId' is stored directly. | 125 |
Consider using varargs for methods or constructors which take an array the last parameter. | 125 |
Violation | Line |
---|---|
When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 87 |
Violation | Line |
---|---|
Use explicit scoping instead of the default package private level | 153–169 |
Use explicit scoping instead of the default package private level | 177–196 |
When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 234 |
Violation | Line |
---|---|
Private field '_listAgendas' could be made final; it is only initialized in the declaration or constructor. | 53 |
Document empty constructor | 58–60 |
Avoid unnecessary constructors - the compiler will generate these for you | 58–60 |
Return an empty array rather than null. | 222–239 |
Violation | Line |
---|---|
It is a good practice to call super() in a constructor | 50–64 |
Violation | Line |
---|---|
Document empty constructor | 47–49 |
It is a good practice to call super() in a constructor | 47–49 |
It is a good practice to call super() in a constructor | 56–71 |
Violation | Line |
---|---|
Private field '_mapDays' could be made final; it is only initialized in the declaration or constructor. | 56 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 56 |
Private field '_list' could be made final; it is only initialized in the declaration or constructor. | 57 |
Document empty constructor | 62–64 |
Avoid unnecessary constructors - the compiler will generate these for you | 62–64 |
Violation | Line |
---|---|
This class has a bunch of public methods and attributes | 34–705 |
Too many fields | 47–705 |
Returning '_listTags' may expose an internal array. | 533 |
The user-supplied array 'listTags' is stored directly. | 541 |
Consider using varargs for methods or constructors which take an array the last parameter. | 541 |
Returning '_listExcludedDays' may expose an internal array. | 693 |
The user-supplied array 'listExcludedDays' is stored directly. | 701 |
Consider using varargs for methods or constructors which take an array the last parameter. | 701 |
Violation | Line |
---|---|
The class 'Category' has a Modified Cyclomatic Complexity of 2 (Highest = 11). | 45–206 |
The class 'Category' has a Standard Cyclomatic Complexity of 2 (Highest = 11). | 45–206 |
The class 'Category' has a Cyclomatic Complexity of 2 (Highest = 11). | 45–206 |
Returning '_byteIconContent' may expose an internal array. | 62 |
The user-supplied array 'byteIconContent' is stored directly. | 68 |
The method 'equals' has a Cyclomatic Complexity of 11. | 156–205 |
The method equals() has an NPath complexity of 256 | 156–205 |
The method 'equals' has a Standard Cyclomatic Complexity of 11. | 156–205 |
The method 'equals' has a Modified Cyclomatic Complexity of 11. | 156–205 |
Ensure you override both equals() and hashCode() | 156 |
Violation | Line |
---|---|
Avoid variables with short names like i | 317 |
Violation | Line |
---|---|
Use block level rather than method level synchronization | 63–76 |
Violation | Line |
---|---|
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 104 |
Violation | Line |
---|---|
The class 'CalendarPortlet' has a Cyclomatic Complexity of 3 (Highest = 14). | 66–250 |
The class 'CalendarPortlet' has a Modified Cyclomatic Complexity of 3 (Highest = 11). | 66–250 |
The class 'CalendarPortlet' has a Standard Cyclomatic Complexity of 3 (Highest = 11). | 66–250 |
Overriding method merely calls super | 88–91 |
The method 'getXml' has a Standard Cyclomatic Complexity of 11. | 110–221 |
The method 'getXml' has a Cyclomatic Complexity of 14. | 110–221 |
The method 'getXml' has a Modified Cyclomatic Complexity of 11. | 110–221 |
Avoid really long methods. | 110–221 |
These nested if statements could be combined | 144–147 |
When instantiating a SimpleDateFormat object, specify a Locale | 186 |
This statement may have some unnecessary parentheses | 187 |
Prefer StringBuffer over += for concatenating strings | 202 |
Violation | Line |
---|---|
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 235 |
Avoid catching NullPointerException; consider removing the cause of the NPE. | 235 |
Avoid empty catch blocks | 235–237 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 263 |
Avoid catching NullPointerException; consider removing the cause of the NPE. | 263 |
Avoid empty catch blocks | 263–265 |
Violation | Line |
---|---|
Possible unsafe assignment to a non-final static field in a constructor. | 52 |
It is a good practice to call super() in a constructor | 60–66 |
Singleton is not thread safe | 88–91 |
Violation | Line |
---|---|
The class 'MiniCalendarPortlet' has a Cyclomatic Complexity of 5 (Highest = 29). | 69–323 |
The class 'MiniCalendarPortlet' has a Modified Cyclomatic Complexity of 5 (Highest = 26). | 69–323 |
The class 'MiniCalendarPortlet' has a Standard Cyclomatic Complexity of 5 (Highest = 26). | 69–323 |
Overriding method merely calls super | 102–105 |
Avoid really long methods. | 124–294 |
The method 'getXml' has a Modified Cyclomatic Complexity of 26. | 124–294 |
The method 'getXml' has a Standard Cyclomatic Complexity of 26. | 124–294 |
The method 'getXml' has a Cyclomatic Complexity of 29. | 124–294 |
The method getXml() has an NPath complexity of 947772000 | 124–294 |
Avoid variables with short names like i | 170 |
When instantiating a SimpleDateFormat object, specify a Locale | 221 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 236 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 245 |
Violation | Line |
---|---|
Possible unsafe assignment to a non-final static field in a constructor. | 49 |
It is a good practice to call super() in a constructor | 57–63 |
Singleton is not thread safe | 85–88 |
Violation | Line |
---|---|
Document empty method | 66–67 |
Document empty method | 73–74 |
Document empty method | 80–81 |
Violation | Line |
---|---|
Use explicit scoping instead of the default package private level | 73–91 |
Use block level rather than method level synchronization | 99–114 |
Violation | Line |
---|---|
The class 'ICalAgenda' has a Modified Cyclomatic Complexity of 3 (Highest = 17). | 61–298 |
The class 'ICalAgenda' has a Cyclomatic Complexity of 3 (Highest = 17). | 61–298 |
The class 'ICalAgenda' has a Standard Cyclomatic Complexity of 3 (Highest = 17). | 61–298 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 66 |
Private field '_mapDays' could be made final; it is only initialized in the declaration or constructor. | 66 |
Private field '_list' could be made final; it is only initialized in the declaration or constructor. | 67 |
Document empty constructor | 72–75 |
Avoid unnecessary constructors - the compiler will generate these for you | 72–75 |
The method setEvents() has an NPath complexity of 245 | 169–239 |
The method 'setEvents' has a Modified Cyclomatic Complexity of 17. | 169–239 |
The method 'setEvents' has a Standard Cyclomatic Complexity of 17. | 169–239 |
The method 'setEvents' has a Cyclomatic Complexity of 17. | 169–239 |
Violation | Line |
---|---|
Avoid variables with short names like a | 71 |
Violation | Line |
---|---|
This class has a bunch of public methods and attributes | 34–617 |
Too many fields | 47–617 |
Use explicit scoping instead of the default package private level | 330–343 |
Use explicit scoping instead of the default package private level | 350–359 |
Use explicit scoping instead of the default package private level | 366–369 |
Use explicit scoping instead of the default package private level | 376–379 |
Use explicit scoping instead of the default package private level | 396–399 |
Use explicit scoping instead of the default package private level | 406–409 |
Violation | Line |
---|---|
Document empty constructor | 62–64 |
Avoid unnecessary constructors - the compiler will generate these for you | 62–64 |
Violation | Line |
---|---|
Private field '_strPluginName' could be made final; it is only initialized in the declaration or constructor. | 56 |
Avoid unnecessary constructors - the compiler will generate these for you | 61–64 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 107 |
Assigning an Object to null is a code smell. Consider refactoring. | 109 |
Avoid variables with short names like a | 121 |
Violation | Line |
---|---|
Private field '_strFilesPath' could be made final; it is only initialized in the declaration or constructor. | 69 |
String.indexOf(char) is faster than String.indexOf(String). | 99 |
Avoid variables with short names like is | 145 |
Avoid variables with short names like a | 158 |
Violation | Line |
---|---|
Singleton is not thread safe | 76–80 |
Singleton is not thread safe | 82–86 |
Violation | Line |
---|---|
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 115 |
Violation | Line |
---|---|
A high number of imports can indicate a high degree of coupling within an object. | 34–524 |
Possible unsafe assignment to a non-final static field in a constructor. | 135 |
Singleton is not thread safe | 154–157 |
Use opposite operator instead of the logic complement operator. | 174 |
Prefer StringBuffer over += for concatenating strings | 174 |
Rather than using a lot of String arguments, consider using a container object for those values. | 255–256 |
Unnecessary use of fully qualified name 'java.util.UUID.randomUUID' due to existing import 'java.util.UUID' | 382 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 435 |
Prefer StringBuffer over += for concatenating strings | 453 |
Use opposite operator instead of the logic complement operator. | 453 |
Violation | Line |
---|---|
Avoid variables with short names like rt | 60 |
Avoid variables with short names like p | 65 |
Violation | Line |
---|---|
Private field '_cacheCalendar' could be made final; it is only initialized in the declaration or constructor. | 73 |
These nested if statements could be combined | 187–190 |
Deeply nested if..then statements are hard to read | 187–190 |
These nested if statements could be combined | 226–229 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 363 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 375 |
Violation | Line |
---|---|
Singleton is not thread safe | 79–82 |
Avoid variables with short names like i | 190 |
A getX() method which returns a boolean should be named isX() | 306–309 |
Violation | Line |
---|---|
Private field '_cacheEventList' could be made final; it is only initialized in the declaration or constructor. | 68 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 324 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 338 |
Violation | Line |
---|---|
Possible God class (WMC=136, ATFD=175, TCC=0.009523809523809525) | 34–1140 |
Avoid really long classes. | 72–1140 |
The class 'Utils' has a Cyclomatic Complexity of 3 (Highest = 17). | 72–1140 |
The class 'Utils' has a Standard Cyclomatic Complexity of 3 (Highest = 13). | 72–1140 |
The class 'Utils' has a Modified Cyclomatic Complexity of 3 (Highest = 11). | 72–1140 |
Do not add empty strings | 96 |
Prefer StringBuffer over += for concatenating strings | 99 |
Do not add empty strings | 99 |
Do not add empty strings | 100 |
Prefer StringBuffer over += for concatenating strings | 100 |
When instantiating a SimpleDateFormat object, specify a Locale | 134 |
When instantiating a SimpleDateFormat object, specify a Locale | 156 |
When instantiating a SimpleDateFormat object, specify a Locale | 178 |
Avoid using Literals in Conditional Statements | 226 |
Avoid using Literals in Conditional Statements | 260 |
The method isValid() has an NPath complexity of 216 | 397–440 |
The method 'isValid' has a Cyclomatic Complexity of 10. | 397–440 |
Avoid using Literals in Conditional Statements | 404 |
Avoid unnecessary if..then..else statements when returning booleans | 434–437 |
Avoid unnecessary if..then..else statements when returning booleans | 451–454 |
Position literals first in String comparisons | 470 |
Avoid using Literals in Conditional Statements | 474 |
Avoid variables with short names like n | 501 |
Avoid variables with short names like n | 517 |
Consider using varargs for methods or constructors which take an array the last parameter. | 534 |
The method 'getDateForward' has a Cyclomatic Complexity of 17. | 534–609 |
The method 'getDateForward' has a Modified Cyclomatic Complexity of 11. | 534–609 |
The method 'getDateForward' has a Standard Cyclomatic Complexity of 13. | 534–609 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 536 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 537 |
Consider using varargs for methods or constructors which take an array the last parameter. | 663 |
Avoid variables with short names like a | 708 |
These nested if statements could be combined | 725–728 |
The method 'getAgendaWithOccurrences' has a Cyclomatic Complexity of 10. | 751–793 |
Avoid variables with short names like a | 761 |
These nested if statements could be combined | 773–776 |
The method 'getAgendaWithOccurrencesOrderedbyId' has a Cyclomatic Complexity of 10. | 801–843 |
Avoid variables with short names like a | 811 |
These nested if statements could be combined | 823–826 |
These nested if statements could be combined | 869–872 |
Avoid variables with short names like a | 951 |
Avoid variables with short names like a | 972 |
Avoid variables with short names like a | 993 |
Avoid variables with short names like i | 1028 |
These nested if statements could be combined | 1067–1070 |
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 1078 |
When instantiating a SimpleDateFormat object, specify a Locale | 1099 |
Consider using varargs for methods or constructors which take an array the last parameter. | 1120 |
Violation | Line |
---|---|
A high number of imports can indicate a high degree of coupling within an object. | 34–605 |
The class 'XMLUtils' has a Standard Cyclomatic Complexity of 6 (Highest = 17). | 89–605 |
The class 'XMLUtils' has a Cyclomatic Complexity of 7 (Highest = 17). | 89–605 |
The class 'XMLUtils' has a Modified Cyclomatic Complexity of 6 (Highest = 17). | 89–605 |
Avoid really long methods. | 188–291 |
The method 'getXml' has a Modified Cyclomatic Complexity of 17. | 188–291 |
The method 'getXml' has a Standard Cyclomatic Complexity of 17. | 188–291 |
The method getXml() has an NPath complexity of 2000003 | 188–291 |
The method 'getXml' has a Cyclomatic Complexity of 17. | 188–291 |
Avoid variables with short names like i | 198 |
Prefer StringBuffer over += for concatenating strings | 216 |
Prefer StringBuffer over += for concatenating strings | 221 |
Prefer StringBuffer over += for concatenating strings | 226 |
Prefer StringBuffer over += for concatenating strings | 261 |
The method 'transformXMLToXSL' has a Modified Cyclomatic Complexity of 10. | 304–371 |
The method 'transformXMLToXSL' has a Cyclomatic Complexity of 10. | 304–371 |
The method 'transformXMLToXSL' has a Standard Cyclomatic Complexity of 10. | 304–371 |
A method/constructor shouldnt explicitly throw java.lang.Exception | 305 |
A method/constructor shouldnt explicitly throw java.lang.Exception | 305 |
Prefer StringBuffer over += for concatenating strings | 347 |
The String literal "Error transforming document XSLT : " appears 4 times in this file; the first occurrence is on line 350 | 350 |
New exception is thrown in catch block, original stack trace may be lost | 350 |
Prefer StringBuffer over += for concatenating strings | 362 |
New exception is thrown in catch block, original stack trace may be lost | 365 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 367 |
The method getXMLPortletCalendar() has an NPath complexity of 484 | 380–577 |
Avoid really long methods. | 380–577 |
The method getXMLPortletCalendar() has an NCSS line count of 101 | 380–577 |
The method 'getXMLPortletCalendar' has a Cyclomatic Complexity of 12. | 380–577 |
Avoid using Literals in Conditional Statements | 393 |
Avoid instantiating String objects; this is usually unnecessary. | 527 |
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 540 |
Violation | Line |
---|---|
It is a good practice to call super() in a constructor | 54–56 |
Singleton is not thread safe | 64–67 |
Violation | Line |
---|---|
It is a good practice to call super() in a constructor | 54–56 |
Singleton is not thread safe | 64–67 |
Violation | Line |
---|---|
A high number of imports can indicate a high degree of coupling within an object. | 34–398 |
Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 144 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 149 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 172 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 173 |
Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 197 |
Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 216 |
Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 220 |
Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 220 |
Avoid variables with short names like ft | 222 |
Avoid variables with short names like i | 237 |
Prefer StringBuffer over += for concatenating strings | 241 |
New exception is thrown in catch block, original stack trace may be lost | 276 |
New exception is thrown in catch block, original stack trace may be lost | 280 |
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). | 285 |
Avoid variables with short names like sb | 285 |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 323 |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 324 |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 325 |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 326 |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 327 |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 328 |
Violation | Line |
---|---|
The class 'CalendarLuceneSearchEngine' has a Modified Cyclomatic Complexity of 10 (Highest = 15). | 71–317 |
The class 'CalendarLuceneSearchEngine' has a Standard Cyclomatic Complexity of 10 (Highest = 15). | 71–317 |
The class 'CalendarLuceneSearchEngine' has a Cyclomatic Complexity of 12 (Highest = 20). | 71–317 |
Avoid variables with short names like OR | 76 |
The method 'getSearchResults' has a Modified Cyclomatic Complexity of 15. | 88–281 |
Avoid really long methods. | 88–281 |
The method getSearchResults() has an NPath complexity of 8643 | 88–281 |
The method 'getSearchResults' has a Standard Cyclomatic Complexity of 15. | 88–281 |
The method 'getSearchResults' has a Cyclomatic Complexity of 20. | 88–281 |
The method getSearchResults() has an NCSS line count of 115 | 88–281 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 91 |
Avoid variables with short names like ir | 104 |
Prefer StringBuffer over += for concatenating strings | 122 |
Prefer StringBuffer over += for concatenating strings | 127 |
Prefer StringBuffer over += for concatenating strings | 131 |
Prefer StringBuffer over += for concatenating strings | 150 |
Prefer StringBuffer over += for concatenating strings | 155 |
Prefer StringBuffer over += for concatenating strings | 159 |
Avoid variables with short names like si | 244 |
Avoid variables with short names like si | 271 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 275 |
Violation | Line |
---|---|
Singleton is not thread safe | 75–78 |
Avoid catching NullPointerException; consider removing the cause of the NPE. | 129 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 129 |
Violation | Line |
---|---|
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 74 |
Violation | Line |
---|---|
Possible God class (WMC=182, ATFD=565, TCC=0.016042780748663103) | 34–1691 |
A high number of imports can indicate a high degree of coupling within an object. | 34–1691 |
Avoid really long classes. | 101–1691 |
The class 'CalendarApp' has a Cyclomatic Complexity of 6 (Highest = 35). | 101–1691 |
The class 'CalendarApp' has a Modified Cyclomatic Complexity of 4 (Highest = 25). | 101–1691 |
The class 'CalendarApp' has a Standard Cyclomatic Complexity of 4 (Highest = 28). | 101–1691 |
Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. | 151 |
Private field '_agendaSubscriberService' could be made final; it is only initialized in the declaration or constructor. | 155 |
Private field '_categoryService' could be made final; it is only initialized in the declaration or constructor. | 156 |
Private field '_eventListService' could be made final; it is only initialized in the declaration or constructor. | 157 |
Private field '_calendarService' could be made final; it is only initialized in the declaration or constructor. | 159 |
The method 'getPage' has a Cyclomatic Complexity of 22. | 174–271 |
The method 'getPage' has a Modified Cyclomatic Complexity of 22. | 174–271 |
The method 'getPage' has a Standard Cyclomatic Complexity of 22. | 174–271 |
Avoid unused method parameters such as 'plugin'. | 279 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 298 |
Avoid unused method parameters such as 'plugin'. | 340 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 391 |
Avoid unused method parameters such as 'plugin'. | 417 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 425 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 543 |
Avoid unused method parameters such as 'plugin'. | 572 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 581 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 607 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 631 |
The method 'getSearchResultPage' has a Modified Cyclomatic Complexity of 25. | 657–883 |
Avoid really long methods. | 657–883 |
The method 'getSearchResultPage' has a Standard Cyclomatic Complexity of 28. | 657–883 |
The method getSearchResultPage() has an NCSS line count of 134 | 657–883 |
The method 'getSearchResultPage' has a Cyclomatic Complexity of 35. | 657–883 |
Avoid using Literals in Conditional Statements | 722 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 772 |
The method 'getShowResultPage' has a Cyclomatic Complexity of 15. | 891–997 |
Avoid really long methods. | 891–997 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 930 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 953 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1009 |
Avoid unused method parameters such as 'request'. | 1133 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1139 |
The method 'doCreateEvent' has a Cyclomatic Complexity of 11. | 1174–1259 |
The method 'doModifyEvent' has a Cyclomatic Complexity of 13. | 1270–1342 |
Avoid unused method parameters such as 'plugin'. | 1431 |
The method 'doSendToFriend' has a Cyclomatic Complexity of 10. | 1502–1559 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1543 |
Avoid variables with short names like i | 1596 |
Avoid variables with short names like i | 1619 |
Violation | Line |
---|---|
Avoid unnecessary constructors - the compiler will generate these for you | 119–121 |
It is a good practice to call super() in a constructor | 119–121 |
Document empty constructor | 119–121 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 167 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 195 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 197 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 198 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 201 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 247 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 255 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 279 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 280 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 281 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 282 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 283 |
Violation | Line |
---|---|
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 93 |
Avoid variables with short names like t | 105 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 130 |
Violation | Line |
---|---|
The class 'CalendarDownloadFile' has a Modified Cyclomatic Complexity of 12 (Highest = 18). | 68–249 |
The class 'CalendarDownloadFile' has a Cyclomatic Complexity of 13 (Highest = 19). | 68–249 |
The class 'CalendarDownloadFile' has a Standard Cyclomatic Complexity of 12 (Highest = 18). | 68–249 |
The method 'downloadCalendarToFile' has a Modified Cyclomatic Complexity of 18. | 85–204 |
Avoid really long methods. | 85–204 |
The method downloadCalendarToFile() has an NPath complexity of 9000 | 85–204 |
The method 'downloadCalendarToFile' has a Cyclomatic Complexity of 19. | 85–204 |
The method 'downloadCalendarToFile' has a Standard Cyclomatic Complexity of 18. | 85–204 |
These nested if statements could be combined | 108–120 |
Avoid variables with short names like i | 111 |
Deeply nested if..then statements are hard to read | 115–118 |
These nested if statements could be combined | 126–139 |
Avoid variables with short names like i | 130 |
Deeply nested if..then statements are hard to read | 134–137 |
Avoid variables with short names like os | 191 |
New exception is thrown in catch block, original stack trace may be lost | 198 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 200 |
New exception is thrown in catch block, original stack trace may be lost | 202 |
New exception is thrown in catch block, original stack trace may be lost | 245 |
Violation | Line |
---|---|
Possible God class (WMC=231, ATFD=960, TCC=0.05714285714285714) | 34–2248 |
A high number of imports can indicate a high degree of coupling within an object. | 34–2248 |
The class 'CalendarJspBean' has a Standard Cyclomatic Complexity of 5 (Highest = 28). | 113–2248 |
The class 'CalendarJspBean' has a Modified Cyclomatic Complexity of 5 (Highest = 28). | 113–2248 |
The class 'CalendarJspBean' has a Cyclomatic Complexity of 7 (Highest = 47). | 113–2248 |
Avoid really long classes. | 113–2248 |
Avoid excessively long variable names like ATTRIBUTE_MODULE_DOCUMENT_TO_CALENDAR_MIME_TYPE_FILE | 131 |
Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. | 199 |
Private field '_categoryService' could be made final; it is only initialized in the declaration or constructor. | 204 |
Private field '_agendaSubscriberService' could be made final; it is only initialized in the declaration or constructor. | 205 |
Private field '_eventListService' could be made final; it is only initialized in the declaration or constructor. | 206 |
Private field '_calendarService' could be made final; it is only initialized in the declaration or constructor. | 208 |
It is a good practice to call super() in a constructor | 214–217 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 232 |
Do not add empty strings | 244 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 266 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 284 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 284 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 293 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 384 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 566 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 609 |
The method 'getOccurrenceList' has a Cyclomatic Complexity of 10. | 677–750 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 689 |
Do not add empty strings | 737 |
The method doCreateEvent() has an NPath complexity of 42467332 | 758–1018 |
The method 'doCreateEvent' has a Cyclomatic Complexity of 42. | 758–1018 |
Avoid really long methods. | 758–1018 |
The method doCreateEvent() has an NCSS line count of 129 | 758–1018 |
The method 'doCreateEvent' has a Standard Cyclomatic Complexity of 27. | 758–1018 |
The method 'doCreateEvent' has a Modified Cyclomatic Complexity of 27. | 758–1018 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 767 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 768 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 769 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 770 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 771 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 772 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 775 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 779 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 780 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 781 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 782 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 783 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 784 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 785 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 786 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 787 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 788 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 791 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 794 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 814 |
Position literals first in String comparisons | 861 |
Position literals first in String comparisons | 876 |
Avoid using Literals in Conditional Statements | 953 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1041 |
Prefer StringBuffer over += for concatenating strings | 1052 |
The method 'doModifyEvent' has a Standard Cyclomatic Complexity of 28. | 1101–1346 |
Avoid really long methods. | 1101–1346 |
The method 'doModifyEvent' has a Modified Cyclomatic Complexity of 28. | 1101–1346 |
The method doModifyEvent() has an NCSS line count of 117 | 1101–1346 |
The method doModifyEvent() has an NPath complexity of 29245440 | 1101–1346 |
The method 'doModifyEvent' has a Cyclomatic Complexity of 47. | 1101–1346 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1104–1105 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1108 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1111 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1114 |
Position literals first in String comparisons | 1117 |
Position literals first in String comparisons | 1117 |
Position literals first in String comparisons | 1117 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1147 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1224 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1225 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1227–1228 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1229 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1230 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1231 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1232 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1233 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1234 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1235 |
Position literals first in String comparisons | 1240 |
Position literals first in String comparisons | 1279 |
Avoid using Literals in Conditional Statements | 1306 |
Assigning an Object to null is a code smell. Consider refactoring. | 1342 |
The method 'doModifyOccurrence' has a Cyclomatic Complexity of 10. | 1354–1429 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1357 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1359 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1360 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1361 |
Position literals first in String comparisons | 1364 |
Avoid using Literals in Conditional Statements | 1400 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1438 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1440 |
Prefer StringBuffer over += for concatenating strings | 1444 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1445 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1447 |
Position literals first in String comparisons | 1453 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1508 |
Avoid variables with short names like st | 1626 |
Avoid variables with short names like st | 1649 |
Avoid variables with short names like i | 1651 |
Avoid unused method parameters such as 'request'. | 1666 |
The method getConfirmModifyEvent() has an NPath complexity of 33554432 | 1717–1880 |
Avoid really long methods. | 1717–1880 |
The method 'getConfirmModifyEvent' has a Cyclomatic Complexity of 28. | 1717–1880 |
The method 'getConfirmModifyEvent' has a Standard Cyclomatic Complexity of 26. | 1717–1880 |
The method 'getConfirmModifyEvent' has a Modified Cyclomatic Complexity of 26. | 1717–1880 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 1721 |
Prefer StringBuffer over += for concatenating strings | 1906 |
The method 'doRemoveOccurrence' has a Cyclomatic Complexity of 10. | 1928–1993 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 2007 |
Do not add empty strings | 2034 |
Prefer StringBuffer over += for concatenating strings | 2163 |
Violation | Line |
---|---|
Private field '_plugin' could be made final; it is only initialized in the declaration or constructor. | 102 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 233 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 234 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 235 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 236 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 237 |
Violation | Line |
---|---|
A high number of imports can indicate a high degree of coupling within an object. | 34–628 |
Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. | 134 |
Prefer StringBuffer over += for concatenating strings | 180 |
Prefer StringBuffer over += for concatenating strings | 185 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 191 |
Do not add empty strings | 193 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 217 |
Position literals first in String comparisons | 255 |
This call to String.startsWith can be rewritten using String.charAt(0) | 269 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 299 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 305 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 356 |
This statement may have some unnecessary parentheses | 394 |
This call to String.startsWith can be rewritten using String.charAt(0) | 451 |
Avoid variables with short names like is | 554 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 557 |
Violation | Line |
---|---|
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 76 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 90 |
Violation | Line |
---|---|
The method fillEventTemplate() has an NPath complexity of 2000 | 104–154 |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 128 |
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 137 |
Violation | Line |
---|---|
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 82 |
Avoid using Literals in Conditional Statements | 90 |
Avoid unused method parameters such as 'request'. | 151 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 153 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 168 |
Prefer StringBuffer over += for concatenating strings | 214 |
Prefer StringBuffer over += for concatenating strings | 218 |
Prefer StringBuffer over += for concatenating strings | 222 |
Violation | Line |
---|---|
Avoid unused method parameters such as 'request'. | 105 |
Violation | Line |
---|---|
The class 'SmallMonthCalendar' has a Cyclomatic Complexity of 7 (Highest = 10). | 66–293 |
The method 'getSmallMonthCalendar' has a Cyclomatic Complexity of 10. | 90–175 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 93 |
Avoid using Literals in Conditional Statements | 111 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 123 |
The method 'getDay' has a Cyclomatic Complexity of 10. | 186–254 |
Unnecessary use of fully qualified name 'fr.paris.lutece.plugins.calendar.business.MultiAgenda' due to existing import 'fr.paris.lutece.plugins.calendar.business.MultiAgenda' | 194 |
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 214 |
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 227 |
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 234 |
Prefer StringBuffer over += for concatenating strings | 271 |
Prefer StringBuffer over += for concatenating strings | 275 |
Prefer StringBuffer over += for concatenating strings | 279 |
Prefer StringBuffer over += for concatenating strings | 283 |
Prefer StringBuffer over += for concatenating strings | 288 |
Violation | Line |
---|---|
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 90 |
Avoid unused method parameters such as 'request'. | 106 |
Prefer StringBuffer over += for concatenating strings | 159 |
Prefer StringBuffer over += for concatenating strings | 163 |
Prefer StringBuffer over += for concatenating strings | 167 |
Violation | Line |
---|---|
Avoid unused method parameters such as 'request'. | 122 |
Violation | Line |
---|---|
Avoid declaring a variable if it is unreferenced before a possible exit point. | 130 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 134 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 177 |
Prefer StringBuffer over += for concatenating strings | 210 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 265 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 291 |
Avoid using Literals in Conditional Statements | 294 |
Avoid variables with short names like st | 329 |
Avoid variables with short names like st | 378 |
Violation | Line |
---|---|
Avoid declaring a variable if it is unreferenced before a possible exit point. | 105 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 109 |
Avoid declaring a variable if it is unreferenced before a possible exit point. | 179 |
Avoid variables with short names like st | 221 |