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) {
215
215
216
216
Type [] interfaces = s .getClass ().getGenericInterfaces ();
217
217
if (interfaces != null && interfaces .length > 0 ) {
218
+ boolean generatedImports = false ;
218
219
for (int i = 0 ; i < interfaces .length ; i ++) {
219
220
Class <?> t = (Class <?>) interfaces [i ];
220
221
if (!SimpleSerializable .isSubInterfaceOf (t , ISimpleConstant .class )) {
@@ -230,8 +231,11 @@ public static String generateHeaderFromObject(SimpleSerializable s) {
230
231
source .append ("#import \" " );
231
232
source .append (simpleTypeName );
232
233
source .append (".h\" \r \n " );
234
+ generatedImports = true ;
235
+ }
236
+ if (generatedImports ) {
237
+ source .append ("\r \n " );
233
238
}
234
- source .append ("\r \n " );
235
239
}
236
240
237
241
boolean gotStaticFinalFields = false ;
You can’t perform that action at this time.
0 commit comments