Skip to content

Commit 4c90c9c

Browse files
committed
[fix] Reverse one checkstyle fix
1 parent c512fb7 commit 4c90c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/scripting/xmltags/ForEachSqlNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public boolean apply(DynamicContext context) {
5959
applyOpen(context);
6060
int i = 0;
6161
for (Object o : iterable) {
62+
DynamicContext oldContext = context;
6263
if (first || separator == null) {
6364
context = new PrefixedContext(context, "");
6465
} else {
@@ -79,7 +80,6 @@ public boolean apply(DynamicContext context) {
7980
if (first) {
8081
first = !((PrefixedContext) context).isPrefixApplied();
8182
}
82-
DynamicContext oldContext = context;
8383
context = oldContext;
8484
i++;
8585
}

0 commit comments

Comments
 (0)