This project has retired. For details please refer to its Attic page.
Apache Chukwa - PMD Results

PMD Results

The following document contains the results of PMD 5.2.3.

Files

org/apache/hadoop/chukwa/ChukwaArchiveKey.java

Violation Line
Useless parentheses. 187
Useless parentheses. 187
Useless parentheses. 196
Useless parentheses. 196197
Useless parentheses. 212
Useless parentheses. 221
Useless parentheses. 302
Useless parentheses. 323
Useless parentheses. 342
Useless parentheses. 353
Useless parentheses. 370

org/apache/hadoop/chukwa/Chunk.java

Violation Line
Avoid modifiers which are implied by the context 35
Avoid modifiers which are implied by the context 37
Avoid modifiers which are implied by the context 44
Avoid modifiers which are implied by the context 46
Avoid modifiers which are implied by the context 49
Avoid modifiers which are implied by the context 51
Avoid modifiers which are implied by the context 56
Avoid modifiers which are implied by the context 61
Avoid modifiers which are implied by the context 75
Avoid modifiers which are implied by the context 77
Avoid modifiers which are implied by the context 87
Avoid modifiers which are implied by the context 89
Avoid modifiers which are implied by the context 96
Avoid modifiers which are implied by the context 104
Avoid modifiers which are implied by the context 110
Avoid modifiers which are implied by the context 117
Avoid modifiers which are implied by the context 125
Avoid modifiers which are implied by the context 127

org/apache/hadoop/chukwa/analysis/salsa/fsm/DataNodeClientTraceMapper.java

Violation Line
Useless parentheses. 70
Useless parentheses. 142

org/apache/hadoop/chukwa/analysis/salsa/fsm/FSMBuilder.java

Violation Line
Useless parentheses. 93
Useless parentheses. 94
Useless parentheses. 95
Useless parentheses. 96
Useless parentheses. 97
Useless parentheses. 115
Useless parentheses. 116
Useless parentheses. 117
Useless parentheses. 118
Useless parentheses. 136
Useless parentheses. 137
Useless parentheses. 138
Useless parentheses. 139
Useless parentheses. 144
Useless parentheses. 170
Useless parentheses. 171
Useless parentheses. 172
Useless parentheses. 173
Useless parentheses. 194
Useless parentheses. 195
Useless parentheses. 196
Useless parentheses. 197
Useless parentheses. 218
Useless parentheses. 219
Useless parentheses. 220
Useless parentheses. 221
Useless parentheses. 236
Useless parentheses. 237
Useless parentheses. 238
Useless parentheses. 239
Useless parentheses. 240
Useless parentheses. 263
Useless parentheses. 347
Useless parentheses. 356
Useless parentheses. 395
Useless parentheses. 428
Useless parentheses. 433
Useless parentheses. 446
Avoid unused local variables such as 'res'. 451
Avoid unnecessary return statements 453

org/apache/hadoop/chukwa/analysis/salsa/fsm/FSMIntermedEntry.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 24
Useless parentheses. 243
Useless parentheses. 257
Avoid unused local variables such as 'mapKeys'. 270

org/apache/hadoop/chukwa/analysis/salsa/fsm/FSMIntermedEntryPartitioner.java

Violation Line
Useless parentheses. 32

org/apache/hadoop/chukwa/analysis/salsa/fsm/FSMType.java

Violation Line
Useless parentheses. 30

org/apache/hadoop/chukwa/analysis/salsa/fsm/HDFSState.java

Violation Line
Useless parentheses. 32

org/apache/hadoop/chukwa/analysis/salsa/fsm/JobHistoryTaskDataMapper.java

Violation Line
Useless parentheses. 77
Useless parentheses. 120
Useless parentheses. 216
Useless parentheses. 241
Useless parentheses. 242
Useless parentheses. 359

org/apache/hadoop/chukwa/analysis/salsa/fsm/MapRedState.java

Violation Line
Useless parentheses. 35

