[jOOQ/jOOQ#8905] GeneratorWriter should check the file size prior to
opening existing files to compare contents
This commit is contained in:
parent
ab676159fa
commit
bcdadee556
@ -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()) {
|
||||
if (file.exists() && file.length() == newContent.getBytes("UTF-8").length) {
|
||||
RandomAccessFile old = null;
|
||||
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user