A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix stupid comments
[simgrid.git]
/
src
/
java
/
jxbt_utilities.c
diff --git
a/src/java/jxbt_utilities.c
b/src/java/jxbt_utilities.c
index
2ef04a3
..
6b9b7d1
100644
(file)
--- a/
src/java/jxbt_utilities.c
+++ b/
src/java/jxbt_utilities.c
@@
-64,11
+64,15
@@
jmethodID jxbt_get_jmethod(JNIEnv* env, jclass cls,
jmethodID jxbt_get_smethod(JNIEnv* env, const char *classname,
const char *name,const char *signature) {
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;
if (!cls)
return 0;
+
id = (*env)->GetMethodID(env, cls, name,signature);
if(!id) {
id = (*env)->GetMethodID(env, cls, name,signature);
if(!id) {
@@
-79,7
+83,6
@@
jmethodID jxbt_get_smethod(JNIEnv* env, const char *classname,
free(m);
return 0;
}
free(m);
return 0;
}
-
return id;
}
return id;
}