class Test { void foo(T... t){ for (T t1 : t) {} } void bar(){ foo(""); } }