File tree 1 file changed +4
-2
lines changed
java/kotlin-extractor/src/main/kotlin 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1307,7 +1307,9 @@ open class KotlinFileExtractor(
1307
1307
val getterId = extractFunction(getter, parentId) as Label <out DbMethod >
1308
1308
tw.writeKtPropertyGetters(id, getterId)
1309
1309
} else {
1310
- logger.warnElement(Severity .ErrorSevere , " IrProperty without a getter" , p)
1310
+ if (p.modality != Modality .FINAL || ! isExternalDeclaration(p)) {
1311
+ logger.warnElement(Severity .ErrorSevere , " IrProperty without a getter" , p)
1312
+ }
1311
1313
}
1312
1314
1313
1315
if (setter != null ) {
@@ -1318,7 +1320,7 @@ open class KotlinFileExtractor(
1318
1320
val setterId = extractFunction(setter, parentId) as Label <out DbMethod >
1319
1321
tw.writeKtPropertySetters(id, setterId)
1320
1322
} else {
1321
- if (p.isVar) {
1323
+ if (p.isVar && ! isExternalDeclaration(p) ) {
1322
1324
logger.warnElement(Severity .ErrorSevere , " isVar property without a setter" , p)
1323
1325
}
1324
1326
}
You can’t perform that action at this time.
0 commit comments