You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2020/01/24 20:07:11 UTC
[tomcat] branch 7.0.x updated: Restore constant to avoid unwanted
API change
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/7.0.x by this push:
new 0eaefa3 Restore constant to avoid unwanted API change
0eaefa3 is described below
commit 0eaefa3649c7a42fa0cb047b9d0495b3c1230c6e
Author: remm <re...@apache.org>
AuthorDate: Fri Jan 24 21:00:58 2020 +0100
Restore constant to avoid unwanted API change
---
java/org/apache/catalina/connector/Connector.java | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/catalina/connector/Connector.java b/java/org/apache/catalina/connector/Connector.java
index f95fab9..dc1c4e3 100644
--- a/java/org/apache/catalina/connector/Connector.java
+++ b/java/org/apache/catalina/connector/Connector.java
@@ -49,6 +49,14 @@ public class Connector extends LifecycleMBeanBase {
private static final Log log = LogFactory.getLog(Connector.class);
+
+ /**
+ * Alternate flag to enable recycling of facades.
+ */
+ public static final boolean RECYCLE_FACADES =
+ Boolean.parseBoolean(System.getProperty("org.apache.catalina.connector.RECYCLE_FACADES", "false"));
+
+
// ------------------------------------------------------------ Constructor
public Connector() {
@@ -139,8 +147,7 @@ public class Connector extends LifecycleMBeanBase {
* manager is enabled, this setting is ignored and object facades are
* always discarded.
*/
- protected boolean discardFacades =
- Boolean.parseBoolean(System.getProperty("org.apache.catalina.connector.RECYCLE_FACADES", "false"));
+ protected boolean discardFacades = RECYCLE_FACADES;
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org