org/apache/hadoop/chukwa/analysis/salsa/fsm/StateType.java

Violation Line
Useless parentheses. 30

org/apache/hadoop/chukwa/analysis/salsa/fsm/TaskTrackerClientTraceMapper.java

Violation Line
Useless parentheses. 71
Useless parentheses. 141

org/apache/hadoop/chukwa/analysis/salsa/visualization/Heatmap.java

Violation Line
Avoid unused constructor parameters such as 'shuffles'. 163
Unnecessary use of fully qualified name 'java.awt.Color.BLACK' due to existing import 'java.awt.Color' 348
Unnecessary use of fully qualified name 'java.awt.Color.BLACK' due to existing import 'java.awt.Color' 373
Unnecessary use of fully qualified name 'java.awt.Color.BLACK' due to existing import 'java.awt.Color' 378
Unnecessary use of fully qualified name 'java.awt.Color.BLACK' due to existing import 'java.awt.Color' 383
Useless parentheses. 522
Useless parentheses. 750

org/apache/hadoop/chukwa/analysis/salsa/visualization/Swimlanes.java

Violation Line
Useless parentheses. 212
Useless parentheses. 212
Useless parentheses. 362

org/apache/hadoop/chukwa/database/Aggregator.java

Violation Line
Avoid unused imports such as 'java.io.FileReader' 24

org/apache/hadoop/chukwa/database/DataExpiration.java

Violation Line
Useless parentheses. 114

org/apache/hadoop/chukwa/database/DatabaseConfig.java

Violation Line
Useless parentheses. 106
Useless parentheses. 190

org/apache/hadoop/chukwa/database/TableCreator.java

Violation Line
Useless parentheses. 46

org/apache/hadoop/chukwa/datacollection/ChunkQueue.java

Violation Line
Avoid modifiers which are implied by the context 37
Avoid modifiers which are implied by the context 4647
Avoid modifiers which are implied by the context 54

org/apache/hadoop/chukwa/datacollection/ChunkReceiver.java

Violation Line
Avoid modifiers which are implied by the context 31

org/apache/hadoop/chukwa/datacollection/DataFactory.java

Violation Line
Unnecessary use of fully qualified name 'java.io.IOException' due to existing import 'java.io.IOException' 138

org/apache/hadoop/chukwa/datacollection/adaptor/Adaptor.java

Violation Line
Avoid modifiers which are implied by the context 5859
Avoid modifiers which are implied by the context 68
Avoid modifiers which are implied by the context 70
Avoid modifiers which are implied by the context 84
Avoid modifiers which are implied by the context 94

org/apache/hadoop/chukwa/datacollection/adaptor/DirTailingAdaptor.java

Violation Line
Useless parentheses. 121

org/apache/hadoop/chukwa/datacollection/adaptor/ExecAdaptor.java

Violation Line
Unnecessary use of fully qualified name 'org.apache.log4j.helpers.ISO8601DateFormat' due to existing import 'org.apache.log4j.helpers.ISO8601DateFormat' 82
Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.*' 83
Unnecessary use of fully qualified name 'java.util.Timer' due to existing import 'java.util.*' 120
Unnecessary use of fully qualified name 'java.util.Timer' due to existing import 'java.util.*' 125

org/apache/hadoop/chukwa/datacollection/adaptor/JMXAdaptor.java

Violation Line
No need to import a type that lives in the same package 53
No need to import a type that lives in the same package 54
No need to import a type that lives in the same package 55

org/apache/hadoop/chukwa/datacollection/adaptor/NotifyOnCommitAdaptor.java

Violation Line
Avoid modifiers which are implied by the context 21

org/apache/hadoop/chukwa/datacollection/adaptor/RestAdaptor.java

Violation Line
Avoid unused private fields such as 'c'. 56

org/apache/hadoop/chukwa/datacollection/adaptor/SocketAdaptor.java

Violation Line
Unnecessary use of fully qualified name 'java.net.SocketException' due to existing import 'java.net.*' 144

