We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8e710e commit 0e798f0Copy full SHA for 0e798f0
Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaBindingsPrinting.swift
@@ -179,7 +179,7 @@ extension JNISwift2JavaGenerator {
179
_ printer: inout CodePrinter,
180
_ decl: ImportedFunc
181
) {
182
- guard let translatedDecl = translatedDecl(for: decl) else {
+ guard translatedDecl(for: decl) != nil else {
183
// Failed to translate. Skip.
184
return
185
}
@@ -236,7 +236,7 @@ extension JNISwift2JavaGenerator {
236
fatalError("Decl was not translated, \(decl)")
237
238
239
- var modifiers = "public"
+ var modifiers = ["public"]
240
if decl.isStatic || decl.isInitializer || !decl.hasParent {
241
modifiers.append("static")
242
0 commit comments