From 784f89d0c96bae5766c97754d71a17ee781baff5 Mon Sep 17 00:00:00 2001 From: Aaron Chiu Date: Mon, 22 May 2017 03:10:26 -0700 Subject: [PATCH] fix lint Reviewed By: javache Differential Revision: D5103275 fbshipit-source-id: 1df50ecef7b16289eecadde3c193db086eef1fc7 --- .../main/java/com/facebook/react/ReactRootView.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java index d03b11a25..93b149b6c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java @@ -236,8 +236,8 @@ public class ReactRootView extends SizeMonitoringFrameLayout implements RootView /** * Unmount the react application at this root view, reclaiming any JS memory associated with that * application. If {@link #startReactApplication} is called, this method must be called before the - * ReactRootView is garbage collected (typically in your Activity's onDestroy, or in your Fragment's - * onDestroyView). + * ReactRootView is garbage collected (typically in your Activity's onDestroy, or in your + * Fragment's onDestroyView). */ public void unmountReactApplication() { if (mReactInstanceManager != null && mIsAttachedToInstance) { @@ -339,10 +339,11 @@ public class ReactRootView extends SizeMonitoringFrameLayout implements RootView super.finalize(); Assertions.assertCondition( !mIsAttachedToInstance, - "The application this ReactRootView was rendering was not unmounted before the ReactRootView " + - "was garbage collected. This usually means that your application is leaking large amounts of " + - "memory. To solve this, make sure to call ReactRootView#unmountReactApplication in the onDestroy() " + - "of your hosting Activity or in the onDestroyView() of your hosting Fragment."); + "The application this ReactRootView was rendering was not unmounted before the " + + "ReactRootView was garbage collected. This usually means that your application is " + + "leaking large amounts of memory. To solve this, make sure to call " + + "ReactRootView#unmountReactApplication in the onDestroy() of your hosting Activity or in " + + "the onDestroyView() of your hosting Fragment."); } public int getRootViewTag() {