File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ extension FFMSwift2JavaGenerator {
545545 func printClassConstants( printer: inout CodePrinter ) {
546546 printer. print (
547547 """
548- static final String LIB_NAME = " \( config. nativeLibraryName ?? swiftModuleName) " ;
548+ static final java.lang. String LIB_NAME = " \( config. nativeLibraryName ?? swiftModuleName) " ;
549549 static final Arena LIBRARY_ARENA = Arena.ofAuto();
550550 """
551551 )
@@ -584,7 +584,7 @@ extension FFMSwift2JavaGenerator {
584584 printer. print (
585585 """
586586 @Override
587- public String toString() {
587+ public java.lang. String toString() {
588588 return getClass().getSimpleName()
589589 + " ( "
590590 + SwiftRuntime.nameOfSwiftType($swiftType().$memorySegment(), true)
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ extension JNISwift2JavaGenerator {
111111 printModuleClass ( & printer) { printer in
112112 printer. print (
113113 """
114- static final String LIB_NAME = " \( config. nativeLibraryName ?? swiftModuleName) " ;
114+ static final java.lang. String LIB_NAME = " \( config. nativeLibraryName ?? swiftModuleName) " ;
115115 """
116116 )
117117
@@ -219,7 +219,7 @@ extension JNISwift2JavaGenerator {
219219 printNominal ( & printer, decl) { printer in
220220 printer. print (
221221 """
222- static final String LIB_NAME = " \( config. nativeLibraryName ?? swiftModuleName) " ;
222+ static final java.lang. String LIB_NAME = " \( config. nativeLibraryName ?? swiftModuleName) " ;
223223 """
224224 )
225225
@@ -373,11 +373,11 @@ extension JNISwift2JavaGenerator {
373373
374374 printer. print (
375375 """
376- public String toString() {
376+ public java.lang. String toString() {
377377 return SwiftObjects.toString(this.$memoryAddress(), this.$typeMetadataAddress());
378378 }
379379
380- public String toDebugString() {
380+ public java.lang. String toDebugString() {
381381 return SwiftObjects.toDebugString(this.$memoryAddress(), this.$typeMetadataAddress());
382382 }
383383 """
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ struct JNIClassTests {
6363 """ ,
6464 """
6565 public final class MyClass implements JNISwiftInstance {
66- static final String LIB_NAME = " SwiftModule " ;
66+ static final java.lang. String LIB_NAME = " SwiftModule " ;
6767
6868 @SuppressWarnings( " unused " )
6969 private static final boolean INITIALIZED_LIBS = initializeLibs();
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ struct JNIEnumTests {
4747 """ ,
4848 """
4949 public final class MyEnum implements JNISwiftInstance {
50- static final String LIB_NAME = " SwiftModule " ;
50+ static final java.lang. String LIB_NAME = " SwiftModule " ;
5151
5252 @SuppressWarnings( " unused " )
5353 private static final boolean INITIALIZED_LIBS = initializeLibs();
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ struct JNIModuleTests {
5757 import org.swift.swiftkit.core.annotations.*;
5858
5959 public final class SwiftModule {
60- static final String LIB_NAME = " SwiftModule " ;
60+ static final java.lang. String LIB_NAME = " SwiftModule " ;
6161
6262 static {
6363 System.loadLibrary(SwiftLibraries.LIB_NAME_SWIFT_JAVA);
@@ -292,7 +292,7 @@ struct JNIModuleTests {
292292 . java,
293293 expectedChunks: [
294294 """
295- static final String LIB_NAME = " SwiftModule " ;
295+ static final java.lang. String LIB_NAME = " SwiftModule " ;
296296 """
297297 ] ,
298298 notExpectedChunks: [
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ struct JNIStructTests {
5757 expectedChunks: [
5858 """
5959 public final class MyStruct implements JNISwiftInstance {
60- static final String LIB_NAME = " SwiftModule " ;
60+ static final java.lang. String LIB_NAME = " SwiftModule " ;
6161
6262 @SuppressWarnings( " unused " )
6363 private static final boolean INITIALIZED_LIBS = initializeLibs();
@@ -221,7 +221,7 @@ struct JNIStructTests {
221221 expectedChunks: [
222222 """
223223 public final class MyStruct implements JNISwiftInstance {
224- static final String LIB_NAME = " SwiftModule " ;
224+ static final java.lang. String LIB_NAME = " SwiftModule " ;
225225 """
226226 ] ,
227227 notExpectedChunks: [
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ struct JNIToStringTests {
3232 detectChunkByInitialLines: 1 ,
3333 expectedChunks: [
3434 """
35- public String toString() {
35+ public java.lang. String toString() {
3636 return SwiftObjects.toString(this.$memoryAddress(), this.$typeMetadataAddress());
3737 }
3838 """
@@ -49,7 +49,7 @@ struct JNIToStringTests {
4949 detectChunkByInitialLines: 1 ,
5050 expectedChunks: [
5151 """
52- public String toDebugString() {
52+ public java.lang. String toDebugString() {
5353 return SwiftObjects.toDebugString(this.$memoryAddress(), this.$typeMetadataAddress());
5454 }
5555 """
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ final class SendableTests {
3232 """
3333 @ThreadSafe // Sendable
3434 public final class SendableStruct extends FFMSwiftInstance implements SwiftValue {
35- static final String LIB_NAME = " SwiftModule " ;
35+ static final java.lang. String LIB_NAME = " SwiftModule " ;
3636 static final Arena LIBRARY_ARENA = Arena.ofAuto();
3737 """
3838 ]
@@ -50,7 +50,7 @@ final class SendableTests {
5050 """
5151 @ThreadSafe // Sendable
5252 public final class SendableStruct implements JNISwiftInstance {
53- static final String LIB_NAME = " SwiftModule " ;
53+ static final java.lang. String LIB_NAME = " SwiftModule " ;
5454 """
5555 ]
5656 )
You can’t perform that action at this time.
0 commit comments