org/apache/hadoop/chukwa/datacollection/adaptor/WriteaheadBuffered.java

Violation Line
An empty statement (semicolon) not part of a loop 98
An empty statement (semicolon) not part of a loop 111
An empty statement (semicolon) not part of a loop 124

org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/CharFileTailingAdaptorUTF8NewLineEscaped.java

Violation Line
Avoid empty catch blocks 7779

org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/FileTailingAdaptor.java

Violation Line
Useless parentheses. 123
Useless parentheses. 124
Avoid empty catch blocks 219221

org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/RCheckFTAdaptor.java

Violation Line
Useless parentheses. 57

org/apache/hadoop/chukwa/datacollection/adaptor/heartbeat/StatusChecker.java

Violation Line
Avoid modifiers which are implied by the context 27
Avoid modifiers which are implied by the context 28

org/apache/hadoop/chukwa/datacollection/adaptor/jms/JMSMessageTransformer.java

Violation Line
Avoid modifiers which are implied by the context 38
Avoid modifiers which are implied by the context 48

org/apache/hadoop/chukwa/datacollection/agent/AdaptorManager.java

Violation Line
Avoid modifiers which are implied by the context 55
Avoid modifiers which are implied by the context 5797

org/apache/hadoop/chukwa/datacollection/agent/AgentControlSocketListener.java

Violation Line
Unnecessary use of fully qualified name 'java.util.Map' due to existing import 'java.util.Map' 161

org/apache/hadoop/chukwa/datacollection/agent/MemLimitQueue.java

Violation Line
Useless parentheses. 95

org/apache/hadoop/chukwa/datacollection/agent/NonBlockingMemLimitQueue.java

Violation Line
Useless parentheses. 97

org/apache/hadoop/chukwa/datacollection/collector/servlet/ServletCollector.java

Violation Line
Useless parentheses. 102
Useless parentheses. 102
Unnecessary use of fully qualified name 'java.io.InputStream' due to existing import 'java.io.InputStream' 158

org/apache/hadoop/chukwa/datacollection/connector/Connector.java

Violation Line
Avoid modifiers which are implied by the context 28
Avoid modifiers which are implied by the context 32
Avoid modifiers which are implied by the context 33
Avoid modifiers which are implied by the context 35
Avoid modifiers which are implied by the context 36
Avoid modifiers which are implied by the context 38
Avoid modifiers which are implied by the context 39
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 41
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

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/connector/http/HttpConnector.java

Violation Line
An empty statement (semicolon) not part of a loop 175
Unnecessary use of fully qualified name 'java.io.IOException' due to existing import 'java.io.IOException' 191

org/apache/hadoop/chukwa/datacollection/sender/AsyncAckSender.java

Violation Line
Useless parentheses. 278
Useless parentheses. 279

org/apache/hadoop/chukwa/datacollection/sender/ChukwaHttpSender.java

Violation Line
Useless parentheses. 358

org/apache/hadoop/chukwa/datacollection/sender/ChukwaSender.java

Violation Line
Avoid modifiers which are implied by the context 3940
Avoid modifiers which are implied by the context 42
Avoid modifiers which are implied by the context 44

org/apache/hadoop/chukwa/datacollection/sender/RetryListOfCollectors.java

Violation Line
Unnecessary use of fully qualified name 'java.util.Random' due to existing import 'java.util.*' 118
Useless parentheses. 129
Useless parentheses. 129130

org/apache/hadoop/chukwa/datacollection/test/FileTailerStressTest.java

Violation Line
Avoid unused imports such as 'org.apache.hadoop.chukwa.datacollection.writer.SeqFileWriter' 28

org/apache/hadoop/chukwa/datacollection/test/SinkFileValidator.java

Violation Line
Useless parentheses. 63

org/apache/hadoop/chukwa/datacollection/writer/ChukwaWriter.java

