Skip to content

Commit b501033

Browse files
committed
Avoid extracting needless obinit methods where we're only extracting a class' outline.
1 parent 3cf7f96 commit b501033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ open class KotlinFileExtractor(
442442
addModifiers(instance.id, "public", "static", "final")
443443
tw.writeClass_object(id.cast<DbClass>(), instance.id)
444444
}
445-
if (needsObinitFunction(c)) {
445+
if (extractFunctionBodies && needsObinitFunction(c)) {
446446
extractObinitFunction(c, id)
447447
}
448448

0 commit comments

Comments
 (0)