Use a java11 feature inside Closure Compiler codebase
This is mostly just a trial to make sure it works. We likely have a bunch more
places that can be similarly simplified with java11 features in a follow-up.
@@ -104,7 +104,7 @@ public class RecoverableJsAstTest {
}
private void setSourceCode(String code) throws IOException {
- Files.write(tempFile, code.getBytes(UTF_8));
+ Files.writeString(tempFile, code);
}
private SourceAst createRealAst() {
