Résultats PMD
Le document suivant contient les résultats de PMD 6.13.0.
Violations By Priority
Priority 1
fr/paris/lutece/plugins/openagenda/utils/OpenagendaUtils.java
Priority 3
fr/paris/lutece/plugins/openagenda/api/mapping/v2/Accessibility.java
fr/paris/lutece/plugins/openagenda/api/mapping/v2/EventData.java
fr/paris/lutece/plugins/openagenda/api/mapping/v2/Keywords.java
Rule |
Violation |
Ligne |
DataClass |
The class 'Keywords' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=12, WMC=12) |
46–168 |
fr/paris/lutece/plugins/openagenda/api/mapping/v2/LocationData.java
fr/paris/lutece/plugins/openagenda/business/portlet/OpenagendaPortlet.java
Rule |
Violation |
Ligne |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
70 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
76 |
fr/paris/lutece/plugins/openagenda/business/portlet/OpenagendaPortletHome.java
fr/paris/lutece/plugins/openagenda/client/v2/EventsFilters.java
fr/paris/lutece/plugins/openagenda/client/v2/EventsService.java
fr/paris/lutece/plugins/openagenda/service/OpenagendaV2Service.java
Rule |
Violation |
Ligne |
ImmutableField |
Private field '_agendasService' could be made final; it is only initialized in the declaration or constructor. |
56 |
ImmutableField |
Private field '_eventsService' could be made final; it is only initialized in the declaration or constructor. |
57 |
ImmutableField |
Private field '_locationsService' could be made final; it is only initialized in the declaration or constructor. |
58 |
CommentRequired |
Public method and constructor comments are required |
62–70 |
NonThreadSafeSingleton |
Singleton is not thread safe |
64–67 |
fr/paris/lutece/plugins/openagenda/utils/OpenagendaUtils.java
fr/paris/lutece/plugins/openagenda/web/AgendaJspBean.java
fr/paris/lutece/plugins/openagenda/web/AgendaXPage.java
fr/paris/lutece/plugins/openagenda/web/ManageOpenagendaJspBean.java
fr/paris/lutece/plugins/openagenda/web/portlet/OpenagendaPortletJspBean.java
Rule |
Violation |
Ligne |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
71 |
Priority 4
fr/paris/lutece/plugins/openagenda/api/mapping/v2/Age.java
Fichiers
fr/paris/lutece/plugins/openagenda/api/mapping/v2/Accessibility.java
fr/paris/lutece/plugins/openagenda/api/mapping/v2/Age.java
fr/paris/lutece/plugins/openagenda/api/mapping/v2/EventData.java
fr/paris/lutece/plugins/openagenda/api/mapping/v2/Keywords.java
Rule |
Violation |
Priority |
Ligne |
DataClass |
The class 'Keywords' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=12, WMC=12) |
3 |
46–168 |
fr/paris/lutece/plugins/openagenda/api/mapping/v2/LocationData.java
fr/paris/lutece/plugins/openagenda/business/portlet/OpenagendaPortlet.java
Rule |
Violation |
Priority |
Ligne |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
70 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
76 |
fr/paris/lutece/plugins/openagenda/business/portlet/OpenagendaPortletHome.java
fr/paris/lutece/plugins/openagenda/client/v2/EventsFilters.java
fr/paris/lutece/plugins/openagenda/client/v2/EventsService.java
Rule |
Violation |
Priority |
Ligne |
UseStringBufferForStringAppends |
Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings |
3 |
70 |
fr/paris/lutece/plugins/openagenda/service/OpenagendaV2Service.java
Rule |
Violation |
Priority |
Ligne |
ImmutableField |
Private field '_agendasService' could be made final; it is only initialized in the declaration or constructor. |
3 |
56 |
ImmutableField |
Private field '_eventsService' could be made final; it is only initialized in the declaration or constructor. |
3 |
57 |
ImmutableField |
Private field '_locationsService' could be made final; it is only initialized in the declaration or constructor. |
3 |
58 |
CommentRequired |
Public method and constructor comments are required |
3 |
62–70 |
NonThreadSafeSingleton |
Singleton is not thread safe |
3 |
64–67 |
fr/paris/lutece/plugins/openagenda/utils/OpenagendaUtils.java
fr/paris/lutece/plugins/openagenda/web/AgendaJspBean.java
fr/paris/lutece/plugins/openagenda/web/AgendaXPage.java
fr/paris/lutece/plugins/openagenda/web/ManageOpenagendaJspBean.java
fr/paris/lutece/plugins/openagenda/web/portlet/OpenagendaPortletJspBean.java
Rule |
Violation |
Priority |
Ligne |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
71 |