File tree 1 file changed +1
-22
lines changed
1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -26,34 +26,13 @@ extension JavaObject {
26
26
} catch let notFound as ClassNotFoundException {
27
27
notFound. printStackTrace ( ) ;
28
28
} catch {
29
- JNI . report ( " Uncaught exception casting " )
29
+ JNI . report ( " validDownCast: Uncaught exception \( error ) " )
30
30
}
31
31
return false ;
32
32
}
33
33
34
34
}
35
35
36
- public class ClosureRunnable : RunnableBase {
37
-
38
- var closure : ( ) -> ( )
39
-
40
- public init ( _ closure: @escaping ( ) -> ( ) ) {
41
- self . closure = closure
42
- super. init ( )
43
- }
44
-
45
- public required init ( javaObject: jobject ! ) {
46
- fatalError ( " init(javaObject:) has not been implemented " )
47
- }
48
-
49
- public override func run( ) {
50
- closure ( )
51
- closure = { return }
52
- JNI . envCache [ JNI . threadKey] = nil
53
- }
54
-
55
- }
56
-
57
36
extension Thread {
58
37
59
38
public convenience init ( _ closure: @escaping ( ) -> ( ) ) {
You can’t perform that action at this time.
0 commit comments