tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58053] New: Use loop rather than assuming the size of the array won't change
Date Fri, 19 Jun 2015 10:17:09 GMT
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: sebb@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message