Skip to content

Commit 92c78a7

Browse files
authored
Merge pull request #1675 from BillFarber/develop
Have Jenkins use the 11.4 RPM.
2 parents be7d6c1 + d41b22b commit 92c78a7

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/impl/PlanBuilderSubImpl.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,11 @@ public PlanBuilder.AccessPlan fromSearchDocs(CtsQueryExpr query, String qualifie
6464
}
6565
@Override
6666
public PlanBuilder.AccessPlan fromSearchDocs(CtsQueryExpr query, String qualifierName, PlanSearchOptions options) {
67-
return new AccessPlanSubImpl(
68-
this, "op", "from-search-docs",
69-
new Object[]{
70-
query,
71-
(qualifierName == null) ? null : xs.string(qualifierName),
72-
asArg(makeMap(options))
73-
}
74-
);
67+
XsStringVal qualifierValue = qualifierName == null ? null : xs.string(qualifierName);
68+
Object[] args = options == null ?
69+
new Object[] {query, qualifierValue} :
70+
new Object[] {query, qualifierValue, asArg(makeMap(options))};
71+
return new AccessPlanSubImpl(this, "op", "from-search-docs", args);
7572
}
7673

7774
@Override

0 commit comments

Comments
 (0)