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 8e51cacc70 Make use of clear() method
8e51cacc70 is described below

commit 8e51cacc70fa5c0725e9126798415b9990f4d602
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Mar 15 14:14:25 2023 +0000

    Make use of clear() method
    
    Not convinced the call is needed for these demos, but it serves to show
    how the clear() method could/should be used.
---
 test/org/apache/catalina/tribes/demos/ChannelCreator.java     | 1 +
 test/org/apache/catalina/tribes/demos/IntrospectionUtils.java | 5 +----
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/test/org/apache/catalina/tribes/demos/ChannelCreator.java 
b/test/org/apache/catalina/tribes/demos/ChannelCreator.java
index 472cd6fe47..3097e22023 100644
--- a/test/org/apache/catalina/tribes/demos/ChannelCreator.java
+++ b/test/org/apache/catalina/tribes/demos/ChannelCreator.java
@@ -173,6 +173,7 @@ public class ChannelCreator {
             String key = (String) o;
             IntrospectionUtils.setProperty(sender, key, 
transportProperties.getProperty(key));
         }
+        IntrospectionUtils.clear();
         ps.setTransport(sender);
 
         McastService service = new McastService();
diff --git a/test/org/apache/catalina/tribes/demos/IntrospectionUtils.java 
b/test/org/apache/catalina/tribes/demos/IntrospectionUtils.java
index d2aa2b1227..56cc59ec81 100644
--- a/test/org/apache/catalina/tribes/demos/IntrospectionUtils.java
+++ b/test/org/apache/catalina/tribes/demos/IntrospectionUtils.java
@@ -191,10 +191,7 @@ public final class IntrospectionUtils {
     }
 
     // -------------------- other utils --------------------
-    /**
-     * @deprecated Not used, but code must be updated to call it
-     */
-    @Deprecated
+
     public static void clear() {
         objectMethods.clear();
     }


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

Reply via email to