This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: formatting fix


I'm checking this in on the trunk.
This fixes a minor formatting bug.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation.

Index: gnu/gcj/runtime/FirstThread.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/runtime/FirstThread.java,v
retrieving revision 1.10
diff -u -r1.10 FirstThread.java
--- gnu/gcj/runtime/FirstThread.java 10 Oct 2001 22:25:43 -0000 1.10
+++ gnu/gcj/runtime/FirstThread.java 1 Oct 2003 22:17:52 -0000
@@ -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 @@
   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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]