commons-collections icon indicating copy to clipboard operation
commons-collections copied to clipboard

COLLECTIONS-604

Open Kaammill opened this issue 3 years ago • 1 comments

Hi, I was thinking about the more uniform safe-null methods in CollectionUtils from jira task: COLLECTIONS-604. In my opinion it would be nice to have one way of treating null-safe methods. I decided to try wit the approach that the methods that already return Boolean values could be null-save. I would appreciate all kind of feedback on this task :)

Kaammill avatar Feb 14 '22 07:02 Kaammill

@Kaammill The more I think about this change the more I think that there is a significant issue. Changing the code to not throw an NPE when the NPE was documented in the earlier release is (I think) a breaking change and would require a new major version.

Alternatively, a new set of classes that handle Null pointer arguments differently might be valuable. However, this is a discussion to have on the dev mailing list.

Are you still interested in making these changes?

Claudenw avatar Jul 22 '23 07:07 Claudenw

Closing: No reply from OP in over a year.

garydgregory avatar Sep 03 '24 18:09 garydgregory