🎨 Improving structure / format of the code.

This commit is contained in:
萌萌哒Sakura酱 committed 2019-02-03 22:28:06 +08:00
1 parent db0a3e0de6
commit e477418bc4
5 files changed
+11 -9

No files matched your search

@@ -40,6 +40,7 @@ import org.apache.velocity.app.Velocity;
import java.io.File;
import java.io.IOException;
import java.io.StringWriter;
import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
@@ -200,7 +201,7 @@ public class GenUtils {
zip.putNextEntry(new ZipEntry(Objects
.requireNonNull(getFileName(template, tableEntity.getCaseClassName()
, map.get("package").toString(), map.get("moduleName").toString()))));
IoUtil.write(zip, CharsetUtil.UTF_8, false, sw.toString());
IoUtil.write(zip, StandardCharsets.UTF_8, false, sw.toString());
IoUtil.close(sw);
zip.closeEntry();
} catch (IOException e) {