File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
sources/net.sf.j2s.ajax/generator/net/sf/j2s/ajax Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ public static String generateHeaderFromObject(SimpleSerializable s) {
215215
216216 Type [] interfaces = s .getClass ().getGenericInterfaces ();
217217 if (interfaces != null && interfaces .length > 0 ) {
218+ boolean generatedImports = false ;
218219 for (int i = 0 ; i < interfaces .length ; i ++) {
219220 Class <?> t = (Class <?>) interfaces [i ];
220221 if (!SimpleSerializable .isSubInterfaceOf (t , ISimpleConstant .class )) {
@@ -230,8 +231,11 @@ public static String generateHeaderFromObject(SimpleSerializable s) {
230231 source .append ("#import \" " );
231232 source .append (simpleTypeName );
232233 source .append (".h\" \r \n " );
234+ generatedImports = true ;
235+ }
236+ if (generatedImports ) {
237+ source .append ("\r \n " );
233238 }
234- source .append ("\r \n " );
235239 }
236240
237241 boolean gotStaticFinalFields = false ;
You can’t perform that action at this time.
0 commit comments