Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-522

Remove unused code in RequestResponseFilter

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.0-M1
    • 2.0.0-M2
    • Filter
    • None

    Description

      RequestResponseFilter.doFilterWrite contains the following code, which creates a Date object that is never used.

      // Schedule a task to be executed on timeout.
      // Find the timeout date avoiding overflow.
      Date timeoutDate = new Date(System.currentTimeMillis());
      if (Long.MAX_VALUE - request.getTimeoutMillis() < timeoutDate
      .getTime())

      { timeoutDate.setTime(Long.MAX_VALUE); }

      else

      { timeoutDate.setTime(timeoutDate.getTime() + request.getTimeoutMillis()); }

      Attachments

        Activity

          trustin Trustin Lee added a comment -

          Thanks! That code block has been removed.

          trustin Trustin Lee added a comment - Thanks! That code block has been removed.

          People

            trustin Trustin Lee
            kkoltzau Kevin Koltzau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: