solomax commented on code in PR #237:
URL: https://github.com/apache/openjpa/pull/237#discussion_r4396169902
##########
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CompoundSelections.java:
##########
@@ -95,6 +95,20 @@ void assertNoCompoundSelection(Selection<?>...args) {
abstract FillStrategy<X> getFillStrategy();
+ /**
+ * Visits this node and then each of its selection terms.
+ */
+ @Override
+ public void acceptVisit(CriteriaExpressionVisitor visitor) {
+ visitor.enter(this);
+ visitor.exit(this);
+ for (Selection<?> arg : _args) {
+ if (arg instanceof CriteriaExpression) {
Review Comment:
```suggestion
if (arg instanceof CriteriaExpression expArg) {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]