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

Commit

Permalink
Fix compilation error with Kotlin 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yanex committed Mar 2, 2016
1 parent 02a7f7e commit a008261
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jetbrains.kotlin.android.xmlconverter;

import kotlin.text.Charsets;
import org.junit.Rule;
import org.junit.rules.TestName;
import sun.plugin.dom.exception.InvalidStateException;
Expand Down Expand Up @@ -29,8 +30,8 @@ protected void doLayoutTest() {
assertTrue(inputFile + " does not exist", inputFile.exists());
assertTrue(outputFile + " does not exist", outputFile.exists());

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

assertEquals(expected, actual);
}
Expand Down

0 comments on commit a008261

Please sign in to comment.