# PMD Results The following document contains the results of PMD 7.13.0. ## Violations By Priority ### Priority 1 #### org/apache/commons/fileupload/FileUploadBase.java
Rule | Violation | Line
--- | --- | ---
ConstructorCallsOverridableMethod | Overridable method called during object construction: FileUploadBase.getBoundary(String) | 330
ConstructorCallsOverridableMethod | Overridable method called during object construction: FileUploadBase.getPartHeaderSizeMax() | 343
ConstructorCallsOverridableMethod | This method may call an overridable method during object construction: FileUploadBase.getParsedHeaders(String) (call stack: [FileUploadBase#FileItemIteratorImpl.findNextItem(), FileUploadBase.getParsedHeaders(String)]) | 345
### Priority 3 #### org/apache/commons/fileupload/FileUploadBase.java
Rule | Violation | Line
--- | --- | ---
CloseResource | Ensure that resources like this ItemInputStream object are closed after use | 126
CloseResource | Ensure that resources like this ItemInputStream object are closed after use | 127
CloseResource | Ensure that resources like this InputStream object are closed after use | 305
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 360
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 377
## Files ### org/apache/commons/fileupload/FileUploadBase.java
Rule | Violation | Priority | Line
--- | --- | --- | ---
CloseResource | Ensure that resources like this ItemInputStream object are closed after use | 3 | 126
CloseResource | Ensure that resources like this ItemInputStream object are closed after use | 3 | 127
CloseResource | Ensure that resources like this InputStream object are closed after use | 3 | 305
ConstructorCallsOverridableMethod | Overridable method called during object construction: FileUploadBase.getBoundary(String) | 1 | 330
ConstructorCallsOverridableMethod | Overridable method called during object construction: FileUploadBase.getPartHeaderSizeMax() | 1 | 343
ConstructorCallsOverridableMethod | This method may call an overridable method during object construction: FileUploadBase.getParsedHeaders(String) (call stack: [FileUploadBase#FileItemIteratorImpl.findNextItem(), FileUploadBase.getParsedHeaders(String)]) | 1 | 345
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 360
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 377
## Suppressed Violations
Filename | Rule message | Suppression type | Reason
--- | --- | --- | ---
org/apache/commons/fileupload/FileUploadBase.java | Return an empty collection rather than null. | //nopmd |
org/apache/commons/fileupload/disk/DiskFileItem.java | Assigning an Object to null is a code smell. Consider refactoring. | //nopmd |