Skip to content

Commit f01159a

Browse files
same as previous
1 parent 5ddb3a4 commit f01159a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SerialX-juss/src/main/java/org/ugp/serialx/juss/JussSerializer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ else if (args[1] instanceof Integer)
316316
if (generateComments && (!(var.getValue() instanceof Scope) || ((Scope) var.getValue()).isEmpty()))
317317
GenerateComment(source, reg, var);
318318

319-
if (i++ < varLen-1 || valuesLen > 0)
319+
if (++i < varLen || valuesLen > 0)
320320
source.append('\n');
321321
}
322322
}
@@ -325,10 +325,10 @@ else if (args[1] instanceof Integer)
325325
{
326326
if (i > 0)
327327
source.append('\n');
328-
328+
329329
Object obj = objs.get(i);
330330
CharSequence serialized = reg.toString(obj, args);
331-
331+
332332
appandVal(source, serialized, obj, tabs, i >= valuesLen-1);
333333
if (generateComments && (!(obj instanceof Scope) || ((Scope) obj).isEmpty()))
334334
GenerateComment(source, reg, obj);

0 commit comments

Comments
 (0)