On Sat, May 18, 2019 at 5:03 PM <[email protected]> wrote:

> This is an automated email from the ASF dual-hosted git repository.
>
> markt pushed a commit to branch master
> in repository https://gitbox.apache.org/repos/asf/tomcat.git
>
> commit 99e36dc2c38518f7eeef2295852836aa88df5f1e
> Author: Mark Thomas <[email protected]>
> AuthorDate: Sat May 18 16:02:48 2019 +0100
>
>     Silence false positive IDE warning
>

Indeed. I thought about improving this further, but it works fine and
nobody is actually going to use it, so it will stay as is.

Rémy


> ---
>  java/org/apache/tomcat/util/net/AprEndpoint.java | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/java/org/apache/tomcat/util/net/AprEndpoint.java
> b/java/org/apache/tomcat/util/net/AprEndpoint.java
> index d61febc..f5fa038 100644
> --- a/java/org/apache/tomcat/util/net/AprEndpoint.java
> +++ b/java/org/apache/tomcat/util/net/AprEndpoint.java
> @@ -2814,6 +2814,7 @@ public class AprEndpoint extends
> AbstractEndpoint<Long,Long> implements SNICallB
>                                          nBytes = flushBytes;
>                                          flushBytes = 0;
>                                      } else {
> +                                        @SuppressWarnings("null") // Not
> possible
>                                          int remaining =
> buffer.remaining();
>                                          write(block ==
> BlockingMode.BLOCK, buffer);
>                                          nBytes = remaining -
> buffer.remaining();
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to