Skip to content

Commit 83f84b7

Browse files
committed
cleanup
1 parent 1aaebf5 commit 83f84b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaBindingsPrinting.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ extension JNISwift2JavaGenerator {
549549
var modifiers = modifiers
550550

551551
// If we are a protocol, we emit this as default method
552-
if importedFunc?.parentType?.asNominalType?.isProtocol ?? false {
552+
if isParentProtocol {
553553
modifiers.insert("default", at: 1)
554554
}
555555

0 commit comments

Comments
 (0)