Fork me on GitHub

PMD Results

The following document contains the results of PMD 5.5.1.

Files

fr/paris/lutece/plugins/htmldocs/modules/solr/indexer/SolrDocIndexer.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 1459
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 105
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 117
A method/constructor shouldnt explicitly throw java.lang.Exception 133
A method/constructor shouldnt explicitly throw java.lang.Exception 133
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 160
New exception is thrown in catch block, original stack trace may be lost 164
Unnecessary wrapper object creation 184
New exception is thrown in catch block, original stack trace may be lost 241
The String literal "Error during document parsing." appears 4 times in this file; the first occurrence is on line 241 241
New exception is thrown in catch block, original stack trace may be lost 245
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 265
Avoid appending characters as strings in StringBuffer.append. 266
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 266
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 267
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 268
Avoid appending characters as strings in StringBuffer.append. 268
Unnecessary use of fully qualified name 'org.apache.tika.parser.html.HtmlParser' due to existing import 'org.apache.tika.parser.html.HtmlParser' 375
New exception is thrown in catch block, original stack trace may be lost 380
New exception is thrown in catch block, original stack trace may be lost 384
Avoid variables with short names like it 415
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 431
Avoid throwing raw exception types. 433
Avoid variables with short names like sb 454