Remove unnecessary constructor keyword intention (KT-29143)

#KT-29143 Fixed
This commit is contained in:
Felix Guo
2019-01-17 01:28:58 +03:00
committed by Nikolay Krasko
parent c10eadfa77
commit 185d0c6165
24 changed files with 145 additions and 0 deletions
@@ -1394,6 +1394,11 @@
<category>Kotlin</category>
</intentionAction>
<intentionAction>
<className>org.jetbrains.kotlin.idea.intentions.RemoveConstructorKeywordIntention</className>
<category>Kotlin</category>
</intentionAction>
<intentionAction>
<className>org.jetbrains.kotlin.idea.intentions.ConvertPrimaryConstructorToSecondaryIntention</className>
<category>Kotlin</category>
@@ -0,0 +1 @@
class Foo(x: Int, y: Int)
@@ -0,0 +1 @@
class Foo constructor(x: Int, y: Int)
@@ -0,0 +1,5 @@
<html>
<body>
This intention removes a redundant constructor keyword for primary constructors.
</body>
</html>