import java.util.ArrayList class Test { void foo(final ArrayList<Object> anObject) { ArrayList l = anObject; } }