Violation Line
Avoid modifiers which are implied by the context 29
Avoid modifiers which are implied by the context 31
Avoid modifiers which are implied by the context 32
Avoid modifiers which are implied by the context 4454
Avoid modifiers which are implied by the context 62
Avoid modifiers which are implied by the context 74
Avoid modifiers which are implied by the context 81

org/apache/hadoop/chukwa/datacollection/writer/SeqFileWriter.java

Violation Line
Useless parentheses. 290

org/apache/hadoop/chukwa/datacollection/writer/SocketTeeWriter.java

Violation Line
These nested if statements could be combined 250252

org/apache/hadoop/chukwa/datacollection/writer/localfs/LocalWriter.java

Violation Line
Avoid unused private fields such as 'conf'. 97

org/apache/hadoop/chukwa/datacollection/writer/parquet/ChukwaParquetWriter.java

Violation Line
Useless parentheses. 179

org/apache/hadoop/chukwa/datacollection/writer/solr/SolrWriter.java

Violation Line
Avoid empty catch blocks 115117

org/apache/hadoop/chukwa/dataloader/FSMDataLoader.java

Violation Line
Useless parentheses. 93
Useless parentheses. 94
Useless parentheses. 95
Useless parentheses. 96

org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java

Violation Line
Avoid unused constructor parameters such as 'fileName'. 70
Useless parentheses. 180

org/apache/hadoop/chukwa/dataloader/SocketDataLoader.java

Violation Line
Useless parentheses. 104

org/apache/hadoop/chukwa/datastore/ChukwaHBaseStore.java

Violation Line
Unnecessary use of fully qualified name 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' due to existing import 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' 558
Unnecessary use of fully qualified name 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' due to existing import 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' 558
Unnecessary use of fully qualified name 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' due to existing import 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' 559
Unnecessary use of fully qualified name 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' due to existing import 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' 559
Unnecessary use of fully qualified name 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' due to existing import 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' 592
Unnecessary use of fully qualified name 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' due to existing import 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' 593
Unnecessary use of fully qualified name 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' due to existing import 'org.apache.hadoop.chukwa.hicc.bean.SeriesMetaData' 593

org/apache/hadoop/chukwa/datastore/ViewStore.java

Violation Line
Useless parentheses. 127

org/apache/hadoop/chukwa/datatrigger/TriggerAction.java

Violation Line
Avoid modifiers which are implied by the context 2829

org/apache/hadoop/chukwa/extraction/CHUKWA_CONSTANT.java

Violation Line
Avoid modifiers which are implied by the context 22
Avoid modifiers which are implied by the context 23
Avoid modifiers which are implied by the context 24
Avoid modifiers which are implied by the context 25
Avoid modifiers which are implied by the context 29
Avoid modifiers which are implied by the context 30
Avoid modifiers which are implied by the context 31
Avoid modifiers which are implied by the context 32
Avoid modifiers which are implied by the context 34
Avoid modifiers which are implied by the context 35
Avoid modifiers which are implied by the context 36
Avoid modifiers which are implied by the context 39
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 41
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 46
Avoid modifiers which are implied by the context 47
Avoid modifiers which are implied by the context 48
Avoid modifiers which are implied by the context 49
Avoid modifiers which are implied by the context 51
Avoid modifiers which are implied by the context 52
Avoid modifiers which are implied by the context 53
Avoid modifiers which are implied by the context 54
Avoid modifiers which are implied by the context 56
Avoid modifiers which are implied by the context 57
Avoid modifiers which are implied by the context 61
Avoid modifiers which are implied by the context 62
Avoid modifiers which are implied by the context 63
Avoid modifiers which are implied by the context 64
Avoid modifiers which are implied by the context 66
Avoid modifiers which are implied by the context 67
Avoid modifiers which are implied by the context 71
Avoid modifiers which are implied by the context 72

org/apache/hadoop/chukwa/extraction/archive/ChukwaArchiveBuilder.java

