Octavia Togami created GROOVY-11308:
---------------------------------------
Summary: DefaultGroovyMethods#unique now returns null for empty or
1 element input
Key: GROOVY-11308
URL: https://issues.apache.org/jira/browse/GROOVY-11308
Project: Groovy
Issue Type: Bug
Components: groovy-runtime
Affects Versions: 3.0.21, 4.0.19, 5.0.0-alpha-6
Reporter: Octavia Togami
https://github.com/apache/groovy/commit/c181ef72e442f1d51855e0db6d44ab302cf7c662
changed the behavior of {{DefaultGroovyMethods#unique}} to return {{null}} for
an empty or one element collection input when {{mutate}} is {{false}}. This
requires a really awkward workaround and breaks compatibility with previous
versions, and I personally don't think the behavior makes sense.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)