Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
None
Description
Currently we have
- an empty (G)String evaluates to false
BUT an other empty CharSequence like StringBuffer evaluates to true
assert !""
assert new StringBuffer()
- an empty list evaluates to false
BUT an empty array evaluates to true
assert ![]
assert [].toArray()
It would be cleaner when:
- empty CharSequence evaluates to false
- empty array evaluates to false