Skip to content

Commit 0e798f0

Browse files
committed
fix compilation
1 parent b8e710e commit 0e798f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaBindingsPrinting.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ extension JNISwift2JavaGenerator {
179179
_ printer: inout CodePrinter,
180180
_ decl: ImportedFunc
181181
) {
182-
guard let translatedDecl = translatedDecl(for: decl) else {
182+
guard translatedDecl(for: decl) != nil else {
183183
// Failed to translate. Skip.
184184
return
185185
}
@@ -236,7 +236,7 @@ extension JNISwift2JavaGenerator {
236236
fatalError("Decl was not translated, \(decl)")
237237
}
238238

239-
var modifiers = "public"
239+
var modifiers = ["public"]
240240
if decl.isStatic || decl.isInitializer || !decl.hasParent {
241241
modifiers.append("static")
242242
}

0 commit comments

Comments
 (0)