fix java warning (varargs Object vs Object[])