diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-01 22:41:10 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-01 22:41:10 +0000 |
| commit | 71e588f381eb86e66557e181ee0fac46118a1b66 (patch) | |
| tree | e1dd7759a990be739e254733a99e6a1eb9517c77 /libjava/gnu/gcj/runtime/FirstThread.java | |
| parent | e524954a06b59c0bef6d307eea491d8248e770c1 (diff) | |
| download | ppe42-gcc-71e588f381eb86e66557e181ee0fac46118a1b66.tar.gz ppe42-gcc-71e588f381eb86e66557e181ee0fac46118a1b66.zip | |
* 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
Diffstat (limited to 'libjava/gnu/gcj/runtime/FirstThread.java')
| -rw-r--r-- | libjava/gnu/gcj/runtime/FirstThread.java | 27 |
1 files changed, 13 insertions, 14 deletions
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; |

