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
695695 protected fun resetModule (Lcom/facebook/jni/HybridData;)V
696696}
697697
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 {
699699 public fun <init> ()V
700700 public fun handleException (Ljava/lang/Exception;)V
701701}
Original file line number Diff line number Diff line change 55 * LICENSE file in the root directory of this source tree.
66 */
77
8- package com .facebook .react .bridge ;
8+ package com.facebook.react.bridge
99
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
1212
1313/* * This does nothing interesting, except avoid breaking existing code. */
1414@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 55 * LICENSE file in the root directory of this source tree.
66 */
77
8- package com .facebook .react .bridge ;
8+ package com.facebook.react.bridge
99
1010/* * 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 ) {
1614 // Because we are rethrowing the original exception, the original stacktrace will be
1715 // preserved.
18- throw ( RuntimeException ) e ;
16+ e
1917 } else {
20- throw new RuntimeException (e );
18+ RuntimeException (e)
2119 }
2220 }
2321}
You can’t perform that action at this time.
0 commit comments