Skip to content

Commit c6b5aa8

Browse files
author
杨利兵
committed
代码优化
1 parent cbc3c0c commit c6b5aa8

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

src/main/java/com/yanglb/codegen/converter/BeanMapConverter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public T convert(Class<T> cls, Map<String, String> map) throws CodeGenException
7474
}
7575
}
7676
} else {
77-
// TODO: 其它类型的转换需要添加
7877
value = mapValue;
7978
}
8079
field.set(result, value);

src/main/java/com/yanglb/codegen/core/writer/BaseWriter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ protected void onCreateDir() throws CodeGenException {
5959

6060
outPath = String.format("%s/%s.%s",
6161
outPath,
62-
// this.writableModel.getFilePath(),
6362
this.writableModel.getFileName(),
6463
this.writableModel.getExtension());
6564

src/main/java/com/yanglb/codegen/core/writer/impl/AsciiWriterImpl.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,12 @@ public class AsciiWriterImpl extends BaseWriter {
3131

3232
@Override
3333
protected void onCharEncodeTranslator() throws CodeGenException {
34-
// super.onCharEncodeTranslator();
35-
3634
}
3735

3836
@Override
3937
protected void onWriter() throws CodeGenException {
40-
// super.onWriter();
41-
4238
FileOutputStream fos = null;
4339
try {
44-
// TODO: ANSI形式的文件写入未完
4540
fos = new FileOutputStream(this.writableModel.getFullPath());
4641
fos.write(this.writableModel.getData().toString().getBytes("ASCII"));
4742
fos.flush();

src/main/java/com/yanglb/codegen/core/writer/impl/Utf8WriterImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public class Utf8WriterImpl extends BaseWriter {
3232

3333
@Override
3434
protected void onWriter() throws CodeGenException {
35-
// super.onWriter();
36-
3735
FileOutputStream fos = null;
3836
OutputStreamWriter osw = null;
3937
try {

0 commit comments

Comments
 (0)