Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1349

Code deduplication for HttpServletResponseImpl.setContentLength*() methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial Trivial
    • 1.4.26.Final, 2.0.8.Final
    • 2.0.6.Final
    • Servlet
    • None

      Unless I missed anything, implementation of HttpServletResponseImpl.setContentLength(int) and HttpServletResponseImpl.setContentLengthLong(long) can be unified. Now each method performs same steps. Only difference is len argument type. I believe we can unifiy these implementation so that setContentLength(int) method calls setContentLengthLong(long) method.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              jstourac@redhat.com Jan Stourac
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: