https://bz.apache.org/bugzilla/show_bug.cgi?id=58053
Bug ID: 58053 Summary: Use loop rather than assuming the size of the array won't change Product: Tomcat 9 Version: unspecified Hardware: All OS: All Status: NEW Severity: trivial Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: s...@apache.org Created attachment 32835 --> https://bz.apache.org/bugzilla/attachment.cgi?id=32835&action=edit Replace numeric offsets with loop Code in FastHttpDateFormat uses numeric offsets into an array when it should use a loop. In this case the loop is no shorter than the existing 3 lines, but using a loop avoids the problem of ensuring that the array size and the max index agree. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org