зеркало из https://github.com/mozilla/gecko-dev.git
Bug 278113 - Fix parameter handling. r=darin.
Original committer: pedemont%us.ibm.com Original revision: 1.22 Original date: 2005/01/13 16:30:19
This commit is contained in:
Родитель
4f77e92cab
Коммит
4605275cb2
|
@ -47,8 +47,6 @@
|
|||
|
||||
|
||||
/* Java JNI globals */
|
||||
jclass intClass = nsnull;
|
||||
jclass intArrayClass = nsnull;
|
||||
jclass stringClass = nsnull;
|
||||
jclass nsISupportsClass = nsnull;
|
||||
jclass xpcomExceptionClass = nsnull;
|
||||
|
@ -297,10 +295,7 @@ InitializeJavaGlobals(JNIEnv *env)
|
|||
}
|
||||
|
||||
if (!(clazz = env->FindClass("java/lang/Integer")) ||
|
||||
!(intClass = (jclass) env->NewGlobalRef(clazz)) ||
|
||||
!(clazz = env->FindClass("[I")) ||
|
||||
!(intArrayClass = (jclass) env->NewGlobalRef(clazz)) ||
|
||||
!(intValueMID = env->GetMethodID(intClass,"intValue","()I")))
|
||||
!(intValueMID = env->GetMethodID(clazz,"intValue","()I")))
|
||||
{
|
||||
goto init_error;
|
||||
}
|
||||
|
@ -403,14 +398,6 @@ init_error:
|
|||
void
|
||||
FreeJavaGlobals(JNIEnv* env)
|
||||
{
|
||||
if (intClass) {
|
||||
env->DeleteGlobalRef(intClass);
|
||||
intClass = nsnull;
|
||||
}
|
||||
if (intArrayClass) {
|
||||
env->DeleteGlobalRef(intArrayClass);
|
||||
intArrayClass = nsnull;
|
||||
}
|
||||
if (stringClass) {
|
||||
env->DeleteGlobalRef(stringClass);
|
||||
stringClass = nsnull;
|
||||
|
|
Загрузка…
Ссылка в новой задаче