Le 07/12/2020 à 19:00, ma...@apache.org a écrit :

> commit dcf2044bd4f653154cb60218a3f3667673f746bf
> Author: Mark Thomas <ma...@apache.org>
> AuthorDate: Wed Dec 2 14:21:04 2020 +0000
> 
>     Fix IDE warning
> ---
>  java/javax/servlet/http/Cookie.java | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/java/javax/servlet/http/Cookie.java 
> b/java/javax/servlet/http/Cookie.java
> index e50bebe..bc2dd83 100644
> --- a/java/javax/servlet/http/Cookie.java
> +++ b/java/javax/servlet/http/Cookie.java
> @@ -74,7 +74,7 @@ public class Cookie implements Cloneable, Serializable {
>          } else {
>              strictServletCompliance = AccessController.doPrivileged(
>                      (PrivilegedAction<Boolean>) () -> 
> Boolean.valueOf(System.getProperty(
> -                            
> "org.apache.catalina.STRICT_SERVLET_COMPLIANCE")));
> +                            
> "org.apache.catalina.STRICT_SERVLET_COMPLIANCE"))).booleanValue();
>              propStrictNaming = AccessController.doPrivileged(
>                      (PrivilegedAction<String>) () -> System.getProperty(
>                              
> "org.apache.tomcat.util.http.ServerCookie.STRICT_NAMING"));


My IDE (IntelliJ 2020.3) gives the opposite warning and suggests using
auto-boxing instead of explicit boxing/unboxing. Should I avoid using
auto-boxing in Tomcat?

Emmanuel Bourg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to