RFR  Mistake in documentation of ArrayList#removeRange
Ulf.Zibis at CoSoCo.de
Sun Mar 16 22:52:32 UTC 2014
Am 16.03.2014 23:37, schrieb Ivan Gerasimov:
> Here is yet another iteration of the fix:
> Kept the check for 'fromIndex > toIndex' in removeRange().
> While I understand that this should not add anything significant to the current code, as currently
> removeRange() is always called with valid arguments.
> However, if it is stated in the spec that in case of 'fromIndex > toIndex' an exception is thrown,
> I believe it should be thrown, otherwise why it's stated?
Isn't this a perfect situation to use an assert statement? Needless to say, then the spec must be
More information about the core-libs-dev