Résultats PMD
Le document suivant contient les résultats de PMD 5.5.1.
Fichiers
fr/paris/lutece/plugins/gismap/business/AddressParam.java
Violation |
Ligne |
Avoid unused imports such as 'java.util.List' |
36 |
Avoid unused imports such as 'java.util.List' |
36 |
fr/paris/lutece/plugins/gismap/business/AddressParamHome.java
Violation |
Ligne |
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. |
40–73 |
fr/paris/lutece/plugins/gismap/business/IMapParameterDAO.java
Violation |
Ligne |
Avoid modifiers which are implied by the context |
38 |
fr/paris/lutece/plugins/gismap/business/IViewDAO.java
Violation |
Ligne |
Avoid modifiers which are implied by the context |
43 |
Avoid modifiers which are implied by the context |
45 |
Avoid modifiers which are implied by the context |
47 |
fr/paris/lutece/plugins/gismap/business/MapParameter.java
Violation |
Ligne |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
43 |
fr/paris/lutece/plugins/gismap/business/MapParameterDAO.java
Violation |
Ligne |
The class 'MapParameterDAO' has a Standard Cyclomatic Complexity of 5 (Highest = 11). |
16–292 |
The class 'MapParameterDAO' has a Modified Cyclomatic Complexity of 5 (Highest = 11). |
16–292 |
The class 'MapParameterDAO' has a Cyclomatic Complexity of 5 (Highest = 11). |
16–292 |
The method 'findById' has a Modified Cyclomatic Complexity of 11. |
74–209 |
The method 'findById' has a Standard Cyclomatic Complexity of 11. |
74–209 |
The method 'findById' has a Cyclomatic Complexity of 11. |
74–209 |
The method findById() has an NPath complexity of 1024 |
74–209 |
Avoid really long methods. |
74–209 |
Avoid using Literals in Conditional Statements |
216 |
Prefer StringBuffer over += for concatenating strings |
222 |
Prefer StringBuffer over += for concatenating strings |
226 |
Avoid using Literals in Conditional Statements |
231 |
Avoid using Literals in Conditional Statements |
246 |
Prefer StringBuffer over += for concatenating strings |
252 |
Prefer StringBuffer over += for concatenating strings |
256 |
Avoid using Literals in Conditional Statements |
261 |
fr/paris/lutece/plugins/gismap/business/MapParameterHome.java
Violation |
Ligne |
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. |
41–50 |
fr/paris/lutece/plugins/gismap/business/View.java
Violation |
Ligne |
Avoid short class names like View |
36–106 |
fr/paris/lutece/plugins/gismap/business/ViewDAO.java
Violation |
Ligne |
Avoid unused imports such as 'fr.paris.lutece.util.sql.DAOUtil' |
40 |
Avoid unused imports such as 'fr.paris.lutece.util.sql.DAOUtil' |
40 |
Avoid unused private fields such as 'SQL_QUERY_SELECT_RECORD_FIELD'. |
48 |
fr/paris/lutece/plugins/gismap/business/ViewHome.java
Violation |
Ligne |
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. |
47–65 |
fr/paris/lutece/plugins/gismap/service/GismapService.java
Violation |
Ligne |
Avoid unused imports such as 'fr.paris.lutece.plugins.gismap.business.MapParameter' |
41 |
Avoid unused imports such as 'fr.paris.lutece.plugins.gismap.business.MapParameter' |
41 |
Avoid unused imports such as 'fr.paris.lutece.plugins.gismap.utils.GismapUtils' |
44 |
Avoid unused imports such as 'fr.paris.lutece.plugins.gismap.utils.GismapUtils' |
44 |
Avoid unused imports such as 'fr.paris.lutece.portal.web.l10n.LocaleService' |
45 |
Avoid unused imports such as 'fr.paris.lutece.portal.web.l10n.LocaleService' |
45 |
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPathService' |
47 |
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPathService' |
47 |
Avoid unused imports such as 'java.util.Locale' |
51 |
Avoid unused imports such as 'java.util.Locale' |
51 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
108 |
fr/paris/lutece/plugins/gismap/utils/GismapUtils.java
Violation |
Ligne |
Avoid unused private fields such as '_dao'. |
63 |
fr/paris/lutece/plugins/gismap/web/GismapJspBean.java
Violation |
Ligne |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
85 |
fr/paris/lutece/plugins/gismap/web/ProxyGeoServer.java
Violation |
Ligne |
The class 'ProxyGeoServer' has a Standard Cyclomatic Complexity of 5 (Highest = 10). |
65–205 |
The class 'ProxyGeoServer' has a Cyclomatic Complexity of 5 (Highest = 11). |
65–205 |
The class 'ProxyGeoServer' has a Modified Cyclomatic Complexity of 5 (Highest = 10). |
65–205 |
Avoid unused private fields such as 'servletContext'. |
70 |
Perhaps 'servletContext' could be replaced by a local variable. |
70 |
The Logger variable declaration does not contain the static and final modifiers |
71 |
The method 'doPost' has a Cyclomatic Complexity of 11. |
109–204 |
The method 'doPost' has a Modified Cyclomatic Complexity of 10. |
109–204 |
The method doPost() has an NPath complexity of 542 |
109–204 |
The method 'doPost' has a Standard Cyclomatic Complexity of 10. |
109–204 |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
118 |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
119 |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
120 |
Avoid unused local variables such as 'headerText'. |
121 |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
121 |
Prefer StringBuffer over += for concatenating strings |
126 |
Position literals first in String comparisons |
158 |
Avoid using while statements without curly braces |
163–164 |
Avoid using while statements without curly braces |
188–189 |
New exception is thrown in catch block, original stack trace may be lost |
199 |
Avoid empty finally blocks |
201–203 |
fr/paris/lutece/plugins/gismap/web/rs/GisProxy.java
Violation |
Ligne |
The class 'GisProxy' has a Cyclomatic Complexity of 8 (Highest = 11). |
59–180 |
The class 'GisProxy' has a Modified Cyclomatic Complexity of 8 (Highest = 11). |
59–180 |
The class 'GisProxy' has a Standard Cyclomatic Complexity of 8 (Highest = 11). |
59–180 |
The method 'manageProxyConfiguration' has a Cyclomatic Complexity of 11. |
73–129 |
The method 'manageProxyConfiguration' has a Modified Cyclomatic Complexity of 11. |
73–129 |
The method 'manageProxyConfiguration' has a Standard Cyclomatic Complexity of 11. |
73–129 |
These nested if statements could be combined |
84–87 |
Deeply nested if..then statements are hard to read |
115–118 |
These nested if statements could be combined |
115–118 |
Deeply nested if..then statements are hard to read |
123–126 |
These nested if statements could be combined |
123–126 |
String.indexOf(char) is faster than String.indexOf(String). |
144 |
Do not add empty strings |
163 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
171 |