]> source.dussan.org Git - jgit.git/commit
RefList: Support capacity <= 0 on new builders 67/100767/1
authorDave Borowitz <dborowitz@google.com>
Wed, 5 Jul 2017 17:32:35 +0000 (13:32 -0400)
committerDave Borowitz <dborowitz@google.com>
Wed, 5 Jul 2017 19:51:26 +0000 (15:51 -0400)
commit40748e83039f2a8ac77a17fd09ea109ae6382e51
tree3cc2b31935007b60fbbc58d4ff9343ffd288ab40
parente08fa5afcdd95a1bd0d837863e6c1df77aae0cd0
RefList: Support capacity <= 0 on new builders

Callers may estimate the size, and their estimate may be zero. Silently
allow this, rather than throwing IndexOutOfBoundsException later during
add.

Change-Id: Ife236f9f4ce469c57b18e76cf4fad6feb52cb2b0
org.eclipse.jgit/src/org/eclipse/jgit/util/RefList.java