Remove unnecessary constructor keyword intention (KT-29143)
#KT-29143 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
c10eadfa77
commit
185d0c6165
@@ -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>
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
class Foo(x: Int, y: Int)
|
||||
+1
@@ -0,0 +1 @@
|
||||
class Foo constructor(x: Int, y: Int)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention removes a redundant constructor keyword for primary constructors.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user