Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Isomorphic
    replied
    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.

    Leave a comment:


  • Blama
    replied
    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:


  • Isomorphic
    replied
    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:


  • Blama
    started a topic API Layout.removeMembers() not exposed?

    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,
    Blama
Working...
X