From 6b733bdcf1e269586e30e9b7a1c10d420e1464ca Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Mon, 21 Sep 2015 13:30:08 -0700 Subject: [PATCH] Minor fixes in comments Reviewed By: @mkonicek Differential Revision: D2463595 committer: Service User --- ReactAndroid/build.gradle | 5 ++--- ReactAndroid/src/main/jni/react/JSCExecutor.cpp | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index 759a7b446..dda86ab16 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -10,8 +10,8 @@ import org.apache.tools.ant.taskdefs.condition.Os import org.apache.tools.ant.filters.ReplaceTokens // We download various C++ open-source dependencies into downloads. -// We then copy both downloaded code and our custom makefiles and headers into third-party-ndk -// After that we build native code from src/main/jni with module path pointing at third-party-ndk +// We then copy both the downloaded code and our custom makefiles and headers into third-party-ndk. +// After that we build native code from src/main/jni with module path pointing at third-party-ndk. def downloadsDir = new File("$buildDir/downloads") def thirdPartyNdkDir = new File("$buildDir/third-party-ndk") @@ -243,4 +243,3 @@ dependencies { } apply from: 'release.gradle' - diff --git a/ReactAndroid/src/main/jni/react/JSCExecutor.cpp b/ReactAndroid/src/main/jni/react/JSCExecutor.cpp index 14dae182d..583e0fe92 100644 --- a/ReactAndroid/src/main/jni/react/JSCExecutor.cpp +++ b/ReactAndroid/src/main/jni/react/JSCExecutor.cpp @@ -137,8 +137,8 @@ static JSValueRef nativeLoggingHook( android_LogPriority logLevel = ANDROID_LOG_DEBUG; if (argumentCount > 1) { int level = (int) JSValueToNumber(ctx, arguments[1], NULL); - // The lowest log level we get from JS is 0. We shift and cap it to be - // in the range Android logging method expects. + // The lowest log level we get from JS is 0. We shift and cap it to be + // in the range the Android logging method expects. logLevel = std::min( static_cast(level + ANDROID_LOG_VERBOSE), ANDROID_LOG_FATAL);