Conversion on copy paste: Reformat code after conversion

This commit is contained in:
Pavel V. Talanov
2014-01-09 17:31:20 +04:00
parent 7db53106fd
commit 160f897806
7 changed files with 36 additions and 9 deletions
@@ -1,7 +1,7 @@
class A {
fun someOther() = false
private fun formatElement(var element : PsiElement) : String {
private fun formatElement(var element: PsiElement): String {
element = JetPsiUtil.ascendIfPropertyAccessor(element)
if (element is JetNamedFunction || element is JetProperty)
{
@@ -18,15 +18,15 @@ class A {
}
}
assert(element is PsiMethod) {"Method accepts only kotlin functions/properties and java methods, but '" + element.getText() + "' was found"}
assert(element is PsiMethod) { "Method accepts only kotlin functions/properties and java methods, but '" + element.getText() + "' was found" }
return JetRefactoringUtil.formatPsiMethod((element as PsiMethod), true, false)
}
protected fun getDimensionServiceKey() : String {
protected fun getDimensionServiceKey(): String {
return "#org.jetbrains.jet.plugin.refactoring.safeDelete.KotlinOverridingDialog"
}
public fun getSelected() : ArrayList<UsageInfo> {
public fun getSelected(): ArrayList<UsageInfo> {
val result = ArrayList<UsageInfo>()
for (i in 0..myChecked.length - 1) {
if (myChecked[i])