Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6-beta-1
-
None
-
None
-
Patch relative to SVN revision 12775.
-
Patch
Description
Updated list#flatten/set#flatten so that maps are unadulterated.
Going with this approach means that maps can safely be used in lists. This is commonly done as a kind of "pseudobean" for unit testing – it's how I first encountered this behavior.
Attachments
Attachments
Issue Links
- is related to
-
GROOVY-2903 [ [a:1, b:2, c:3] ].flatten() -> [ 1, 2, 3 ]
- Closed