From 86f5d4cff899a16f02c0f41dd84f7599bb3a436e Mon Sep 17 00:00:00 2001 From: mschoi17 <31817525+mschoi17@users.noreply.github.com> Date: Tue, 21 Nov 2017 12:36:10 +0900 Subject: [PATCH] fix comments for JniHelper.h (#18481) update #18477 --- cocos/platform/android/jni/JniHelper.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cocos/platform/android/jni/JniHelper.h b/cocos/platform/android/jni/JniHelper.h index 08ecc2589f..a3e6646690 100644 --- a/cocos/platform/android/jni/JniHelper.h +++ b/cocos/platform/android/jni/JniHelper.h @@ -72,7 +72,7 @@ public: /** @brief Call of Java static void method - @report error if the condition is not satisfied + @if no such method will log error */ template static void callStaticVoidMethod(const std::string& className, @@ -114,7 +114,7 @@ public: /** @brief Call of Java static int method - @return value from Java static int method if there are proper JniMethodInfo; otherwise false. + @return value from Java static int method if there are proper JniMethodInfo; otherwise 0. */ template static int callStaticIntMethod(const std::string& className, @@ -136,7 +136,7 @@ public: /** @brief Call of Java static float method - @return value from Java static float method if there are proper JniMethodInfo; otherwise false. + @return value from Java static float method if there are proper JniMethodInfo; otherwise 0. */ template static float callStaticFloatMethod(const std::string& className, @@ -189,7 +189,7 @@ public: /** @brief Call of Java static Vec3 method - @return JniMethodInfo of Vec3 type if there are proper JniMethodInfo; otherwise garbage Vec3. + @return JniMethodInfo of Vec3 type if there are proper JniMethodInfo; otherwise Vec3(0, 0, 0). */ template static Vec3 callStaticVec3Method(const std::string& className, @@ -219,7 +219,7 @@ public: /** @brief Call of Java static double method - @return value from Java static double method if there are proper JniMethodInfo; otherwise false. + @return value from Java static double method if there are proper JniMethodInfo; otherwise 0. */ template static double callStaticDoubleMethod(const std::string& className, @@ -241,7 +241,7 @@ public: /** @brief Call of Java static string method - @return JniMethodInfo of string type if there are proper JniMethodInfo; otherwise garbage of string type. + @return JniMethodInfo of string type if there are proper JniMethodInfo; otherwise empty string. */ template static std::string callStaticStringMethod(const std::string& className,