@@ -71,7 +71,8 @@ struct JNIVariablesTests {
7171 func Java_com_example_swift_MyClass__00024getConstant__J(environment: UnsafeMutablePointer<JNIEnv?>!, thisClass: jclass, self: jlong) -> jlong {
7272 assert(self != 0, " self memory address was null " )
7373 let selfBits$ = Int(Int64(fromJNI: self, in: environment!))
74- guard let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$) else {
74+ let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$)
75+ guard let self$ else {
7576 fatalError( " self memory address was null in call to \\ (#function)! " )
7677 }
7778 return self$.pointee.constant.getJNIValue(in: environment!)
@@ -134,7 +135,8 @@ struct JNIVariablesTests {
134135 func Java_com_example_swift_MyClass__00024getMutable__J(environment: UnsafeMutablePointer<JNIEnv?>!, thisClass: jclass, self: jlong) -> jlong {
135136 assert(self != 0, " self memory address was null " )
136137 let selfBits$ = Int(Int64(fromJNI: self, in: environment!))
137- guard let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$) else {
138+ let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$)
139+ guard let self$ else {
138140 fatalError( " self memory address was null in call to \\ (#function)! " )
139141 }
140142 return self$.pointee.mutable.getJNIValue(in: environment!)
@@ -145,7 +147,8 @@ struct JNIVariablesTests {
145147 func Java_com_example_swift_MyClass__00024setMutable__JJ(environment: UnsafeMutablePointer<JNIEnv?>!, thisClass: jclass, newValue: jlong, self: jlong) {
146148 assert(self != 0, " self memory address was null " )
147149 let selfBits$ = Int(Int64(fromJNI: self, in: environment!))
148- guard let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$) else {
150+ let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$)
151+ guard let self$ else {
149152 fatalError( " self memory address was null in call to \\ (#function)! " )
150153 }
151154 self$.pointee.mutable = Int64(fromJNI: newValue, in: environment!)
@@ -194,7 +197,8 @@ struct JNIVariablesTests {
194197 func Java_com_example_swift_MyClass__00024getComputed__J(environment: UnsafeMutablePointer<JNIEnv?>!, thisClass: jclass, self: jlong) -> jlong {
195198 assert(self != 0, " self memory address was null " )
196199 let selfBits$ = Int(Int64(fromJNI: self, in: environment!))
197- guard let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$) else {
200+ let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$)
201+ guard let self$ else {
198202 fatalError( " self memory address was null in call to \\ (#function)! " )
199203 }
200204 return self$.pointee.computed.getJNIValue(in: environment!)
@@ -243,7 +247,8 @@ struct JNIVariablesTests {
243247 func Java_com_example_swift_MyClass__00024getComputedThrowing__J(environment: UnsafeMutablePointer<JNIEnv?>!, thisClass: jclass, self: jlong) -> jlong {
244248 assert(self != 0, " self memory address was null " )
245249 let selfBits$ = Int(Int64(fromJNI: self, in: environment!))
246- guard let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$) else {
250+ let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$)
251+ guard let self$ else {
247252 fatalError( " self memory address was null in call to \\ (#function)! " )
248253 }
249254 do {
@@ -311,7 +316,8 @@ struct JNIVariablesTests {
311316 func Java_com_example_swift_MyClass__00024getGetterAndSetter__J(environment: UnsafeMutablePointer<JNIEnv?>!, thisClass: jclass, self: jlong) -> jlong {
312317 assert(self != 0, " self memory address was null " )
313318 let selfBits$ = Int(Int64(fromJNI: self, in: environment!))
314- guard let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$) else {
319+ let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$)
320+ guard let self$ else {
315321 fatalError( " self memory address was null in call to \\ (#function)! " )
316322 }
317323 return self$.pointee.getterAndSetter.getJNIValue(in: environment!)
@@ -322,7 +328,8 @@ struct JNIVariablesTests {
322328 func Java_com_example_swift_MyClass__00024setGetterAndSetter__JJ(environment: UnsafeMutablePointer<JNIEnv?>!, thisClass: jclass, newValue: jlong, self: jlong) {
323329 assert(self != 0, " self memory address was null " )
324330 let selfBits$ = Int(Int64(fromJNI: self, in: environment!))
325- guard let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$) else {
331+ let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$)
332+ guard let self$ else {
326333 fatalError( " self memory address was null in call to \\ (#function)! " )
327334 }
328335 self$.pointee.getterAndSetter = Int64(fromJNI: newValue, in: environment!)
@@ -385,7 +392,8 @@ struct JNIVariablesTests {
385392 func Java_com_example_swift_MyClass__00024isSomeBoolean__J(environment: UnsafeMutablePointer<JNIEnv?>!, thisClass: jclass, self: jlong) -> jboolean {
386393 assert(self != 0, " self memory address was null " )
387394 let selfBits$ = Int(Int64(fromJNI: self, in: environment!))
388- guard let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$) else {
395+ let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$)
396+ guard let self$ else {
389397 fatalError( " self memory address was null in call to \\ (#function)! " )
390398 }
391399 return self$.pointee.someBoolean.getJNIValue(in: environment!)
@@ -396,7 +404,8 @@ struct JNIVariablesTests {
396404 func Java_com_example_swift_MyClass__00024setSomeBoolean__ZJ(environment: UnsafeMutablePointer<JNIEnv?>!, thisClass: jclass, newValue: jboolean, self: jlong) {
397405 assert(self != 0, " self memory address was null " )
398406 let selfBits$ = Int(Int64(fromJNI: self, in: environment!))
399- guard let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$) else {
407+ let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$)
408+ guard let self$ else {
400409 fatalError( " self memory address was null in call to \\ (#function)! " )
401410 }
402411 self$.pointee.someBoolean = Bool(fromJNI: newValue, in: environment!)
@@ -459,7 +468,8 @@ struct JNIVariablesTests {
459468 func Java_com_example_swift_MyClass__00024isBoolean__J(environment: UnsafeMutablePointer<JNIEnv?>!, thisClass: jclass, self: jlong) -> jboolean {
460469 assert(self != 0, " self memory address was null " )
461470 let selfBits$ = Int(Int64(fromJNI: self, in: environment!))
462- guard let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$) else {
471+ let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$)
472+ guard let self$ else {
463473 fatalError( " self memory address was null in call to \\ (#function)! " )
464474 }
465475 return self$.pointee.isBoolean.getJNIValue(in: environment!)
@@ -470,7 +480,8 @@ struct JNIVariablesTests {
470480 func Java_com_example_swift_MyClass__00024setBoolean__ZJ(environment: UnsafeMutablePointer<JNIEnv?>!, thisClass: jclass, newValue: jboolean, self: jlong) {
471481 assert(self != 0, " self memory address was null " )
472482 let selfBits$ = Int(Int64(fromJNI: self, in: environment!))
473- guard let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$) else {
483+ let self$ = UnsafeMutablePointer<MyClass>(bitPattern: selfBits$)
484+ guard let self$ else {
474485 fatalError( " self memory address was null in call to \\ (#function)! " )
475486 }
476487 self$.pointee.isBoolean = Bool(fromJNI: newValue, in: environment!)
0 commit comments