Fork me on GitHub

Résultats PMD

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

Fichiers

fr/paris/lutece/plugins/webappcontainer/business/Site.java

Violation Ligne
Avoid short class names like Site 43212

fr/paris/lutece/plugins/webappcontainer/business/WebappResponse.java

Violation Ligne
Return an empty array rather than null. 5665
Consider using varargs for methods or constructors which take an array the last parameter. 70
Return an empty array rather than null. 114123

fr/paris/lutece/plugins/webappcontainer/service/WebappcontainerPlugin.java

Violation Ligne
Document empty method 5051

fr/paris/lutece/plugins/webappcontainer/util/HtmlDocumentWebappcontainer.java

Violation Ligne
The class 'HtmlDocumentWebappcontainer' has a Cyclomatic Complexity of 4 (Highest = 11). 69580
The String literal "href" appears 4 times in this file; the first occurrence is on line 184 184
Private field '_content' could be made final; it is only initialized in the declaration or constructor. 197
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 197
Avoid variables with short names like pw 215
The method 'convertUrls' has a Cyclomatic Complexity of 11. 240315
The method convertUrls() has an NPath complexity of 290 240315
Use equals() to compare object references. 243
Use equals() to compare object references. 284
Avoid variables with short names like tf 435
Avoid variables with short names like tf 488
Private field '_strTagName' could be made final; it is only initialized in the declaration or constructor. 520
Private field '_strAttributeName' could be made final; it is only initialized in the declaration or constructor. 521
Private field '_strTestedAttributeName' could be made final; it is only initialized in the declaration or constructor. 522
Private field '_strTestedAttributeValue' could be made final; it is only initialized in the declaration or constructor. 523

fr/paris/lutece/plugins/webappcontainer/util/HtmlDocumentWebappcontainerException.java

Violation Ligne
Avoid variables with short names like e 48

fr/paris/lutece/plugins/webappcontainer/util/HttpAccess.java

Violation Ligne
A high number of imports can indicate a high degree of coupling within an object. 34515
The class 'HttpAccess' has a Standard Cyclomatic Complexity of 4 (Highest = 10). 73515
The class 'HttpAccess' has a Modified Cyclomatic Complexity of 4 (Highest = 10). 73515
The class 'HttpAccess' has a Cyclomatic Complexity of 5 (Highest = 13). 73515
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 153
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 161
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 187
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 214
Avoid variables with short names like i 235
The method 'doRequest' has a Standard Cyclomatic Complexity of 10. 267372
Avoid really long methods. 267372
The method 'doRequest' has a Modified Cyclomatic Complexity of 10. 267372
The method 'doRequest' has a Cyclomatic Complexity of 11. 267372
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 300
The method getHttpClient() has an NPath complexity of 240 381446
The method 'getHttpClient' has a Cyclomatic Complexity of 13. 381446
Avoid declaring a variable if it is unreferenced before a possible exit point. 383
Avoid declaring a variable if it is unreferenced before a possible exit point. 384
Avoid declaring a variable if it is unreferenced before a possible exit point. 385
Avoid declaring a variable if it is unreferenced before a possible exit point. 386
Avoid declaring a variable if it is unreferenced before a possible exit point. 387
Avoid declaring a variable if it is unreferenced before a possible exit point. 388
Avoid declaring a variable if it is unreferenced before a possible exit point. 389
Avoid declaring a variable if it is unreferenced before a possible exit point. 390
Avoid declaring a variable if it is unreferenced before a possible exit point. 391
Avoid declaring a variable if it is unreferenced before a possible exit point. 392
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 458
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 474
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 477
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 482

fr/paris/lutece/plugins/webappcontainer/util/HttpAccessException.java

Violation Ligne
Avoid variables with short names like e 48

fr/paris/lutece/plugins/webappcontainer/util/UrlUtils.java

Violation Ligne
Avoid importing anything from the sun.* packages 40
Avoid importing anything from the sun.* packages 41
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 92
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 109

fr/paris/lutece/plugins/webappcontainer/web/WebappcontainerApp.java

Violation Ligne
The Logger variable declaration does not contain the static and final modifiers 103
Avoid unused method parameters such as 'nMode'. 178
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 186
Avoid unused method parameters such as 'plugin'. 206
Avoid unused method parameters such as 'nMode'. 206
Avoid unused method parameters such as 'strCode'. 206
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 210

fr/paris/lutece/plugins/webappcontainer/web/WebappcontainerJspBean.java

Violation Ligne
The class 'WebappcontainerJspBean' has a Modified Cyclomatic Complexity of 4 (Highest = 11). 64438
The class 'WebappcontainerJspBean' has a Standard Cyclomatic Complexity of 4 (Highest = 11). 64438
The class 'WebappcontainerJspBean' has a Cyclomatic Complexity of 7 (Highest = 24). 64438
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 158
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 176
The method doCreateSite() has an NPath complexity of 1944 196271
The method 'doCreateSite' has a Cyclomatic Complexity of 18. 196271
Avoid declaring a variable if it is unreferenced before a possible exit point. 201
Avoid declaring a variable if it is unreferenced before a possible exit point. 202
Avoid declaring a variable if it is unreferenced before a possible exit point. 204
Avoid declaring a variable if it is unreferenced before a possible exit point. 205
Avoid declaring a variable if it is unreferenced before a possible exit point. 206
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 286
The method doModifySite() has an NPath complexity of 28512 307403
The method 'doModifySite' has a Standard Cyclomatic Complexity of 11. 307403
The method 'doModifySite' has a Modified Cyclomatic Complexity of 11. 307403
The method 'doModifySite' has a Cyclomatic Complexity of 24. 307403
Avoid declaring a variable if it is unreferenced before a possible exit point. 313
Avoid declaring a variable if it is unreferenced before a possible exit point. 314
Avoid declaring a variable if it is unreferenced before a possible exit point. 316
Avoid declaring a variable if it is unreferenced before a possible exit point. 317
Avoid declaring a variable if it is unreferenced before a possible exit point. 318

fr/paris/lutece/plugins/webappcontainer/web/WebappcontainerResourceServlet.java

Violation Ligne
Avoid declaring a variable if it is unreferenced before a possible exit point. 124
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 174
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 195