Fix truncate method
@@ -4898,7 +4898,7 @@ static boolean containsAll(short[] container, short[] elements)
static short[] truncate(short[] a, int n)
{
- if (n < a.length)
+ if (n >= a.length)
{
return a;
}
