Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/xpageportlet/service/http/XPagePortletHttpServletRequest.java

Rule Violation Line
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 97127

Priority 3

fr/paris/lutece/plugins/xpageportlet/business/portlet/XPagePortletDAO.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 6782
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 162
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 162
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 176
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 194218

fr/paris/lutece/plugins/xpageportlet/business/portlet/XPagePortletHome.java

Rule Violation Line
UncommentedEmptyConstructor Document empty constructor 5658
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5658
CallSuperInConstructor It is a good practice to call super() in a constructor 5658
NonThreadSafeSingleton Singleton is not thread safe 6770

fr/paris/lutece/plugins/xpageportlet/service/http/XPagePortletHttpServletRequest.java

Rule Violation Line
ImmutableField Private field '_mapParameters' could be made final; it is only initialized in the declaration or constructor. 53
CollapsibleIfStatements These nested if statements could be combined 7987
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 8386
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 99

fr/paris/lutece/plugins/xpageportlet/web/portlet/XPagePortletJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 62256
ImmutableField Private field '_xPagePorletService' could be made final; it is only initialized in the declaration or constructor. 75
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 86
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 86
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 109
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 109
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 230
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 230
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 245

Files

fr/paris/lutece/plugins/xpageportlet/business/portlet/XPagePortletDAO.java

Rule Violation Priority Line
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 6782
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 162
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 162
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 176
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 194218

fr/paris/lutece/plugins/xpageportlet/business/portlet/XPagePortletHome.java

Rule Violation Priority Line
UncommentedEmptyConstructor Document empty constructor 3 5658
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 5658
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5658
NonThreadSafeSingleton Singleton is not thread safe 3 6770

fr/paris/lutece/plugins/xpageportlet/service/http/XPagePortletHttpServletRequest.java

Rule Violation Priority Line
ImmutableField Private field '_mapParameters' could be made final; it is only initialized in the declaration or constructor. 3 53
CollapsibleIfStatements These nested if statements could be combined 3 7987
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 8386
ReturnEmptyArrayRatherThanNull Return an empty array rather than null. 1 97127
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 99

fr/paris/lutece/plugins/xpageportlet/web/portlet/XPagePortletJspBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 62256
ImmutableField Private field '_xPagePorletService' could be made final; it is only initialized in the declaration or constructor. 3 75
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 86
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 86
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 109
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 109
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 230
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 230
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 245