Java to Kotlin converter: working on not loosing comments - refactored redundant .toKotlin() calls

This commit is contained in:
Valentin Kipyatkov
2014-06-17 13:32:03 +04:00
parent 7463da8fe0
commit 600446bbd2
13 changed files with 75 additions and 69 deletions
@@ -124,7 +124,7 @@ public class JavaToKotlinActionUtil {
if (psiFile instanceof PsiJavaFile && virtualFile != null) {
String result = "";
try {
result = converter.convertFile((PsiJavaFile) psiFile).toKotlin();
result = converter.elementToKotlin(psiFile);
} catch (Exception e) {
//noinspection CallToPrintStackTrace
e.printStackTrace();