It's common in reference in general that when referring to a method name, the parameters are not listed.
setMembers([]) would be more efficient as well.
Announcement
Collapse
No announcement yet.
X
-
Hi Isomorphic,
that's what I meant because of the JavaDoc text mentioning removeMembers() without parameters.
I used Layout.removeMembers(Layout.getMembers()) so far, but will switch to setMembers([]).
Thank you,
Blama
Leave a comment:
-
Sorry, we don't follow. Are you saying you expect a zero-argument signature? That's not there, but isn't an API we would want to add. It's redundant with setMembers([]) with an empty list, and calling removeMembers() with no arguments would more often be a mistake than an intentional call.
Leave a comment:
-
API Layout.removeMembers() not exposed?
Hi Isomorphic,
the javadoc of Layout.setMembers() speaks about Layout.removeMembers(), which is not exposed in 4.1p.
Of course I can call Layout.removeMembers(Layout.getMembers()), but it seems that you already implemented the convenience method.
Best regards,
BlamaTags: None
Leave a comment: