Fork me on GitHub

PMD Results

The following document contains the results of PMD 5.3.5.

Files

fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabase.java

Violation Line
Returning '_iconContent' may expose an internal array. 196
The user-supplied array 'iconContent' is stored directly. 205

fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseCategory.java

Violation Line
Use explicit scoping instead of the default package private level 39
Use explicit scoping instead of the default package private level 40

fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseDAO.java

Violation Line
Use explicit scoping instead of the default package private level 68
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 289
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 341

fr/paris/lutece/plugins/myapps/modules/database/business/MyAppsDatabaseUserDAO.java

Violation Line
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' 42
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' 42

fr/paris/lutece/plugins/myapps/modules/database/service/MyAppsDatabaseCacheKeyService.java

Violation Line
Avoid appending characters as strings in StringBuffer.append. 61
Document empty method 7374
Document empty method 8283

fr/paris/lutece/plugins/myapps/modules/database/service/MyAppsDatabaseCacheService.java

Violation Line
A class which only has private constructors should be final 4592
It is a good practice to call super() in a constructor 5153
Singleton is not thread safe 6973

fr/paris/lutece/plugins/myapps/modules/database/service/MyAppsDatabaseImgProvider.java

Violation Line
Document empty constructor 5557
Avoid unnecessary constructors - the compiler will generate these for you 5557
Use block level rather than method level synchronization 6472

fr/paris/lutece/plugins/myapps/modules/database/service/MyAppsDatabaseProvider.java

Violation Line
The class 'MyAppsDatabaseProvider' has a Cyclomatic Complexity of 2 (Highest = 11). 60278
Use block level rather than method level synchronization 7886
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 162
The method 'getUrlOpenMyApps' has a Cyclomatic Complexity of 11. 199276

fr/paris/lutece/plugins/myapps/modules/database/service/MyAppsDatabaseResourceIdService.java

Violation Line
It is a good practice to call super() in a constructor 6871
Avoid variables with short names like rt 78
Avoid variables with short names like p 84

fr/paris/lutece/plugins/myapps/modules/database/service/MyAppsDatabaseService.java

Violation Line
Document empty method 7071
Use block level rather than method level synchronization 7886
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 139
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 143

fr/paris/lutece/plugins/myapps/modules/database/web/MyAppsDatabaseApp.java

Violation Line
The class 'MyAppsDatabaseApp' has a Cyclomatic Complexity of 5 (Highest = 16). 73446
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 170
Avoid reassigning parameters such as 'page' 196
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 228
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 278
The method 'getMyAppsDatabaseUserInfo' has a Cyclomatic Complexity of 16. 355398
The method getMyAppsDatabaseUserInfo() has an NPath complexity of 261 355398

fr/paris/lutece/plugins/myapps/modules/database/web/MyAppsDatabaseJspBean.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 34679
Possible God class (WMC=67, ATFD=303, TCC=0.0) 34679
The class 'MyAppsDatabaseJspBean' has a Cyclomatic Complexity of 5 (Highest = 28). 77679
The class 'MyAppsDatabaseJspBean' has a Modified Cyclomatic Complexity of 3 (Highest = 12). 77679
The class 'MyAppsDatabaseJspBean' has a Standard Cyclomatic Complexity of 3 (Highest = 12). 77679
Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 83
Document empty constructor 9092
Avoid unnecessary constructors - the compiler will generate these for you 9092
It is a good practice to call super() in a constructor 9092
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 114
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 140
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 186
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 289
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 316
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 383
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 491
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 572
The method 'verifyFields' has a Cyclomatic Complexity of 28. 602678
The method verifyFields() has an NPath complexity of 294915 602678
The method 'verifyFields' has a Standard Cyclomatic Complexity of 12. 602678
The method 'verifyFields' has a Modified Cyclomatic Complexity of 12. 602678