You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2015/10/29 15:45:07 UTC

[Bug 58564] Simplify Boolean.parseBoolean(System.getProperty("xxx"), "false") to Boolean.getBoolean("xxx")

https://bz.apache.org/bugzilla/show_bug.cgi?id=58564

Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> ---
Boolean.parseBoolean(System.getProperty("xxx"), "false") explicitly shows that
the default is "false". Using Boolean.getBoolean() hides this fact. Unlike
similar methods elsewhere, there is no 2-arguments variant of this method to
provide an explicit default.

The default value can be different in different versions of Tomcat. It is
better to cleanly see what is the actual default value.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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