thachlp commented on code in PR #1229:
URL: https://github.com/apache/commons-lang/pull/1229#discussion_r1634957883
##########
src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java:
##########
@@ -66,9 +66,14 @@
* </p>
*
* @param <L> the type of event listener that is supported by this proxy.
+ * @deprecated This class is deprecated because it does not specifically
relate to event listeners. It primarily allows
+ * sequential invocation of the same method on each member of a list of
objects of the same type. Modern Java features such
+ * as lambdas and executors provide more flexible and efficient ways to
achieve this functionality.
+ * Consider using lambdas or executors for similar functionality.
*
* @since 3.0
*/
+@Deprecated
public class EventListenerSupport<L> implements Serializable {
Review Comment:
@garydgregory
updated!, thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]