diff options
author | Tom Tromey <tromey@redhat.com> | 2003-10-01 22:41:10 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2003-10-01 22:41:10 +0000 |
commit | d638363161589a9ddd52e4ee6babc9e7a722e45e (patch) | |
tree | e1dd7759a990be739e254733a99e6a1eb9517c77 | |
parent | 1358cdc5fe7e86cce784dfc28d89e6c8ae2ac5c0 (diff) | |
download | gcc-d638363161589a9ddd52e4ee6babc9e7a722e45e.zip gcc-d638363161589a9ddd52e4ee6babc9e7a722e45e.tar.gz gcc-d638363161589a9ddd52e4ee6babc9e7a722e45e.tar.bz2 |
* gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation.
From-SVN: r71998
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/gnu/gcj/runtime/FirstThread.java | 27 |
2 files changed, 17 insertions, 14 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index a86041a..e8c98bd 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2003-10-01 Tom Tromey <tromey@redhat.com> + + * gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation. + 2003-10-01 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (initializeClass): Check for otable and diff --git a/libjava/gnu/gcj/runtime/FirstThread.java b/libjava/gnu/gcj/runtime/FirstThread.java index fbc7a5b..d6d9a8075 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; |