New J2K: Add default mutability to property in FieldToPropertyConversion
This commit is contained in:
committed by
Ilya Kirillov
parent
0873045718
commit
03df0f1164
@@ -56,7 +56,7 @@ class FieldToPropertyConversion : RecursiveApplicableConversionBase() {
|
|||||||
JKKtPropertyImpl(field.modifierList, field.type, field.name, field.initializer, JKBlockImpl(), JKBlockImpl())
|
JKKtPropertyImpl(field.modifierList, field.type, field.name, field.initializer, JKBlockImpl(), JKBlockImpl())
|
||||||
|
|
||||||
declarations.remove(field)
|
declarations.remove(field)
|
||||||
|
property.modifierList.mutability = Mutability.NonMutable
|
||||||
val getter = info.getter
|
val getter = info.getter
|
||||||
if (getter?.fieldFromGetter(field.name.value) == field) {
|
if (getter?.fieldFromGetter(field.name.value) == field) {
|
||||||
declarations.remove(getter)
|
declarations.remove(getter)
|
||||||
|
|||||||
Reference in New Issue
Block a user