PMD Results
The following document contains the results of PMD 4.2.5.
Files
org/apache/hadoop/chukwa/analysis/salsa/visualization/Heatmap.java
Violation |
Line |
Avoid unused constructor parameters such as 'shuffles'. |
159 - 179 |
org/apache/hadoop/chukwa/datacollection/adaptor/ExecAdaptor.java
Violation |
Line |
Avoid unused imports such as 'org.json.simple.parser.ParseException' |
27 |
org/apache/hadoop/chukwa/datacollection/adaptor/JMXAdaptor.java
Violation |
Line |
No need to import a type that lives in the same package |
51 |
No need to import a type that lives in the same package |
52 |
No need to import a type that lives in the same package |
53 |
org/apache/hadoop/chukwa/datacollection/adaptor/RestAdaptor.java
Violation |
Line |
Avoid unused private fields such as 'c'. |
42 |
org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/FileTailingAdaptor.java
Violation |
Line |
Avoid unused imports such as 'org.apache.hadoop.chukwa.util.ExceptionUtil' |
25 |
Avoid empty catch blocks |
222 - 224 |
org/apache/hadoop/chukwa/datacollection/agent/ChukwaAgent.java
Violation |
Line |
Avoid unused imports such as 'org.apache.hadoop.chukwa.datacollection.connector.PipelineConnector' |
49 |
Avoid unused imports such as 'org.apache.hadoop.fs.Path' |
56 |
org/apache/hadoop/chukwa/datacollection/agent/rest/AdaptorConfig.java
Violation |
Line |
Avoid unused imports such as 'javax.xml.bind.annotation.XmlAttribute' |
20 |
org/apache/hadoop/chukwa/datacollection/agent/rest/AdaptorController.java
Violation |
Line |
Avoid unused imports such as 'org.apache.hadoop.chukwa.util.ExceptionUtil' |
24 |
Avoid unused imports such as 'org.apache.commons.lang.StringEscapeUtils' |
25 |
Avoid unused imports such as 'org.json.JSONObject' |
26 |
Avoid unused imports such as 'org.json.JSONException' |
27 |
Avoid unused imports such as 'javax.ws.rs.QueryParam' |
35 |
Avoid unused imports such as 'javax.ws.rs.WebApplicationException' |
39 |
Avoid unused imports such as 'javax.ws.rs.core.Context' |
40 |
Avoid unused imports such as 'javax.servlet.ServletContext' |
43 |
Avoid unused private fields such as 'log'. |
58 |
org/apache/hadoop/chukwa/datacollection/connector/PipelineConnector.java
Violation |
Line |
No need to import a type that lives in the same package |
39 |
org/apache/hadoop/chukwa/datacollection/writer/hbase/HBaseWriter.java
Violation |
Line |
Avoid unused imports such as 'org.apache.hadoop.hbase.ZooKeeperConnectionException' |
44 |
Avoid unused imports such as 'org.apache.hadoop.hbase.client.HTablePool' |
49 |
org/apache/hadoop/chukwa/extraction/demux/processor/mapper/JobTrackerProcessor.java
Violation |
Line |
Avoid empty if statements |
141 - 143 |
org/apache/hadoop/chukwa/extraction/engine/datasource/record/ChukwaFileParser.java
Violation |
Line |
Avoid empty if statements |
122 - 125 |
Avoid empty catch blocks |
140 - 141 |
org/apache/hadoop/chukwa/extraction/engine/datasource/record/ChukwaRecordDataSource.java
Violation |
Line |
Avoid empty catch blocks |
357 - 358 |
org/apache/hadoop/chukwa/extraction/engine/datasource/record/ChukwaSequenceFileParser.java
Violation |
Line |
Avoid empty catch blocks |
128 - 129 |
org/apache/hadoop/chukwa/hicc/Chart.java
Violation |
Line |
Avoid unused imports such as 'java.text.SimpleDateFormat' |
28 |
Avoid unused imports such as 'javax.swing.text.html.HTMLDocument.Iterator' |
30 |
Avoid empty if statements |
196 - 217 |
org/apache/hadoop/chukwa/inputtools/mdl/TorqueInfoProcessor.java
Violation |
Line |
Avoid unused constructor parameters such as 'mdlConfig'. |
50 - 57 |
org/apache/hadoop/chukwa/inputtools/plugin/ExecPlugin.java
Violation |
Line |
Avoid empty if statements |
86 - 89 |
org/apache/hadoop/chukwa/inputtools/plugin/metrics/ExecHelper.java
Violation |
Line |
Avoid unused private fields such as 'log'. |
26 |
org/apache/hadoop/chukwa/rest/bean/CatalogBean.java
Violation |
Line |
Avoid unused private fields such as 'log'. |
34 |
org/apache/hadoop/chukwa/rest/bean/CategoryBean.java
Violation |
Line |
Avoid unused private fields such as 'log'. |
32 |
org/apache/hadoop/chukwa/rest/resource/WidgetResource.java
Violation |
Line |
Avoid unused private fields such as 'log'. |
41 |
org/apache/hadoop/chukwa/util/Filter.java
Violation |
Line |
Avoid unused imports such as 'java.util.regex.PatternSyntaxException' |
23 |