diff --git a/idea/src/org/jetbrains/kotlin/idea/quickfix/createFromUsage/callableBuilder/CallableBuilder.kt b/idea/src/org/jetbrains/kotlin/idea/quickfix/createFromUsage/callableBuilder/CallableBuilder.kt index 986f5b6973e..07fa7177844 100644 --- a/idea/src/org/jetbrains/kotlin/idea/quickfix/createFromUsage/callableBuilder/CallableBuilder.kt +++ b/idea/src/org/jetbrains/kotlin/idea/quickfix/createFromUsage/callableBuilder/CallableBuilder.kt @@ -462,6 +462,7 @@ class CallableBuilder(val config: CallableBuilderConfiguration) { CallableKind.FUNCTION, CallableKind.SECONDARY_CONSTRUCTOR -> { val body = when { containingElement is KtClass && containingElement.isInterface() && !config.isExtension -> "" + callableInfo.kind == CallableKind.SECONDARY_CONSTRUCTOR -> "" else -> "{}" } @Suppress("USELESS_CAST") // KT-10755 diff --git a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/callWithExpectedType.kt.after b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/callWithExpectedType.kt.after index 9a19aeffb59..d8bd3821beb 100644 --- a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/callWithExpectedType.kt.after +++ b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/callWithExpectedType.kt.after @@ -3,9 +3,7 @@ interface T class A: T { - constructor(i: Int) { - //To change body of created constructors use File | Settings | File Templates. - } + constructor(i: Int) } fun test() { diff --git a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/classWithBody.kt.after b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/classWithBody.kt.after index 13c3e1f70ff..76e9ff282aa 100644 --- a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/classWithBody.kt.after +++ b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/classWithBody.kt.after @@ -1,9 +1,7 @@ // "Create secondary constructor" "true" class A { - constructor(i: Int) { - //To change body of created constructors use File | Settings | File Templates. - } + constructor(i: Int) } diff --git a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/classWithoutBody.kt.after b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/classWithoutBody.kt.after index 0391e59f299..3bbcad917e4 100644 --- a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/classWithoutBody.kt.after +++ b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/classWithoutBody.kt.after @@ -1,9 +1,7 @@ // "Create secondary constructor" "true" class A { - constructor(i: Int) { - //To change body of created constructors use File | Settings | File Templates. - } + constructor(i: Int) } fun test() { diff --git a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/delegatorToSuperCall.kt.after b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/delegatorToSuperCall.kt.after index c595c19452d..6be20bc4566 100644 --- a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/delegatorToSuperCall.kt.after +++ b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/delegatorToSuperCall.kt.after @@ -1,9 +1,7 @@ // "Create secondary constructor" "true" open class A { - constructor(i: Int) { - //To change body of created constructors use File | Settings | File Templates. - } + constructor(i: Int) } diff --git a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/noParameters.kt.after b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/noParameters.kt.after index a4dca9c9f23..2ab59cafb5c 100644 --- a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/noParameters.kt.after +++ b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/noParameters.kt.after @@ -1,9 +1,7 @@ // "Create secondary constructor" "true" // ERROR: Primary constructor call expected class Creation(val f: Int) { - constructor() { - //To change body of created constructors use File | Settings | File Templates. - } + constructor() } val v = Creation() \ No newline at end of file diff --git a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/superCall.kt.after b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/superCall.kt.after index b01ee4583ed..67340a8dacc 100644 --- a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/superCall.kt.after +++ b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/superCall.kt.after @@ -1,9 +1,7 @@ // "Create secondary constructor" "true" open class A { - constructor(i: Int) { - //To change body of created constructors use File | Settings | File Templates. - } + constructor(i: Int) } diff --git a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/thisCall.kt.after b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/thisCall.kt.after index 58ed14e95e0..6d35d15aab0 100644 --- a/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/thisCall.kt.after +++ b/idea/testData/quickfix/createFromUsage/createSecondaryConstructor/thisCall.kt.after @@ -5,7 +5,5 @@ class A { } - constructor(i: Int) { - //To change body of created constructors use File | Settings | File Templates. - } + constructor(i: Int) } \ No newline at end of file