Skip to content

Commit 245da1f

Browse files
committed
style fixes
1 parent a4b1975 commit 245da1f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

JavaSwiftKitDemo/src/main/java/com/example/swift/HelloSubclass.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
package com.example.swift;
16+
1617
import com.example.swift.HelloSwift;
1718

1819
public class HelloSubclass extends HelloSwift {

JavaSwiftKitDemo/src/main/java/com/example/swift/HelloSwift.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
package com.example.swift;
16+
1617
import com.example.swift.HelloSubclass;
1718

1819
public class HelloSwift {

JavaSwiftKitDemo/src/main/java/org/example/swift/ManualJavaKitExample.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,13 @@ public static void globalCallJavaCallback(Runnable callMe) {
200200
var mh$ = globalCallJavaCallback.HANDLE;
201201

202202
try {
203+
// signature of 'void run()'
203204
FunctionDescriptor callMe_run_desc = FunctionDescriptor.ofVoid(
204-
// replicate signature of run()
205205
);
206206
MethodHandle callMe_run_handle = MethodHandles.lookup()
207207
.findVirtual(Runnable.class,
208208
"run",
209-
callMe_run_desc.toMethodType()
210-
);
209+
callMe_run_desc.toMethodType());
211210
callMe_run_handle = callMe_run_handle.bindTo(callMe); // set the first parameter to the Runnable as the "this" of the callback pretty much
212211

213212
try (Arena arena = Arena.ofConfined()) {

0 commit comments

Comments
 (0)