* gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation.
authorTom Tromey <tromey@redhat.com>
Wed, 1 Oct 2003 22:41:10 +0000 (22:41 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 1 Oct 2003 22:41:10 +0000 (22:41 +0000)
From-SVN: r71998

libjava/ChangeLog
libjava/gnu/gcj/runtime/FirstThread.java

index a86041acd2d44a2193d3d155a936a84f29b0676e..e8c98bd8480cb4cb02de7db18c902515909a7ba2 100644 (file)
@@ -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
index fbc7a5bee2b64217759580583f5059bf62cda4c5..d6d9a8075bc2790163ebfb495fb78bc438f2a72e 100644 (file)
@@ -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;