Here you can find the source of stopPrintStackTraces()
public static void stopPrintStackTraces()
//package com.java2s; /******************************************************************************* * Copyright (c) 2012 Google, Inc./* w ww . j a v a2 s. c o m*/ * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Google, Inc. - initial API and implementation *******************************************************************************/ import java.util.Timer; public class Main { private static final Object LOCK = new Object(); private static Timer timer; /** * Stop any scheduled stack dumps */ public static void stopPrintStackTraces() { synchronized (LOCK) { if (timer != null) { timer.cancel(); timer = null; } } } }