You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by vi...@apache.org on 2017/03/28 21:00:55 UTC
svn commit: r1789216 -
/tomcat/tc8.5.x/trunk/java/org/apache/coyote/Constants.java
Author: violetagg
Date: Tue Mar 28 21:00:55 2017
New Revision: 1789216
URL: http://svn.apache.org/viewvc?rev=1789216&view=rev
Log:
Use Boolean#getBoolean when reading the system property.
Modified:
tomcat/tc8.5.x/trunk/java/org/apache/coyote/Constants.java
Modified: tomcat/tc8.5.x/trunk/java/org/apache/coyote/Constants.java
URL: http://svn.apache.org/viewvc/tomcat/tc8.5.x/trunk/java/org/apache/coyote/Constants.java?rev=1789216&r1=1789215&r2=1789216&view=diff
==============================================================================
--- tomcat/tc8.5.x/trunk/java/org/apache/coyote/Constants.java (original)
+++ tomcat/tc8.5.x/trunk/java/org/apache/coyote/Constants.java Tue Mar 28 21:00:55 2017
@@ -55,9 +55,7 @@ public final class Constants {
*/
@Deprecated
public static final boolean USE_CUSTOM_STATUS_MSG_IN_HEADER =
- Boolean.valueOf(System.getProperty(
- "org.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER",
- "false")).booleanValue();
+ Boolean.getBoolean("org.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER");
/**
* The request attribute that is set to the value of {@code Boolean.TRUE}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org