From 71e588f381eb86e66557e181ee0fac46118a1b66 Mon Sep 17 00:00:00 2001 From: tromey Date: Wed, 1 Oct 2003 22:41:10 +0000 Subject: * gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71998 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/gnu/gcj/runtime/FirstThread.java | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'libjava/gnu/gcj/runtime/FirstThread.java') diff --git a/libjava/gnu/gcj/runtime/FirstThread.java b/libjava/gnu/gcj/runtime/FirstThread.java index fbc7a5bee2b..d6d9a8075bc 100644 --- a/libjava/gnu/gcj/runtime/FirstThread.java +++ b/libjava/gnu/gcj/runtime/FirstThread.java @@ -1,6 +1,6 @@ // FirstThread.java - Implementation of very first thread. -/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation +/* Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation This file is part of libgcj. @@ -57,22 +57,21 @@ final class FirstThread extends Thread private String getMain (String name) { String mainName = null; - try { - - JarFile j = new JarFile (name); - - Attributes a = j.getManifest().getMainAttributes(); - - mainName = a.getValue(Attributes.Name.MAIN_CLASS); - - } catch (Exception e) { - // empty - } + try + { + JarFile j = new JarFile(name); + Attributes a = j.getManifest().getMainAttributes(); + mainName = a.getValue(Attributes.Name.MAIN_CLASS); + } + catch (Exception e) + { + // Ignore. + } if (mainName == null) { - System.err.println ("Failed to load Main-Class manifest attribute from\n" - + name); + System.err.println("Failed to load Main-Class manifest attribute from " + + name); System.exit(1); } return mainName; -- cgit v1.2.3