Skip to content

Commit

Permalink
jmeClasses: rename the List_addMethod field
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Sep 21, 2022
1 parent 52feb11 commit fdd6a7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/native/glue/jmeBulletUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ void jmeBulletUtil::addRayTestResult(JNIEnv *pEnv, jobject resultList,
return;
}

pEnv->CallBooleanMethod(resultList, jmeClasses::List_addmethod, result);
pEnv->CallBooleanMethod(resultList, jmeClasses::List_addMethod, result);
if (pEnv->ExceptionCheck()) {
pEnv->Throw(pEnv->ExceptionOccurred());
return;
Expand Down Expand Up @@ -620,7 +620,7 @@ void jmeBulletUtil::addSweepTestResult(JNIEnv *pEnv, jobject resultList,
return;
}

pEnv->CallBooleanMethod(resultList, jmeClasses::List_addmethod, result);
pEnv->CallBooleanMethod(resultList, jmeClasses::List_addMethod, result);
if (pEnv->ExceptionCheck()) {
pEnv->Throw(pEnv->ExceptionOccurred());
return;
Expand Down
4 changes: 2 additions & 2 deletions src/main/native/glue/jmeClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ JavaVM * jmeClasses::vm;

jclass jmeClasses::IllegalArgumentException;

jmethodID jmeClasses::List_addmethod;
jmethodID jmeClasses::List_addMethod;

jmethodID jmeClasses::CollisionSpace_notifyCollisionGroupListeners;

Expand Down Expand Up @@ -198,7 +198,7 @@ void jmeClasses::initJavaClasses(JNIEnv *pEnv) {
pEnv->Throw(pEnv->ExceptionOccurred());
return;
}
List_addmethod = pEnv->GetMethodID(List, "add", "(Ljava/lang/Object;)Z");
List_addMethod = pEnv->GetMethodID(List, "add", "(Ljava/lang/Object;)Z");
if (pEnv->ExceptionCheck()) {
pEnv->Throw(pEnv->ExceptionOccurred());
return;
Expand Down
2 changes: 1 addition & 1 deletion src/main/native/glue/jmeClasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class jmeClasses {

static jclass IllegalArgumentException;

static jmethodID List_addmethod;
static jmethodID List_addMethod;

static jmethodID CollisionSpace_notifyCollisionGroupListeners;

Expand Down

0 comments on commit fdd6a7d

Please sign in to comment.