Here you can find the source of arrayHasTaints(int[] a)
public static boolean arrayHasTaints(int[] a)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean arrayHasTaints(int[] a) { for (int i : a) if (i != 0) return true; return false; }/* w w w .j a va 2 s. c o m*/ public static boolean arrayHasTaints(int[][] a) { for (int[] j : a) for (int i : j) if (i != 0) return true; return false; } public static boolean arrayHasTaints(int[][][] a) { for (int[][] k : a) for (int[] j : k) for (int i : j) if (i != 0) return true; return false; } }