src/org/sonews/ShutdownHook.java
changeset 49 8df94bfd3e2f
parent 37 74139325d305
     1.1 --- a/src/org/sonews/ShutdownHook.java	Sun Aug 29 18:17:37 2010 +0200
     1.2 +++ b/src/org/sonews/ShutdownHook.java	Sun Sep 11 17:01:19 2011 +0200
     1.3 @@ -15,7 +15,6 @@
     1.4   *   You should have received a copy of the GNU General Public License
     1.5   *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1.6   */
     1.7 -
     1.8  package org.sonews;
     1.9  
    1.10  import java.sql.SQLException;
    1.11 @@ -27,15 +26,13 @@
    1.12   * @author Christian Lins
    1.13   * @since sonews/0.5.0
    1.14   */
    1.15 -class ShutdownHook extends Thread
    1.16 -{
    1.17 +class ShutdownHook extends Thread {
    1.18  
    1.19  	/**
    1.20  	 * Called when the JVM exits.
    1.21  	 */
    1.22  	@Override
    1.23 -	public void run()
    1.24 -	{
    1.25 +	public void run() {
    1.26  		System.out.println("sonews: Trying to shutdown all threads...");
    1.27  
    1.28  		Map<Thread, StackTraceElement[]> threadsMap = Thread.getAllStackTraces();