Apache Commons logo Commons FileUpload

PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 1

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/FileItemInputIteratorImpl.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'getMultiPartInput' called during object construction (call stack: [findNextItem, getMultiPartInput]) 114

Priority 3

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/AbstractFileUpload.java

Rule Violation Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 389

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/DiskFileItem.java

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

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/FileItemInputImpl.java

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

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/FileItemInputIteratorImpl.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 129
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 147
CloseResource Ensure that resources like this InputStream object are closed after use 244

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/MultipartInput.java

Rule Violation Line
AssignmentInOperand Avoid assignments in operands 883

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/ParameterParser.java

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

Apache Commons FileUpload Core - 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

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/RFC2231Utils.java

Rule Violation Line
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 100

Files

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/AbstractFileUpload.java

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

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/DiskFileItem.java

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

Apache Commons FileUpload Core - 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
CloseResource Ensure that resources like this ItemInputStream object are closed after use 3 99

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/FileItemInputIteratorImpl.java

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

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/MultipartInput.java

Rule Violation Priority Line
AssignmentInOperand Avoid assignments in operands 3 883

Apache Commons FileUpload Core - 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

Apache Commons FileUpload Core - 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

Apache Commons FileUpload Core - org/apache/commons/fileupload2/core/RFC2231Utils.java

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