Skip to content

Commit

Permalink
GEODE-1577: modified MultiRegionFunctionExecutor to fix compilation e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
jhuynh1 committed Apr 12, 2017
1 parent 4816d39 commit bd40bca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public Execution withArgs(Object args) {
return new MultiRegionFunctionExecutor(this, args);
}

public Execution withCollector(ResultCollector<?, ?> rc) {
public Execution withCollector(ResultCollector rc) {
if (rc == null) {
throw new IllegalArgumentException(
LocalizedStrings.ExecuteRegionFunction_THE_INPUT_0_FOR_THE_EXECUTE_FUNCTION_REQUEST_IS_NULL
Expand All @@ -160,7 +160,7 @@ public Execution withCollector(ResultCollector<?, ?> rc) {
return new MultiRegionFunctionExecutor(this, rc);
}

public Execution withFilter(Set<?> filter) {
public Execution withFilter(Set filter) {
throw new FunctionException(
LocalizedStrings.ExecuteFunction_CANNOT_SPECIFY_0_FOR_ONREGIONS_FUNCTION
.toLocalizedString("filter"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ private TopEntries<K> findTopEntries() throws LuceneQueryException {
try {
TopEntriesFunctionCollector collector = new TopEntriesFunctionCollector(context);
ResultCollector<TopEntriesCollector, TopEntries<K>> rc =
onRegion().withArgs(context)
.withCollector(collector).execute(LuceneQueryFunction.ID);
onRegion().withArgs(context).withCollector(collector).execute(LuceneQueryFunction.ID);
entries = rc.getResult();
} catch (FunctionException e) {
if (e.getCause() instanceof LuceneQueryException) {
Expand Down

0 comments on commit bd40bca

Please sign in to comment.