This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new 1ff40e7e6b Make use of clear() method 1ff40e7e6b is described below commit 1ff40e7e6bbd4b98660a63dad729d323fa47544f 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