Skip to content

Commit 2e14542

Browse files
surlipvojtechovsky
authored andcommitted
fix: remove an hardcoded encoding value in CompilationUnitWrapper (#1544)
1 parent e012bb2 commit 2e14542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/spoon/support/compiler/jdt/CompilationUnitWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class CompilationUnitWrapper extends CompilationUnit {
3232
// char[] contents, String fileName, String encoding, String destinationPath, boolean ignoreOptionalProblems
3333
super(null,
3434
type.getSimpleName() + ".java",
35-
"UTF-8",
35+
type.getFactory().getEnvironment().getEncoding().displayName(),
3636
type.getFactory().getEnvironment().getBinaryOutputDirectory(),
3737
false);
3838
this.type = type;

0 commit comments

Comments
 (0)