Fork me on GitHub

PMD Results

The following document contains the results of PMD 5.3.5.

Files

fr/paris/lutece/plugins/whatsnew/business/WhatsNew.java

Violation Line
Abstract classes should be named AbstractXXX 53274
Avoid unnecessary constructors - the compiler will generate these for you 7678
Document empty constructor 7678

fr/paris/lutece/plugins/whatsnew/business/WhatsNewDAO.java

Violation Line
This statement may have some unnecessary parentheses 89
This statement may have some unnecessary parentheses 121
This statement may have some unnecessary parentheses 158
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 195
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 245
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 302
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 355
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 356
This statement may have some unnecessary parentheses 361
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 384
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 385
This statement may have some unnecessary parentheses 390
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 414
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 415
This statement may have some unnecessary parentheses 420

fr/paris/lutece/plugins/whatsnew/business/WhatsNewTypeDocument.java

Violation Line
Document empty constructor 5557
Avoid unnecessary constructors - the compiler will generate these for you 5557
It is a good practice to call super() in a constructor 5557
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 103
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 104
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 105
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 106
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 107
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 108
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 109

fr/paris/lutece/plugins/whatsnew/business/WhatsNewTypePage.java

Violation Line
Avoid unnecessary constructors - the compiler will generate these for you 5456
It is a good practice to call super() in a constructor 5456
Document empty constructor 5456
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 84
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 85
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 86

fr/paris/lutece/plugins/whatsnew/business/WhatsNewTypePortlet.java

Violation Line
It is a good practice to call super() in a constructor 5557
Document empty constructor 5557
Avoid unnecessary constructors - the compiler will generate these for you 5557
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 103
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 104
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 105
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 106
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 107
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 108
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 109

fr/paris/lutece/plugins/whatsnew/business/portlet/WhatsNewPortlet.java

Violation Line
The class 'WhatsNewPortlet' has a Standard Cyclomatic Complexity of 2 (Highest = 11). 62359
The class 'WhatsNewPortlet' has a Modified Cyclomatic Complexity of 2 (Highest = 11). 62359
The class 'WhatsNewPortlet' has a Cyclomatic Complexity of 2 (Highest = 12). 62359
It is a good practice to call super() in a constructor 7679
A getX() method which returns a boolean should be named isX() 8588
A getX() method which returns a boolean should be named isX() 103106
A getX() method which returns a boolean should be named isX() 121124
A getX() method which returns a boolean should be named isX() 193196
A getX() method which returns a boolean should be named isX() 221224
The method 'getXml' has a Modified Cyclomatic Complexity of 11. 240342
The method getXml() has an NPath complexity of 576 240342
The method 'getXml' has a Cyclomatic Complexity of 12. 240342
Avoid really long methods. 240342
The method 'getXml' has a Standard Cyclomatic Complexity of 11. 240342

fr/paris/lutece/plugins/whatsnew/business/portlet/WhatsNewPortletDAO.java

Violation Line
Avoid excessively long variable names like SQL_QUERY_DELETE_PAGE_WHATSNEW_FROM_ID_WHATSNEW_PORTLET 62
Avoid excessively long variable names like SQL_QUERY_DELETE_PORTLET_WHATSNEW_FROM_ID_WHATSNEW_PORTLET 69
Avoid excessively long variable names like SQL_QUERY_DELETE_DOCUMENT_WHATSNEW_FROM_ID_WHATSNEW_PORTLET 76
Avoid excessively long variable names like SQL_QUERY_DELETE_DOCUMENT_WHATSNEW_FROM_ID_DOCUMENT_ID_PORTLET 77
Avoid variables with short names like p 88
Avoid variables with short names like p 155

fr/paris/lutece/plugins/whatsnew/business/portlet/WhatsNewPortletHome.java

Violation Line
It is a good practice to call super() in a constructor 6365
Avoid unnecessary constructors - the compiler will generate these for you 6365
Document empty constructor 6365
Singleton is not thread safe 7376

fr/paris/lutece/plugins/whatsnew/service/WhatsNewResourceIdService.java

Violation Line
It is a good practice to call super() in a constructor 6164
Avoid variables with short names like rt 71
Avoid variables with short names like p 77

fr/paris/lutece/plugins/whatsnew/service/WhatsNewService.java

Violation Line
Singleton is not thread safe 8487
Document empty method 9697
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 371

fr/paris/lutece/plugins/whatsnew/service/parameter/WhatsNewParameterService.java

Violation Line
Singleton is not thread safe 5760
Document empty method 6970

fr/paris/lutece/plugins/whatsnew/service/portlet/WhatsNewPortletService.java

Violation Line
Singleton is not thread safe 6366
Document empty method 7576

fr/paris/lutece/plugins/whatsnew/utils/constants/WhatsNewConstants.java

Violation Line
Avoid excessively long variable names like PROPERTY_DAEMON_MODERATED_ELEMENTS_CLEANER_LANGUAGE 93

fr/paris/lutece/plugins/whatsnew/utils/sort/WhatsNewComparator.java

Violation Line
The class 'WhatsNewComparator' has a Modified Cyclomatic Complexity of 6 (Highest = 11). 49122
The class 'WhatsNewComparator' has a Cyclomatic Complexity of 10 (Highest = 19). 49122
The class 'WhatsNewComparator' has a Standard Cyclomatic Complexity of 6 (Highest = 11). 49122
Private field '_nOrder' could be made final; it is only initialized in the declaration or constructor. 52
Private field '_bIsAscSort' could be made final; it is only initialized in the declaration or constructor. 53
The method 'compare' has a Standard Cyclomatic Complexity of 11. 77121
Avoid variables with short names like w1 77
The method 'compare' has a Modified Cyclomatic Complexity of 11. 77121
Avoid variables with short names like w2 77
The method 'compare' has a Cyclomatic Complexity of 19. 77121

fr/paris/lutece/plugins/whatsnew/web/WhatsNewAdminDashboardComponent.java

Violation Line
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 82

fr/paris/lutece/plugins/whatsnew/web/portlet/WhatsNewPortletJspBean.java

Violation Line
The class 'WhatsNewPortletJspBean' has a Cyclomatic Complexity of 4 (Highest = 11). 68420
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 92
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 120
The method 'getPortletData' has a Cyclomatic Complexity of 11. 251324