Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit a008261

Browse files
committed
Fix compilation error with Kotlin 1.0
1 parent 02a7f7e commit a008261

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

preview/xml-converter/test/org/jetbrains/kotlin/android/xmlconverter/BaseXmlConverterTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.jetbrains.kotlin.android.xmlconverter;
22

3+
import kotlin.text.Charsets;
34
import org.junit.Rule;
45
import org.junit.rules.TestName;
56
import sun.plugin.dom.exception.InvalidStateException;
@@ -29,8 +30,8 @@ protected void doLayoutTest() {
2930
assertTrue(inputFile + " does not exist", inputFile.exists());
3031
assertTrue(outputFile + " does not exist", outputFile.exists());
3132

32-
String actual = XmlConverter.INSTANCE.convert(readText(inputFile, "UTF-8"), setOf("raw"));
33-
String expected = readText(outputFile, "UTF-8");
33+
String actual = XmlConverter.INSTANCE.convert(readText(inputFile, Charsets.UTF_8), setOf("raw"));
34+
String expected = readText(outputFile, Charsets.UTF_8);
3435

3536
assertEquals(expected, actual);
3637
}

0 commit comments

Comments
 (0)