Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-3
-
Fix Version/s: 1.0-JSR-6
-
Component/s: groovy-jdk
-
Labels:None
-
Number of attachments :
Description
File.length() should be available as File.size()
Matcher.getCount() -> size()
-> size() should generally better be named getSize() to allow property calls
obj.size
--> rejected since this conflicts with Map, Expando, and other types that handle getProperty() specially.
Methods on class groovy.util.Node should be renamed too to allow property calls.
E.g.: obj.children , obj.value, obj.attributes ....