PMD Results

The following document contains the results of PMD 5.3.5.

Files

com/opencsv/CSVParser.java

Violation Line
The class 'CSVParser' has a Modified Cyclomatic Complexity of 2 (Highest = 20). 41512
The class 'CSVParser' has a Cyclomatic Complexity of 2 (Highest = 31). 41512
The class 'CSVParser' has a Standard Cyclomatic Complexity of 2 (Highest = 20). 41512
The method 'parseLine' has a Cyclomatic Complexity of 31. 293388
The method parseLine() has an NPath complexity of 6264 293388
The method 'parseLine' has a Standard Cyclomatic Complexity of 20. 293388
The method 'parseLine' has a Modified Cyclomatic Complexity of 20. 293388
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 309

com/opencsv/CSVReader.java

Violation Line
Avoid throwing raw exception types. 383

com/opencsv/CSVWriter.java

Violation Line
This class has too many methods, consider refactoring it. 29461
The class 'CSVWriter' has a Cyclomatic Complexity of 2 (Highest = 12). 29461
The method 'writeNext' has a Cyclomatic Complexity of 12. 292328
The method writeNext() has an NPath complexity of 258 292328
Must handle exceptions 457459

com/opencsv/RFC4180Parser.java

Violation Line
This class has too many methods, consider refactoring it. 34259
The class 'RFC4180Parser' has a Cyclomatic Complexity of 3 (Highest = 10). 34259
The method 'parseLine' has a Cyclomatic Complexity of 10. 128158
The method parseLine() has an NPath complexity of 225 128158
The method 'splitWhileNotInQuotes' has a Cyclomatic Complexity of 10. 175209

com/opencsv/ResultSetHelperService.java

Violation Line
The class 'ResultSetHelperService' has a Standard Cyclomatic Complexity of 3 (Highest = 17). 28197
The class 'ResultSetHelperService' has a Cyclomatic Complexity of 3 (Highest = 19). 28197
The method 'getColumnValue' has a Cyclomatic Complexity of 19. 103196
The method 'getColumnValue' has a Standard Cyclomatic Complexity of 17. 103196

com/opencsv/bean/AbstractBeanField.java

Violation Line
Must handle exceptions 112115
Must handle exceptions 147151

com/opencsv/bean/BeanToCsv.java

Violation Line
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 87
Avoid throwing raw exception types. 88
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 111
Avoid throwing raw exception types. 112

com/opencsv/bean/ColumnPositionMappingStrategy.java

Violation Line
Avoid instantiating new objects inside loops 174
Avoid instantiating new objects inside loops 176
Avoid instantiating new objects inside loops 184

com/opencsv/bean/CsvToBean.java

Violation Line
This class has too many methods, consider refactoring it. 36358
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 212
Avoid throwing raw exception types. 213
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 233
Avoid throwing raw exception types. 234

com/opencsv/bean/CsvToBeanBuilder.java

Violation Line
This class has too many methods, consider refactoring it. 49343

com/opencsv/bean/HeaderColumnNameMappingStrategy.java

Violation Line
This class has too many methods, consider refactoring it. 43374
Avoid instantiating new objects inside loops 286
Avoid instantiating new objects inside loops 288
Avoid instantiating new objects inside loops 293
Avoid instantiating new objects inside loops 295
Avoid instantiating new objects inside loops 305

com/opencsv/bean/IterableCSVToBean.java

Violation Line
The class 'IterableCSVToBean' has a Modified Cyclomatic Complexity of 3 (Highest = 11). 36173
The class 'IterableCSVToBean' has a Standard Cyclomatic Complexity of 3 (Highest = 11). 36173
The class 'IterableCSVToBean' has a Cyclomatic Complexity of 3 (Highest = 11). 36173
The method 'iterator' has a Modified Cyclomatic Complexity of 11. 129172
The method 'iterator' has a Cyclomatic Complexity of 11. 129172
The method 'iterator' has a Standard Cyclomatic Complexity of 11. 129172

com/opencsv/bean/IterableCSVToBeanBuilder.java

Violation Line
Avoid throwing raw exception types. 65
Avoid throwing raw exception types. 68

com/opencsv/bean/MappingUtils.java

Violation Line
The class 'MappingUtils' has a Modified Cyclomatic Complexity of 6 (Highest = 10). 36108
The class 'MappingUtils' has a Cyclomatic Complexity of 6 (Highest = 11). 36108
The class 'MappingUtils' has a Standard Cyclomatic Complexity of 6 (Highest = 10). 36108
The method 'determineMappingStrategy' has a Standard Cyclomatic Complexity of 10. 55106
The method 'determineMappingStrategy' has a Cyclomatic Complexity of 11. 55106
The method 'determineMappingStrategy' has a Modified Cyclomatic Complexity of 10. 55106
Must handle exceptions 9395

com/opencsv/bean/StatefulBeanToCsv.java

Violation Line
The class 'StatefulBeanToCsv' has a Standard Cyclomatic Complexity of 4 (Highest = 14). 43232
The class 'StatefulBeanToCsv' has a Modified Cyclomatic Complexity of 4 (Highest = 14). 43232
The class 'StatefulBeanToCsv' has a Cyclomatic Complexity of 4 (Highest = 14). 43232
The method 'write' has a Standard Cyclomatic Complexity of 14. 126187
The method 'write' has a Modified Cyclomatic Complexity of 14. 126187
The method 'write' has a Cyclomatic Complexity of 14. 126187
Avoid instantiating new objects inside loops 166167
Avoid instantiating new objects inside loops 172173
Avoid instantiating new objects inside loops 178179