[sword-svn] r2479 - trunk/bindings/java-jni/jni
scribe at crosswire.org
scribe at crosswire.org
Thu Dec 3 17:15:49 MST 2009
Author: scribe
Date: 2009-12-03 17:15:49 -0700 (Thu, 03 Dec 2009)
New Revision: 2479
Modified:
trunk/bindings/java-jni/jni/swordstub.cpp
Log:
removed some android log messages
Modified: trunk/bindings/java-jni/jni/swordstub.cpp
===================================================================
--- trunk/bindings/java-jni/jni/swordstub.cpp 2009-12-03 22:36:02 UTC (rev 2478)
+++ trunk/bindings/java-jni/jni/swordstub.cpp 2009-12-04 00:15:49 UTC (rev 2479)
@@ -460,28 +460,18 @@
SWModule *getModule(JNIEnv *env, jobject me) {
-SWLog::getSystemLog()->logDebug("getModule start");
init();
SWModule *module = 0;
jclass clazzSWModule = env->FindClass("org/crosswire/android/sword/SWModule");
-SWLog::getSystemLog()->logDebug("getModule got SWModule clazz");
jfieldID fieldID = env->GetFieldID(clazzSWModule, "name", "Ljava/lang/String;");
-SWLog::getSystemLog()->logDebug("getModule got SWModule::name fid");
jfieldID sourceFieldID = env->GetFieldID(clazzSWModule, "remoteSourceName", "Ljava/lang/String;");
-SWLog::getSystemLog()->logDebug("getModule got SWModule::remoteSourceName fid");
jstring modNameJS = (jstring)env->GetObjectField(me, fieldID);
-SWLog::getSystemLog()->logDebug("getModule got SWModule::name");
jstring sourceNameJS = (jstring)env->GetObjectField(me, sourceFieldID);
-SWLog::getSystemLog()->logDebug("getModule got SWModule::remoteSourceName");
const char *modName = (modNameJS?env->GetStringUTFChars(modNameJS, NULL):0);
-SWLog::getSystemLog()->logDebug("getModule got SWModule::modName const char *");
const char *sourceName = (sourceNameJS?env->GetStringUTFChars(sourceNameJS, NULL):0);
-SWLog::getSystemLog()->logDebug("getModule got SWModule::sourceName const char *");
-SWLog::getSystemLog()->logDebug("getModule %s %s", (sourceName?sourceName:"null"), (modName?modName:"null"));
if (sourceName && *sourceName) {
-SWLog::getSystemLog()->logDebug("getModule remote");
initInstall();
InstallSourceMap::iterator source = installMgr->sources.find(sourceName);
if (source == installMgr->sources.end()) {
@@ -492,7 +482,6 @@
else module = mgr->getModule(modName);
if (modName) env->ReleaseStringUTFChars(modNameJS, modName);
if (sourceName) env->ReleaseStringUTFChars(sourceNameJS, sourceName);
-SWLog::getSystemLog()->logDebug("getModule end");
return module;
}
@@ -696,6 +685,8 @@
ret = (jobjectArray) env->NewObjectArray(results.size(), clazzString, NULL);
+SWLog::getSystemLog()->logDebug("getEntryAttributes: size returned: %d", results.size());
+
for (int i = 0; i < results.size(); i++) {
if (filtered) {
env->SetObjectArrayElement(ret, i, env->NewStringUTF(assureValidUTF8(module->RenderText(results[i].c_str()))));
More information about the sword-cvs
mailing list