Java tutorial
//package com.java2s; //License from project: Apache License public class Main { /** * Special method to avoid deprecation warnings calling thread.stop in Scala. */ @SuppressWarnings("deprecation") static public void stop(Thread thread) { thread.stop(); } }