This is the mail archive of the java-patches@sourceware.cygnus.com 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]

Cleanup patches



I'm committing the following little cleanups and minor bug fix...

2000-02-26  Anthony Green  <green@cygnus.com>

	* gnu/gcj/io/MimeTypes.java: Test for null.

	* jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
	(JNI_GetCreatedJavaVMs): Remove compiler warning.

	* java/net/URLConnection.java: Update copyright notice.

Index: jni.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/jni.cc,v
retrieving revision 1.22
diff -2 -u -r1.22 jni.cc
--- jni.cc	2000/02/25 23:49:34	1.22
+++ jni.cc	2000/02/26 21:09:08
@@ -1546,6 +1546,5 @@
   if (_Jv_ThreadCurrent () == NULL)
     {
-      java::lang::Thread *t = new gnu::gcj::jni::NativeThread (group, name);
-      t = t;			// Avoid compiler warning.  Eww.
+      (void) new gnu::gcj::jni::NativeThread (group, name);
     }
   _Jv_SetCurrentJNIEnv (env);
@@ -1708,5 +1707,5 @@
 
 jint
-JNI_GetCreatedJavaVMs (JavaVM **vm_buffer, jsize buf_len, jsize *n_vms)
+JNI_GetCreatedJavaVMs (JavaVM **vm_buffer, jsize /* buf_len */, jsize *n_vms)
 {
   JvAssert (buf_len > 0);
Index: gnu/gcj/io/MimeTypes.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/gnu/gcj/io/MimeTypes.java,v
retrieving revision 1.1
diff -2 -u -r1.1 MimeTypes.java
--- MimeTypes.java	2000/02/21 05:54:29	1.1
+++ MimeTypes.java	2000/02/26 21:09:09
@@ -37,5 +37,5 @@
 		    // Read the next extension
 		    String e = tokenizer.nextToken ();
-		    if (! e.startsWith ("#"))
+		    if ((e != null) && (! e.startsWith ("#")))
 		      table.put (e, t);
 		    else
Index: java/net/URLConnection.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/net/URLConnection.java,v
retrieving revision 1.4
diff -2 -u -r1.4 URLConnection.java
--- URLConnection.java	2000/02/25 22:38:33	1.4
+++ URLConnection.java	2000/02/26 21:09:12
@@ -2,5 +2,5 @@
 //			an application and a URL.
 
-/* Copyright (C) 1999  Red Hat, Inc.
+/* Copyright (C) 1999, 2000  Red Hat, Inc.
 
    This file is part of libgcj.

AG

-- 
Anthony Green                                                        Red Hat
                                                       Sunnyvale, California

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