Violation Line
Avoid unused local variables such as 'res'. 143
Avoid unnecessary return statements 145

org/apache/hadoop/chukwa/extraction/archive/ChukwaArchiveManager.java

Violation Line
Unnecessary use of fully qualified name 'java.text.SimpleDateFormat' due to existing import 'java.text.SimpleDateFormat' 36

org/apache/hadoop/chukwa/extraction/demux/ChukwaRecordPartitioner.java

Violation Line
Unnecessary use of fully qualified name 'org.apache.hadoop.chukwa.extraction.engine.ChukwaRecordKey' due to existing import 'org.apache.hadoop.chukwa.extraction.engine.ChukwaRecordKey' 38
Unnecessary use of fully qualified name 'org.apache.hadoop.chukwa.extraction.engine.ChukwaRecord' due to existing import 'org.apache.hadoop.chukwa.extraction.engine.ChukwaRecord' 39

org/apache/hadoop/chukwa/extraction/demux/DailyChukwaRecordRolling.java

Violation Line
Unnecessary use of fully qualified name 'java.text.SimpleDateFormat' due to existing import 'java.text.SimpleDateFormat' 54

org/apache/hadoop/chukwa/extraction/demux/Demux.java

Violation Line
Unnecessary use of fully qualified name 'java.text.SimpleDateFormat' due to existing import 'java.text.SimpleDateFormat' 216
Avoid unused local variables such as 'res'. 263
Avoid unnecessary return statements 264

org/apache/hadoop/chukwa/extraction/demux/DemuxManager.java

Violation Line
Unnecessary use of fully qualified name 'java.text.SimpleDateFormat' due to existing import 'java.text.SimpleDateFormat' 58
Useless parentheses. 344
Useless parentheses. 486

org/apache/hadoop/chukwa/extraction/demux/HourlyChukwaRecordRolling.java

Violation Line
Unnecessary use of fully qualified name 'java.text.SimpleDateFormat' due to existing import 'java.text.SimpleDateFormat' 53
Useless parentheses. 216
Useless parentheses. 217
Useless parentheses. 217
Useless parentheses. 217

org/apache/hadoop/chukwa/extraction/demux/MoveOrMergeRecordFile.java

Violation Line
Useless parentheses. 165
Useless parentheses. 166
Useless parentheses. 222

org/apache/hadoop/chukwa/extraction/demux/MoveToRepository.java

Violation Line
Unnecessary use of fully qualified name 'java.text.SimpleDateFormat' due to existing import 'java.text.SimpleDateFormat' 48

org/apache/hadoop/chukwa/extraction/demux/PostProcessorManager.java

Violation Line
Too many static imports may lead to messy code 19287
Useless parentheses. 67

org/apache/hadoop/chukwa/extraction/demux/TaggerPlugin.java

Violation Line
Avoid modifiers which are implied by the context 25

org/apache/hadoop/chukwa/extraction/demux/processor/Util.java

Violation Line
Unnecessary use of fully qualified name 'java.text.SimpleDateFormat' due to existing import 'java.text.SimpleDateFormat' 26

org/apache/hadoop/chukwa/extraction/demux/processor/mapper/AbstractProcessor.java

Violation Line
Useless parentheses. 121

org/apache/hadoop/chukwa/extraction/demux/processor/mapper/ChunkProcessor.java

Violation Line
Avoid modifiers which are implied by the context 29
Avoid modifiers which are implied by the context 3132

org/apache/hadoop/chukwa/extraction/demux/processor/mapper/ClientTraceProcessor.java

Violation Line
Useless parentheses. 87

org/apache/hadoop/chukwa/extraction/demux/processor/mapper/JobLogHistoryProcessor.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 24

org/apache/hadoop/chukwa/extraction/demux/processor/mapper/JobTrackerProcessor.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 23
Avoid empty if statements 138141

org/apache/hadoop/chukwa/extraction/demux/processor/mapper/Log4JMetricsContextProcessor.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 21

