Commit 427e5c7b authored by Ryan Berkheimer's avatar Ryan Berkheimer

bugfix for potentially undesired compiler optimization.

parent 462b2f1a
...@@ -510,10 +510,11 @@ struct rejection *MessageApiEndpoint::createRejection(struct record *record, con ...@@ -510,10 +510,11 @@ struct rejection *MessageApiEndpoint::createRejection(struct record *record, con
*/ */
jobject MessageApiEndpoint::getProtocolRecords(const char* method, const char* key, const char* val) jobject MessageApiEndpoint::getProtocolRecords(const char* method, const char* key, const char* val)
{ {
if (method == "getRecords") return this->jvm->CallObjectMethod(this->protocolRecord, this->getRecordsMethodId);
/*if (method == "getRecords")
{ {
return this->jvm->CallObjectMethod(this->protocolRecord, this->getRecordsMethodId); return this->jvm->CallObjectMethod(this->protocolRecord, this->getRecordsMethodId);
}/* }
else if (method == "getRecordsByCollection") else if (method == "getRecordsByCollection")
{ {
jstring javaKey = this->toJavaString(key); jstring javaKey = this->toJavaString(key);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment