Here you can find the source of stackTraceApproved(StackTraceElement elt, String[] approved)
protected static boolean stackTraceApproved(StackTraceElement elt, String[] approved)
//package com.java2s; //License from project: Apache License public class Main { protected static boolean stackTraceApproved(StackTraceElement elt, String[] approved) { String className = elt.getClassName(); for (int i = 0; i < approved.length; i++) { String s = approved[i]; if (className.startsWith(s)) return true; }// w w w . j a va2s . c o m return false; } }