You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/05/05 08:59:37 UTC
[tomcat] branch 9.0.x updated: Deprecate get/set attribute
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new a02375c Deprecate get/set attribute
a02375c is described below
commit a02375cfe67eb8b7ce6f71a5f5e052a5f3755f73
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue May 5 09:48:23 2020 +0100
Deprecate get/set attribute
---
java/org/apache/catalina/connector/Connector.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/java/org/apache/catalina/connector/Connector.java b/java/org/apache/catalina/connector/Connector.java
index eefb6aa..90c218a 100644
--- a/java/org/apache/catalina/connector/Connector.java
+++ b/java/org/apache/catalina/connector/Connector.java
@@ -314,7 +314,11 @@ public class Connector extends LifecycleMBeanBase {
*
* @param name the property name
* @return the property value
+ *
+ * @deprecated Use {@link #getProperty(String)}. This will be removed in
+ * Tomcat 10 onwards.
*/
+ @Deprecated
public Object getAttribute(String name) {
return getProperty(name);
}
@@ -325,7 +329,11 @@ public class Connector extends LifecycleMBeanBase {
*
* @param name the property name
* @param value the property value
+ *
+ * @deprecated Use {@link #setAttribute(String, Object)}. This will be
+ * removed in Tomcat 10 onwards.
*/
+ @Deprecated
public void setAttribute(String name, Object value) {
setProperty(name, String.valueOf(value));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org