@@ -15,7 +15,7 @@ import com.facebook.react.bridge.ReactSoftExceptionLogger.Categories.SOFT_ASSERT
15
15
* opinion on when these assertions should be used as opposed to assertions that might throw
16
16
* AssertionError Throwables that will cause the app to hard crash.
17
17
*/
18
- public object SoftAssertions {
18
+ internal object SoftAssertions {
19
19
20
20
/* *
21
21
* Throw [AssertionException] with a given message. Use this method surrounded with `if` block
@@ -24,7 +24,7 @@ public object SoftAssertions {
24
24
* throw.
25
25
*/
26
26
@JvmStatic
27
- public fun assertUnreachable (message : String ): Unit {
27
+ fun assertUnreachable (message : String ): Unit {
28
28
ReactSoftExceptionLogger .logSoftException(SOFT_ASSERTIONS , AssertionException (message))
29
29
}
30
30
@@ -34,7 +34,7 @@ public object SoftAssertions {
34
34
* throw.
35
35
*/
36
36
@JvmStatic
37
- public fun assertCondition (condition : Boolean , message : String ): Unit {
37
+ fun assertCondition (condition : Boolean , message : String ): Unit {
38
38
if (! condition) {
39
39
ReactSoftExceptionLogger .logSoftException(SOFT_ASSERTIONS , AssertionException (message))
40
40
}
@@ -45,7 +45,7 @@ public object SoftAssertions {
45
45
* an assertion with ReactSoftExceptionLogger, which decides whether or not to actually throw.
46
46
*/
47
47
@JvmStatic
48
- public fun <T > assertNotNull (instance : T ? ): T ? {
48
+ fun <T > assertNotNull (instance : T ? ): T ? {
49
49
if (instance == null ) {
50
50
ReactSoftExceptionLogger .logSoftException(
51
51
SOFT_ASSERTIONS , AssertionException (" Expected object to not be null!" ))
0 commit comments