Announcement

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

    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

    #2
    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.

    Comment


      #3
      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

      Comment


        #4
        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.

        Comment

        Working...
        X