Collection.toArray() should use empty array

XMLWordPrintable

      Comparing to Collection.toArray(new T[size)), the Collection.toArray(new T[0]) seems faster, safer and contractually cleaner.

            Assignee:
            Xuelei Fan
            Reporter:
            Xuelei Fan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: