[ 
https://issues.apache.org/jira/browse/COLLECTIONS-772?focusedWorklogId=514071&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-514071
 ]

ASF GitHub Bot logged work on COLLECTIONS-772:
----------------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/Nov/20 12:28
            Start Date: 19/Nov/20 12:28
    Worklog Time Spent: 10m 
      Work Description: aherbert commented on a change in pull request #195:
URL: 
https://github.com/apache/commons-collections/pull/195#discussion_r526836141



##########
File path: src/main/java/org/apache/commons/collections4/IterableUtils.java
##########
@@ -50,6 +50,11 @@
  */
 public class IterableUtils {
 
+    /**
+     * {@code IterableUtils} should not normally be instantiated.
+     */
+    private IterableUtils() {}
+

Review comment:
       Perhaps make the constructor public and mark it as deprecated for 
removal in 5.0 with a note that the class is not intended to be instantiated. 
This will clarify the intention and ensure the change does happen when 5.0 is 
released as all deprecated tags will be addressed on a major version increment.
   
   Or remove this from the PR as binary compatibility is an important goal of 
commons within major versions, even for something trivial like this where the 
use cases of instances of this class are non-existent and I think it unlikely 
that any end user would be creating instances.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 514071)
    Time Spent: 1h 10m  (was: 1h)

> Provide private constructor to the Utils Collections
> ----------------------------------------------------
>
>                 Key: COLLECTIONS-772
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-772
>             Project: Commons Collections
>          Issue Type: Improvement
>          Components: Collection
>    Affects Versions: 4.4
>            Reporter: Arturo Bernal
>            Priority: Minor
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> Utils classes have their constructor made private to prohibit instantiation.
>   
>  * IterableUtils
>  * ArrayUtils
>  
> {color:#ff0000}Keep in mind this improvement will break the binary. We need a 
> mayor release{color}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to