This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: formatting fix
- From: Tom Tromey <tromey at redhat dot com>
- To: GCC libjava patches <java-patches at gcc dot gnu dot org>
- Date: 01 Oct 2003 16:22:17 -0600
- Subject: Patch: FYI: formatting fix
- Reply-to: tromey at redhat dot com
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;