void (int[] arr) { <warning descr="Type may be primitive">Long</warning> l = 12L; // -1 as no prim boxing needBox(l); // +1 as boxed param needBox(l); // +1 as boxed param needBox(l); // +1 as boxed param for (int ignored : arr) { needPrimitive(l); // -1 as parameter must be unboxed, with loop boost -10 } // Total: -8 ==> remove boxing }