Skip to content

Commit

Permalink
refactor: small refactor to use empty services
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed Dec 6, 2024
1 parent 072300d commit e8c0032
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void compile(String[] files, List<String> classPath, TemplateConfig confi
K2JVMCompiler compiler = new K2JVMCompiler();

SimpleKotlinCompilerMessageCollector messageCollector = new SimpleKotlinCompilerMessageCollector(templateByClassName, config.packageName);
ExitCode exitCode = compiler.exec(messageCollector, new Services.Builder().build(), compilerArguments);
ExitCode exitCode = compiler.exec(messageCollector, Services.EMPTY, compilerArguments);

if (exitCode != ExitCode.OK && exitCode != ExitCode.COMPILATION_ERROR) {
throw new TemplateException(messageCollector.getErrorMessage());
Expand Down

0 comments on commit e8c0032

Please sign in to comment.