1515import org .beetl .core .resource .FileResourceLoader ;
1616import org .beetl .core .resource .StartsWithMatcher ;
1717
18- import javax .annotation .Nonnull ;
1918import java .io .ByteArrayOutputStream ;
2019import java .io .File ;
2120import java .io .FileOutputStream ;
@@ -56,7 +55,7 @@ public BeetlTemplateEngine(NameConverter nameConverter, String templateStoreDir)
5655 }
5756
5857 @ Override
59- public void writer (@ Nonnull Map <String , Object > objectMap , String templatePath , @ Nonnull File outputFile ) throws Exception {
58+ public void writer (Map <String , Object > objectMap , String templatePath , File outputFile ) throws Exception {
6059 if (templatePath .startsWith (RESOURCE_PREFIX_FILE )) {
6160 templatePath = templatePath .replace (templateStoreDir , "" );
6261 }
@@ -70,15 +69,13 @@ public void writer(@Nonnull Map<String, Object> objectMap, String templatePath,
7069 }
7170
7271 @ Override
73- @ Nonnull
74- public AbstractTemplateEngine init (@ Nonnull ConfigBuilder configBuilder ) {
72+ public AbstractTemplateEngine init (ConfigBuilder configBuilder ) {
7573 return this ;
7674 }
7775
7876
7977 @ Override
80- @ Nonnull
81- public String templateFilePath (@ Nonnull String filePath ) {
78+ public String templateFilePath (String filePath ) {
8279 return filePath ;
8380 }
8481
@@ -98,7 +95,7 @@ public String write2String(Map<String, Object> objectMap, String templatePath) {
9895 }
9996
10097 @ Override
101- protected void outputCustomFile (List <CustomFile > customFiles , TableInfo tableInfo , @ Nonnull Map <String , Object > objectMap ) {
98+ protected void outputCustomFile (List <CustomFile > customFiles , TableInfo tableInfo , Map <String , Object > objectMap ) {
10299 String entityName = tableInfo .getEntityName ();
103100 String parentPath = getPathInfo (OutputFile .parent );
104101 customFiles .forEach (file -> {
0 commit comments