@@ -380,7 +380,7 @@ public static boolean generateTypes(SchemaTypeSystem system, Filer filer, XmlOpt
380
380
381
381
String indexClassName = SchemaTypeCodePrinter .indexClassForSystem (system );
382
382
383
- try (Writer out = filer .createSourceFile (indexClassName , options == null ? null : options .getCompileSourceCodeEncoding ())) {
383
+ try (Writer out = filer .createSourceFile (indexClassName , options == null ? null : options .getCharacterEncoding ())) {
384
384
Repackager repackager = (filer instanceof FilerImpl ) ? ((FilerImpl ) filer ).getRepackager () : null ;
385
385
printer .printHolder (out , system , options , repackager );
386
386
} catch (IOException e ) {
@@ -398,7 +398,7 @@ public static boolean generateTypes(SchemaTypeSystem system, Filer filer, XmlOpt
398
398
399
399
String fjn = type .getFullJavaName ();
400
400
401
- try (Writer writer = filer .createSourceFile (fjn , options == null ? null : options .getCompileSourceCodeEncoding ())) {
401
+ try (Writer writer = filer .createSourceFile (fjn , options == null ? null : options .getCharacterEncoding ())) {
402
402
// Generate interface class
403
403
printer .printType (writer , type , options );
404
404
} catch (IOException e ) {
@@ -408,7 +408,7 @@ public static boolean generateTypes(SchemaTypeSystem system, Filer filer, XmlOpt
408
408
409
409
fjn = type .getFullJavaImplName ();
410
410
411
- try (Writer writer = filer .createSourceFile (fjn , options == null ? null : options .getCompileSourceCodeEncoding ())) {
411
+ try (Writer writer = filer .createSourceFile (fjn , options == null ? null : options .getCharacterEncoding ())) {
412
412
// Generate Implementation class
413
413
printer .printTypeImpl (writer , type , options );
414
414
} catch (IOException e ) {
0 commit comments