govi20 edited a comment on issue #177: Code polish: replace classic for-loop with enhanced URL: https://github.com/apache/tomcat/pull/177#issuecomment-509019980 Yes. `for-loop's` temp variable and `ServletContextAttributeListener's` old var name were clashing. I don't think using `tempListener` in a `for-loop` declaration would be a good idea. `for (Object listener : listeners) ` listener fits here semantically hence I have renamed other variables
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org