File tree Expand file tree Collapse file tree 3 files changed +12
-17
lines changed
packages/react-native/ReactAndroid
src/main/java/com/facebook/react/bridge Expand file tree Collapse file tree 3 files changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -695,7 +695,7 @@ public class com/facebook/react/bridge/CxxModuleWrapperBase : com/facebook/react
695
695
protected fun resetModule (Lcom/facebook/jni/HybridData;)V
696
696
}
697
697
698
- public class com/facebook/react/bridge/DefaultJSExceptionHandler : com/facebook/react/bridge/JSExceptionHandler {
698
+ public final class com/facebook/react/bridge/DefaultJSExceptionHandler : com/facebook/react/bridge/JSExceptionHandler {
699
699
public fun <init> ()V
700
700
public fun handleException (Ljava/lang/Exception;)V
701
701
}
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
- package com .facebook .react .bridge ;
8
+ package com.facebook.react.bridge
9
9
10
- import com .facebook .jni .HybridData ;
11
- import com .facebook .proguard .annotations .DoNotStrip ;
10
+ import com.facebook.jni.HybridData
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
12
13
13
/* * This does nothing interesting, except avoid breaking existing code. */
14
14
@DoNotStrip
15
- public class CxxModuleWrapper extends CxxModuleWrapperBase {
16
- protected CxxModuleWrapper (HybridData hd ) {
17
- super (hd );
18
- }
19
- }
15
+ public open class CxxModuleWrapper protected constructor(hybridData : HybridData ) :
16
+ CxxModuleWrapperBase (hybridData)
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
- package com .facebook .react .bridge ;
8
+ package com.facebook.react.bridge
9
9
10
10
/* * Crashy crashy exception handler. */
11
- public class DefaultJSExceptionHandler implements JSExceptionHandler {
12
-
13
- @ Override
14
- public void handleException (Exception e ) {
15
- if (e instanceof RuntimeException ) {
11
+ public class DefaultJSExceptionHandler : JSExceptionHandler {
12
+ override fun handleException (e : Exception ) {
13
+ throw if (e is RuntimeException ) {
16
14
// Because we are rethrowing the original exception, the original stacktrace will be
17
15
// preserved.
18
- throw ( RuntimeException ) e ;
16
+ e
19
17
} else {
20
- throw new RuntimeException (e );
18
+ RuntimeException (e)
21
19
}
22
20
}
23
21
}
You can’t perform that action at this time.
0 commit comments