jira-importer opened a new issue, #1355: URL: https://github.com/apache/httpcomponents-core/issues/1355
**[Sebb](https://issues.apache.org/jira/secure/[email protected])** opened **[HTTPCORE-194](https://issues.apache.org/jira/browse/HTTPCORE-194?redirect=false)** and commented org.apache.http.protocol.BasicHttpProcessor is final but has protected final fields which refer to mutable objects. ``` protected final List requestInterceptors = new ArrayList(); protected final List responseInterceptors = new ArrayList(); ``` The protected qualifier could be reduced to package protected without affecting any 3rd party code. Assuming that 3rd party code is not supposed to use the HC packages, then it seems to me that the fields should be made private. The class is not currently thread-safe, but it does attempt to prevent null items from being added to the lists, however another package can circumvent this protection. It would be safer if the fields were made private --- No further details from [HTTPCORE-194](https://issues.apache.org/jira/browse/HTTPCORE-194?redirect=false) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
