[jOOQ/jOOQ#8905] Use GeneratorWriter.encoding() instead of "UTF-8"

This commit is contained in:
lukaseder 2019-07-05 13:46:15 +02:00
parent 255f5481a5
commit 1b0113cc25

View File

@ -269,7 +269,7 @@ public abstract class GeneratorWriter<W extends GeneratorWriter<W>> {
try {
// [#3756] Regenerate files only if there is a difference
String oldContent = null;
if (file.exists() && file.length() == newContent.getBytes("UTF-8").length) {
if (file.exists() && file.length() == newContent.getBytes(encoding()).length) {
RandomAccessFile old = null;
try {