]> AND Public Git Repository - simgrid.git/blobdiff - src/java/jxbt_utilities.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename xbt/xbt_context.h to xbt/context.h, and add src/include/xbt/context.h to the...
[simgrid.git] / src / java / jxbt_utilities.c
index 2ef04a3dc08e2772c25e1a0a23c1d51b252db99b..aa2b5c61cee5c2691ca6b2cef62c90b01312d95c 100644 (file)
@@ -16,8 +16,6 @@
 #include "xbt/str.h"
 #include "jxbt_utilities.h"
 
-XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg);
-
 /* *********** */
 /* JNI GETTERS */
 /* *********** */
@@ -64,11 +62,15 @@ jmethodID jxbt_get_jmethod(JNIEnv* env, jclass cls,
 
 jmethodID jxbt_get_smethod(JNIEnv* env, const char *classname, 
                          const char *name,const char *signature) { 
-  jclass cls = jxbt_get_class(env,classname);
-  jmethodID id;
+  
+       jclass cls;
+
+       jmethodID id;
+       cls = jxbt_get_class(env,classname);
 
   if (!cls)
     return 0;
+
   id = (*env)->GetMethodID(env, cls, name,signature);
        
   if(!id) {
@@ -79,7 +81,6 @@ jmethodID jxbt_get_smethod(JNIEnv* env, const char *classname,
     free(m);
     return 0;
   }
-
   return id;
 }