PMD Results

The following document contains the results of PMD 5.6.1.

Files

com/opencsv/CSVParser.java

Violation Line
The class 'CSVParser' has a Modified Cyclomatic Complexity of 2 (Highest = 19). 44672
The class 'CSVParser' has a Cyclomatic Complexity of 2 (Highest = 30). 44672
The class 'CSVParser' has a Standard Cyclomatic Complexity of 2 (Highest = 19). 44672
The method convertToCsvValue() has an NPath complexity of 2500 340362
The method 'parseLine' has a Standard Cyclomatic Complexity of 19. 380476
The method parseLine() has an NPath complexity of 10440 380476
The method 'parseLine' has a Modified Cyclomatic Complexity of 19. 380476
The method 'parseLine' has a Cyclomatic Complexity of 30. 380476
StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 596

com/opencsv/CSVReader.java

Violation Line
Avoid throwing raw exception types. 471

com/opencsv/CSVWriter.java

Violation Line
This class has too many methods, consider refactoring it. 29493
Must handle exceptions 489491

com/opencsv/RFC4180Parser.java

Violation Line
The method convertToCsvValue() has an NPath complexity of 500 124143

com/opencsv/ResultSetHelperService.java

Violation Line
The class 'ResultSetHelperService' has a Standard Cyclomatic Complexity of 3 (Highest = 16). 28226
The method 'getColumnValue' has a Standard Cyclomatic Complexity of 16. 104171

com/opencsv/bean/AbstractBeanField.java

Violation Line
Must handle exceptions 163166
Must handle exceptions 194198

com/opencsv/bean/ColumnPositionMappingStrategy.java

Violation Line
Avoid instantiating new objects inside loops 177
Avoid instantiating new objects inside loops 179
Avoid instantiating new objects inside loops 194

com/opencsv/bean/CsvToBean.java

Violation Line
Avoid instantiating new objects inside loops 291294
Avoid throwing raw exception types. 357
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 359
Avoid throwing raw exception types. 365
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 458
Avoid throwing raw exception types. 459
Avoid instantiating new objects inside loops 511514
Avoid throwing raw exception types. 539

com/opencsv/bean/CsvToBeanBuilder.java

Violation Line
Too many fields 49403

com/opencsv/bean/HeaderColumnNameMappingStrategy.java

Violation Line
Avoid instantiating new objects inside loops 143
Avoid instantiating new objects inside loops 355
Avoid instantiating new objects inside loops 357
Avoid instantiating new objects inside loops 362
Avoid instantiating new objects inside loops 364

com/opencsv/bean/IterableCSVToBeanBuilder.java

Violation Line
Avoid throwing raw exception types. 71
Avoid throwing raw exception types. 74

com/opencsv/bean/StatefulBeanToCsv.java

Violation Line
Too many fields 48401
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 157
Avoid instantiating new objects inside loops 235238
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 331

com/opencsv/bean/concurrent/ProcessCsvBean.java

Violation Line
Avoid instantiating new objects inside loops 9495
Avoid throwing raw exception types. 120
A catch statement that catches an exception only to rethrow it should be avoided. 125128
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 129
Avoid throwing raw exception types. 130

com/opencsv/bean/concurrent/ProcessCsvLine.java

Violation Line
Avoid throwing raw exception types. 91
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 95
Avoid throwing raw exception types. 96

com/opencsv/bean/opencsvUtils.java

Violation Line
Must handle exceptions 101103
Must handle exceptions 104107