tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58564] Simplify Boolean.parseBoolean(System.getProperty("xxx"), "false") to Boolean.getBoolean("xxx")
Date Thu, 29 Oct 2015 14:45:07 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58564

Konstantin Kolinko <knst.kolinko@gmail.com> changed:

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

--- Comment #1 from Konstantin Kolinko <knst.kolinko@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


Mime
View raw message