mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DIRMINA-522) Remove unused code in RequestResponseFilter
Date Wed, 20 Feb 2008 03:38:44 GMT

     [ https://issues.apache.org/jira/browse/DIRMINA-522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Trustin Lee resolved DIRMINA-522.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-M2
         Assignee: Trustin Lee

Thanks!  That code block has been removed.

> Remove unused code in RequestResponseFilter
> -------------------------------------------
>
>                 Key: DIRMINA-522
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-522
>             Project: MINA
>          Issue Type: Bug
>          Components: Filter
>    Affects Versions: 2.0.0-M1
>            Reporter: Kevin Koltzau
>            Assignee: Trustin Lee
>            Priority: Trivial
>             Fix For: 2.0.0-M2
>
>
> 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());
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message