Refactoring: MoveAssignmentToInitializer --> JoinDeclarationAndAssignment
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
var i: Int <spot>= 5</spot>
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
var i: Int
|
||||
|
||||
init {
|
||||
<spot>i = 5</spot>
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention joins the declaration of a property / variable and the first assignment into the property / variable
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user