Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 6.13.0.

Violations By Priority

Priority 3

fr/paris/lutece/plugins/indicator/business/IndicatorDAO.java

Rule Violation Ligne
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 199

fr/paris/lutece/plugins/indicator/business/IndicatorHistoryDAO.java

Rule Violation Ligne
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 137

fr/paris/lutece/plugins/indicator/service/IndicatorUpdaterService.java

Rule Violation Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 5867
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 38 characters appended. 88
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 105
ConfusingTernary Avoid if (x != y) ..; else ..; 135142

fr/paris/lutece/plugins/indicator/web/IndicatorHistoryJspBean.java

Rule Violation Ligne
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 113
ConfusingTernary Avoid if (x != y) ..; else ..; 134
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 157
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 168
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 173
ConfusingTernary Avoid if (x != y) ..; else ..; 175182
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 184
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 227
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 271
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 281

fr/paris/lutece/plugins/indicator/web/IndicatorJspBean.java

Rule Violation Ligne
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 112
ConfusingTernary Avoid if (x != y) ..; else ..; 130

fr/paris/lutece/plugins/indicator/web/ManageIndicatorJspBean.java

Rule Violation Ligne
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 62
AddEmptyString Do not add empty strings 91

Fichiers

fr/paris/lutece/plugins/indicator/business/IndicatorDAO.java

Rule Violation Priority Ligne
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 199

fr/paris/lutece/plugins/indicator/business/IndicatorHistoryDAO.java

Rule Violation Priority Ligne
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 137

fr/paris/lutece/plugins/indicator/service/IndicatorUpdaterService.java

Rule Violation Priority Ligne
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 5867
InsufficientStringBufferDeclaration StringBuffer constructor is initialized with size 16, but has at least 38 characters appended. 3 88
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 105
ConfusingTernary Avoid if (x != y) ..; else ..; 3 135142

fr/paris/lutece/plugins/indicator/web/IndicatorHistoryJspBean.java

Rule Violation Priority Ligne
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 113
ConfusingTernary Avoid if (x != y) ..; else ..; 3 134
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 157
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 168
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 173
ConfusingTernary Avoid if (x != y) ..; else ..; 3 175182
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 184
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 227
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 271
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 281

fr/paris/lutece/plugins/indicator/web/IndicatorJspBean.java

Rule Violation Priority Ligne
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 112
ConfusingTernary Avoid if (x != y) ..; else ..; 3 130

fr/paris/lutece/plugins/indicator/web/ManageIndicatorJspBean.java

Rule Violation Priority Ligne
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 3 62
AddEmptyString Do not add empty strings 3 91