+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.
+
2000-02-25 Tom Tromey <tromey@cygnus.com>
* jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
{
// Read the next extension
String e = tokenizer.nextToken ();
- if (! e.startsWith ("#"))
+ if ((e != null) && (! e.startsWith ("#")))
table.put (e, t);
else
break;
// URLConnection.java - Superclass of all communications links between
// an application and a URL.
-/* Copyright (C) 1999 Red Hat, Inc.
+/* Copyright (C) 1999, 2000 Red Hat, Inc.
This file is part of libgcj.
// have been called simply to set the new JNIEnv.
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);
}
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);
// We only support a single VM.