org/apache/hadoop/chukwa/extraction/demux/processor/mapper/MapProcessor.java

Violation Line
Avoid modifiers which are implied by the context 3031

org/apache/hadoop/chukwa/extraction/demux/processor/reducer/ReduceProcessor.java

Violation Line
Avoid modifiers which are implied by the context 29
Avoid modifiers which are implied by the context 3132

org/apache/hadoop/chukwa/extraction/demux/processor/reducer/SystemMetrics.java

Violation Line
Useless parentheses. 57

org/apache/hadoop/chukwa/extraction/engine/ChukwaRecordJT.java

Violation Line
Useless parentheses. 200
Useless parentheses. 200
Useless parentheses. 232
Useless parentheses. 313
Useless parentheses. 344
Useless parentheses. 365
Useless parentheses. 376

org/apache/hadoop/chukwa/extraction/engine/ChukwaRecordKey.java

Violation Line
Useless parentheses. 245
Useless parentheses. 264
Useless parentheses. 279

org/apache/hadoop/chukwa/extraction/engine/Record.java

Violation Line
Avoid modifiers which are implied by the context 23
Avoid modifiers which are implied by the context 24
Avoid modifiers which are implied by the context 25
Avoid modifiers which are implied by the context 26
Avoid modifiers which are implied by the context 27
Avoid modifiers which are implied by the context 28
Avoid modifiers which are implied by the context 30
Avoid modifiers which are implied by the context 31
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 42
Avoid modifiers which are implied by the context 44
Avoid modifiers which are implied by the context 46
Avoid modifiers which are implied by the context 48

org/apache/hadoop/chukwa/extraction/engine/SearchResult.java

Violation Line
Avoid modifiers which are implied by the context 26
Avoid modifiers which are implied by the context 28
Avoid modifiers which are implied by the context 30
Avoid modifiers which are implied by the context 32

org/apache/hadoop/chukwa/extraction/engine/SearchService.java

Violation Line
Avoid modifiers which are implied by the context 2526

org/apache/hadoop/chukwa/extraction/engine/datasource/DataSource.java

Violation Line
Avoid modifiers which are implied by the context 2729
Avoid modifiers which are implied by the context 31

org/apache/hadoop/chukwa/extraction/engine/datasource/database/DatabaseDS.java

Violation Line
An empty statement (semicolon) not part of a loop 92

org/apache/hadoop/chukwa/extraction/engine/datasource/record/ChukwaFileParser.java

Violation Line
Useless parentheses. 95
Useless parentheses. 95
Useless parentheses. 102
Avoid empty if statements 122125
Avoid empty catch blocks 142143

org/apache/hadoop/chukwa/extraction/engine/datasource/record/ChukwaRecordDataSource.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 26
Avoid unused imports such as 'java.util.Map' 29
Unnecessary use of fully qualified name 'java.text.SimpleDateFormat' due to existing import 'java.text.SimpleDateFormat' 92
Useless parentheses. 147
Useless parentheses. 147
Useless parentheses. 184
Useless parentheses. 184
Useless parentheses. 199
Useless parentheses. 199
Useless parentheses. 208
Useless parentheses. 208
Useless parentheses. 303
Useless parentheses. 303
Useless parentheses. 324
Avoid empty catch blocks 360361

org/apache/hadoop/chukwa/extraction/engine/datasource/record/ChukwaSequenceFileParser.java

Violation Line
Useless parentheses. 84
Useless parentheses. 84
Useless parentheses. 92
Avoid empty catch blocks 128129

org/apache/hadoop/chukwa/extraction/engine/datasource/record/RecordDS.java

Violation Line
Unnecessary use of fully qualified name 'java.text.SimpleDateFormat' due to existing import 'java.text.SimpleDateFormat' 68

org/apache/hadoop/chukwa/extraction/hbase/HadoopMetricsProcessor.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 23

org/apache/hadoop/chukwa/extraction/hbase/SystemMetrics.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 27
An empty statement (semicolon) not part of a loop 170

