Am 18.10.2014 um 00:38 schrieb Staffan Friberg:
Hi Ulf,

Since the default method only calls a single method it will most likely be 
inlined.

After inlining the check will be

        if (0 < 0 || b.length < 0 || 0 > b.length - b.length) {
            throw new ArrayIndexOutOfBoundsException();
        }

Which will be optimized away so only the null check will remain.

My microbenchmark shows no difference between implementing the method or relying on the default method.

Thanks for the clarification.

-Ulf

Reply via email to