org_apache_struts2_oval_interceptor_OValValidationInterceptorTest_java
net.sf.oval.internal.util.ArrayUtils
public static List<?> asList(Object array) {
        if (array instanceof Object[]) {
            Object[] arrayCasted = (Object[])array;
            List result = Validator.getCollectionFactory().createList(arrayCasted.length);
            Collections.addAll(result, arrayCasted);
            return result;
        }
        if (array instanceof byte[]) {
            byte[] arrayCasted = (byte[])array;
            List result = Validator.getCollectionFactory().createList(arrayCasted.length);
            byte[] byArray = arrayCasted;
            int n = arrayCasted.length;
            int n2 = 0;
            while (n2 < n) {
                byte i = byArray[n2];
                result.add(i);
                ++n2;
            }
            return result;
        }
        if (array instanceof char[]) {
            char[] arrayCasted = (char[])array;
            List result = Validator.getCollectionFactory().createList(arrayCasted.length);
            char[] cArray = arrayCasted;
            int n = arrayCasted.length;
            int n3 = 0;
            while (n3 < n) {
                char i = cArray[n3];
                result.add(Character.valueOf(i));
                ++n3;
            }
            return result;
        }
        if (array instanceof short[]) {
            short[] arrayCasted = (short[])array;
            List result = Validator.getCollectionFactory().createList(arrayCasted.length);
            short[] sArray = arrayCasted;
            int n = arrayCasted.length;
            int n4 = 0;
            while (n4 < n) {
                short i = sArray[n4];
                result.add(i);
                ++n4;
            }
            return result;
        }
        if (array instanceof int[]) {
            int[] arrayCasted = (int[])array;
            List result = Validator.getCollectionFactory().createList(arrayCasted.length);
            int[] nArray = arrayCasted;
            int n = arrayCasted.length;
            int n5 = 0;
            while (n5 < n) {
                int i = nArray[n5];
                result.add(i);
                ++n5;
            }
            return result;
        }
        if (array instanceof long[]) {
            long[] arrayCasted = (long[])array;
            List result = Validator.getCollectionFactory().createList(arrayCasted.length);
            long[] lArray = arrayCasted;
            int n = arrayCasted.length;
            int n6 = 0;
            while (n6 < n) {
                long i = lArray[n6];
                result.add(i);
                ++n6;
            }
            return result;
        }
        if (array instanceof double[]) {
            double[] arrayCasted = (double[])array;
            List result = Validator.getCollectionFactory().createList(arrayCasted.length);
            double[] dArray = arrayCasted;
            int n = arrayCasted.length;
            int n7 = 0;
            while (n7 < n) {
                double i = dArray[n7];
                result.add(i);
                ++n7;
            }
            return result;
        }
        if (array instanceof float[]) {
            float[] arrayCasted = (float[])array;
            List result = Validator.getCollectionFactory().createList(arrayCasted.length);
            float[] fArray = arrayCasted;
            int n = arrayCasted.length;
            int n8 = 0;
            while (n8 < n) {
                float i = fArray[n8];
                result.add(Float.valueOf(i));
                ++n8;
            }
            return result;
        }
        if (array instanceof boolean[]) {
            boolean[] arrayCasted = (boolean[])array;
            List result = Validator.getCollectionFactory().createList(arrayCasted.length);
            boolean[] blArray = arrayCasted;
            int n = arrayCasted.length;
            int n9 = 0;
            while (n9 < n) {
                boolean i = blArray[n9];
                result.add(i);
                ++n9;
            }
            return result;
        }
        throw new IllegalArgumentException("Argument [array] must be an array");
    }
 -> java.util.Collections.addAll(java.util.Collection,java.lang.Object[]): boolean
 [CALL] [CALL] [EXIT] [CALL] [EXIT] -> java.util.Collections.addAll(java.util.Collection,java.lang.Object[]): boolean [EXIT]