@@ -0,0 +1,1369 @@
+/*%0A * fb-contrib - Auxiliary detectors for Java programs%0A * Copyright (C) 2005-2016 Dave Brosius%0A *%0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA%0A */%0Apackage com.mebigfatguy.fbcontrib.utils;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0A/**%0A * a factory for creating unmodifiable ArrayLists by presenting values to a var-args creator method.%0A */%0Apublic class UnmodifiableList %7B%0A%0A    private UnmodifiableList() %7B%0A    %7D%0A%0A    @SafeVarargs%0A    public static %3CT%3E List%3CT%3E create(T... elements) %7B%0A        List%3CT%3E l = new ArrayList%3C%3E(Arrays.%3CT%3E asList(elements));%0A%0A        return Collections.%3CT%3E unmodifiableList(l);%0A    %7D%0A%7D%0A

add UnmodifiableList factory