diff --git a/foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/expressions/ExpressionOperator.java b/foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/expressions/ExpressionOperator.java index e27aa0f0470..6bdabbfd509 100644 --- a/foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/expressions/ExpressionOperator.java +++ b/foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/expressions/ExpressionOperator.java @@ -2383,8 +2383,7 @@ public void printCollection(List items, ExpressionSQLPrinter printer int[] indices = getArgumentIndices(items.size()); String[] dbStrings = getDatabaseStrings(items.size()); - for (int i = 0; i < indices.length; i++) { - final int index = indices[i]; + for (final int index : indices) { Expression item = items.get(index); if ((this.selector == Ref) || ((this.selector == Deref) && (item.isObjectExpression()))) {