You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "thachlp (via GitHub)" <gi...@apache.org> on 2024/06/05 09:51:01 UTC

[PR] LANG-1728: Deprecate EvenListenerSupport [commons-lang]

thachlp opened a new pull request, #1229:
URL: https://github.com/apache/commons-lang/pull/1229

   (no comment)


-- 
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: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] LANG-1728: Deprecate EvenListenerSupport [commons-lang]

Posted by "thachlp (via GitHub)" <gi...@apache.org>.
thachlp commented on code in PR #1229:
URL: https://github.com/apache/commons-lang/pull/1229#discussion_r1634357210


##########
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:
   Hi @garydgregory, could you please help review, if it is not necessary, I will close it, 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: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] LANG-1728: Deprecate EvenListenerSupport [commons-lang]

Posted by "thachlp (via GitHub)" <gi...@apache.org>.
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: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] LANG-1728: Deprecate EvenListenerSupport [commons-lang]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on code in PR #1229:
URL: https://github.com/apache/commons-lang/pull/1229#discussion_r1634713047


##########
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:
   @thachlp 
   Please do not leave the PR description empty. Make it also contain a link to the Jira issue. 
   TY!



-- 
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: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] LANG-1728: Deprecate EvenListenerSupport [commons-lang]

Posted by "thachlp (via GitHub)" <gi...@apache.org>.
thachlp closed pull request #1229: LANG-1728: Deprecate EvenListenerSupport
URL: https://github.com/apache/commons-lang/pull/1229


-- 
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: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org