Apache Commons logo Commons FileUpload

PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 1

org/apache/commons/fileupload2/core/FileItemInputIteratorImpl.java
Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'getMultiPartInput' called during object construction (call stack: [findNextItem, getMultiPartInput]) 113

Priority 3

org/apache/commons/fileupload2/core/AbstractFileUpload.java
Rule Violation Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 387
org/apache/commons/fileupload2/core/DiskFileItem.java
Rule Violation Line
AvoidFieldNameMatchingMethodName Field isFormField has the same name as a method 201
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 281
org/apache/commons/fileupload2/core/FileItemInputImpl.java
Rule Violation Line
CloseResource Ensure that resources like this ItemInputStream object are closed after use 98
org/apache/commons/fileupload2/core/FileItemInputIteratorImpl.java
Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 128
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 146
CloseResource Ensure that resources like this InputStream object are closed after use 243
org/apache/commons/fileupload2/core/MultipartInput.java
Rule Violation Line
AssignmentInOperand Avoid assignments in operands 886
org/apache/commons/fileupload2/core/ParameterParser.java
Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 172
org/apache/commons/fileupload2/core/QuotedPrintableDecoder.java
Rule Violation Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 50
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 52
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 63
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 64
org/apache/commons/fileupload2/core/RFC2231Utils.java
Rule Violation Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 100

Files

org/apache/commons/fileupload2/core/AbstractFileUpload.java

Rule Violation Priority Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 387

org/apache/commons/fileupload2/core/DiskFileItem.java

Rule Violation Priority Line
AvoidFieldNameMatchingMethodName Field isFormField has the same name as a method 3 201
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 281

org/apache/commons/fileupload2/core/FileItemInputImpl.java

Rule Violation Priority Line
CloseResource Ensure that resources like this ItemInputStream object are closed after use 3 98

org/apache/commons/fileupload2/core/FileItemInputIteratorImpl.java

Rule Violation Priority Line
ConstructorCallsOverridableMethod Overridable method 'getMultiPartInput' called during object construction (call stack: [findNextItem, getMultiPartInput]) 1 113
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 128
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 146
CloseResource Ensure that resources like this InputStream object are closed after use 3 243

org/apache/commons/fileupload2/core/MultipartInput.java

Rule Violation Priority Line
AssignmentInOperand Avoid assignments in operands 3 886

org/apache/commons/fileupload2/core/ParameterParser.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 172

org/apache/commons/fileupload2/core/QuotedPrintableDecoder.java

Rule Violation Priority Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 50
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 52
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 63
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 64

org/apache/commons/fileupload2/core/RFC2231Utils.java

Rule Violation Priority Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 100