compiler: cleanup 'public', property access syntax

This commit is contained in:
Dmitry Jemerov
2016-01-07 17:57:35 +01:00
parent b72ea1ff07
commit 117a0d8b7b
488 changed files with 3147 additions and 3287 deletions
@@ -22,23 +22,21 @@ import java.io.File
import java.io.FileInputStream
import java.util.zip.ZipInputStream
public class TestStdlibWithDxTest {
@Test
public fun testRuntimeWithDx() {
class TestStdlibWithDxTest {
@Test fun testRuntimeWithDx() {
doTest(ForTestCompileRuntime.runtimeJarForTests())
}
@Test
public fun testReflectWithDx() {
@Test fun testReflectWithDx() {
doTest(ForTestCompileRuntime.reflectJarForTests())
}
private fun doTest(file: File) {
val zip = ZipInputStream(FileInputStream(file))
zip.use {
sequence { zip.getNextEntry() }.forEach {
if (it.getName().endsWith(".class")) {
DxChecker.checkFileWithDx(zip.readBytes(), it.getName())
sequence { zip.nextEntry }.forEach {
if (it.name.endsWith(".class")) {
DxChecker.checkFileWithDx(zip.readBytes(), it.name)
}
}
}