*_mult avoided

This commit is contained in:
Sergey Ignatov
2011-11-07 13:36:12 +04:00
parent 4e6e488e28
commit 992675a1bc
104 changed files with 4 additions and 18 deletions
@@ -39,10 +39,7 @@ public class JavaToKotlinConverterTest extends LightDaemonAnalyzerTestCase {
String actual = "";
if (javaFile.getParent().endsWith("/expression")) actual = expressionToKotlin(javaCode);
else if (javaFile.getParent().endsWith("/statement")) actual = statementToSingleLineKotlin(javaCode);
else if (javaFile.getParent().endsWith("/statement_mult")) actual = statementToKotlin(javaCode);
else if (javaFile.getParent().endsWith("/statement")) actual = statementToKotlin(javaCode);
else if (javaFile.getParent().endsWith("/method")) actual = methodToKotlin(javaCode);
else if (javaFile.getParent().endsWith("/class")) actual = classToKotlin(javaCode);
else if (javaFile.getParent().endsWith("/file")) actual = fileToKotlin(javaCode);
@@ -108,14 +105,6 @@ public class JavaToKotlinConverterTest extends LightDaemonAnalyzerTestCase {
return prettify(result);
}
protected String methodToSingleLineKotlin(String text) throws IOException {
return toSingleLine(methodToKotlin(text));
}
protected String statementToSingleLineKotlin(String code) throws Exception {
return toSingleLine(statementToKotlin(code));
}
@NotNull
protected String methodToKotlin(String text) throws IOException {
String result = classToKotlin("final class C {" + text + "}")
@@ -152,9 +141,4 @@ public class JavaToKotlinConverterTest extends LightDaemonAnalyzerTestCase {
.trim()
;
}
@NotNull
public static String toSingleLine(String string) {
return prettify(string.replaceAll("\n", " "));
}
}
@@ -1 +1,3 @@
synchronized (s) { doSomething(s) }
synchronized (s) {
doSomething(s)
}

Some files were not shown because too many files have changed in this diff Show More