truth0/truth — pull request #39 by cgruber (2012-09-05 22:11:18+00:00)
Title: Fix a bug when passing null in the third position of some methods.

When passing into methods such as:

ASSERT.that(aCollection).has().anOf("this", "that", null);

javac infers that this is an Object[] and passes null to the varargs method underneath this. Since we never will be calling:

ASSERT.that(aCollection).has().anOf("this", "that", (Object[])null);

but always mean

ASSERT.that(aCollection).has().anOf("this", "that", (T)null);

we will treat a null varargs array as a mis-fired single-element null intended to be the third item in an array of values.