@@ -15,7 +15,7 @@ import com.facebook.react.bridge.ReactSoftExceptionLogger.Categories.SOFT_ASSERT
1515 * opinion on when these assertions should be used as opposed to assertions that might throw
1616 * AssertionError Throwables that will cause the app to hard crash.
1717 */
18- public object SoftAssertions {
18+ internal object SoftAssertions {
1919
2020 /* *
2121 * Throw [AssertionException] with a given message. Use this method surrounded with `if` block
@@ -24,7 +24,7 @@ public object SoftAssertions {
2424 * throw.
2525 */
2626 @JvmStatic
27- public fun assertUnreachable (message : String ): Unit {
27+ fun assertUnreachable (message : String ): Unit {
2828 ReactSoftExceptionLogger .logSoftException(SOFT_ASSERTIONS , AssertionException (message))
2929 }
3030
@@ -34,7 +34,7 @@ public object SoftAssertions {
3434 * throw.
3535 */
3636 @JvmStatic
37- public fun assertCondition (condition : Boolean , message : String ): Unit {
37+ fun assertCondition (condition : Boolean , message : String ): Unit {
3838 if (! condition) {
3939 ReactSoftExceptionLogger .logSoftException(SOFT_ASSERTIONS , AssertionException (message))
4040 }
@@ -45,7 +45,7 @@ public object SoftAssertions {
4545 * an assertion with ReactSoftExceptionLogger, which decides whether or not to actually throw.
4646 */
4747 @JvmStatic
48- public fun <T > assertNotNull (instance : T ? ): T ? {
48+ fun <T > assertNotNull (instance : T ? ): T ? {
4949 if (instance == null ) {
5050 ReactSoftExceptionLogger .logSoftException(
5151 SOFT_ASSERTIONS , AssertionException (" Expected object to not be null!" ))
0 commit comments