harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r576417 - /harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c
Date Mon, 17 Sep 2007 13:24:42 GMT
Author: hindessm
Date: Mon Sep 17 06:24:42 2007
New Revision: 576417

URL: http://svn.apache.org/viewvc?rev=576417&view=rev
Log:
Removed misleadingy-named variable.

Modified:
    harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c?rev=576417&r1=576416&r2=576417&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c (original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c Mon
Sep 17 06:24:42 2007
@@ -300,12 +300,11 @@
   jmethodID mid;
   jfieldID descriptorFID;
   jclass javaClass;
-  jclass weakJavaClass;
   JCLZipFileLink *zipfileHandles;
 
   javaClass = (*env)->FindClass (env, "java/util/zip/ZipEntry");
-  weakJavaClass = (*env)->NewGlobalRef (env, javaClass);
-  if (!weakJavaClass)
+  javaClass = (*env)->NewGlobalRef (env, javaClass);
+  if (!javaClass)
     return;
   mid =
     ((*env)->
@@ -313,7 +312,7 @@
                   "(Ljava/lang/String;Ljava/lang/String;[BJJJJIJJ)V"));
   if (!mid)
     return;
-  JCL_CACHE_SET (env, CLS_java_util_zip_ZipEntry, weakJavaClass);
+  JCL_CACHE_SET (env, CLS_java_util_zip_ZipEntry, javaClass);
   JCL_CACHE_SET (env, MID_java_util_zip_ZipEntry_init, mid);
 
   descriptorFID = (*env)->GetFieldID (env, cls, "descriptor", "J");



Mime
View raw message