Prefer Math.max over Ints.max to avoid varargs