org/apache/hadoop/chukwa/hicc/ColorPicker.java

Violation Line
Useless parentheses. 31
Useless parentheses. 34
Useless parentheses. 37
Useless parentheses. 40
Useless parentheses. 43

org/apache/hadoop/chukwa/hicc/DatasetMapper.java

Violation Line
Unnecessary use of fully qualified name 'java.util.TreeMap' due to existing import 'java.util.TreeMap' 80
Unnecessary use of fully qualified name 'java.util.TreeMap' due to existing import 'java.util.TreeMap' 110
Unnecessary use of fully qualified name 'java.util.TreeMap' due to existing import 'java.util.TreeMap' 150

org/apache/hadoop/chukwa/hicc/ImageSlicer.java

Violation Line
Useless parentheses. 94
Useless parentheses. 95

org/apache/hadoop/chukwa/hicc/JSONLoader.java

Violation Line
Avoid unused imports such as 'java.text.ParseException' 24

org/apache/hadoop/chukwa/hicc/OfflineTimeHandler.java

Violation Line
Useless parentheses. 56

org/apache/hadoop/chukwa/hicc/rest/DashboardController.java

Violation Line
Avoid unused private fields such as 'context'. 56

org/apache/hadoop/chukwa/hicc/rest/Examples.java

Violation Line
Avoid empty catch blocks 535536
Avoid empty catch blocks 536537

org/apache/hadoop/chukwa/hicc/rest/LoginController.java

Violation Line
Avoid empty catch blocks 9596

org/apache/hadoop/chukwa/hicc/rest/MetricsController.java

Violation Line
Avoid unused imports such as 'org.apache.hadoop.chukwa.datacollection.agent.rest.Examples' 38
Useless parentheses. 124

org/apache/hadoop/chukwa/hicc/rest/WidgetController.java

Violation Line
Avoid unused private fields such as 'context'. 52

org/apache/hadoop/chukwa/inputtools/jplugin/JPluginAgent.java

Violation Line
Avoid empty try blocks 104105

org/apache/hadoop/chukwa/inputtools/log4j/ChukwaDailyRollingFileAppender.java

Violation Line
An empty statement (semicolon) not part of a loop 393
Overriding method merely calls super 751753
Overriding method merely calls super 756758

org/apache/hadoop/chukwa/inputtools/plugin/ExecPlugin.java

Violation Line
Avoid empty if statements 8891

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/ViewContextResolver.java

Violation Line
Useless parentheses. 59

org/apache/hadoop/chukwa/rest/resource/WidgetContextResolver.java

Violation Line
Useless parentheses. 56

org/apache/hadoop/chukwa/rest/resource/WidgetResource.java

Violation Line
Avoid unused private fields such as 'log'. 41

org/apache/hadoop/chukwa/util/ConstRateValidator.java

Violation Line
Avoid unused local variables such as 'res'. 278
Avoid unnecessary return statements 280

org/apache/hadoop/chukwa/util/CreateRecordFile.java

Violation Line
Useless parentheses. 118

org/apache/hadoop/chukwa/util/Filter.java

Violation Line
Avoid unused imports such as 'java.util.regex.PatternSyntaxException' 24

org/apache/hadoop/chukwa/util/HBaseUtil.java

Violation Line
Avoid unused imports such as 'org.apache.hadoop.chukwa.extraction.hbase.AbstractProcessor' 26
Avoid unused imports such as 'org.mortbay.log.Log' 28

org/apache/hadoop/chukwa/util/TempFileUtil.java

Violation Line
Unnecessary use of fully qualified name 'java.util.Random' due to existing import 'java.util.Random' 59
Unnecessary use of fully qualified name 'java.util.Random' due to existing import 'java.util.Random' 59

org/apache/hadoop/metrics/spi/AbstractMetricsContext.java

Violation Line
Avoid unused local variables such as 'recordMap'. 305