Skip to content

Commit 2a248d3

Browse files
fix(build): Fully qualify yield call to avoid java 17 compilation error (#27006)
## Description Updates `yield` call to use fully-qualified call ## Motivation and Context In java 14+, compilation will error if a restricted name is used and `yield` is a restricted in 14+. ## Contributor checklist - [x] Please make sure your submission complies with our [contributing guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md), in particular [code style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style) and [commit standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards). - [x] PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced. - [x] Documented new properties (with its default value), SQL syntax, functions, or other functionality. - [x] If release notes are required, they follow the [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines). - [x] Adequate tests were added if applicable. - [x] CI passed. - [x] If adding new dependencies, verified they have an [OpenSSF Scorecard](https://securityscorecards.dev/#the-checks) score of 5.0 or higher (or obtained explicit TSC approval for lower scores). ## Release Notes Please follow [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines) and fill in the release notes below. ``` == NO RELEASE NOTE == ``` Signed-off-by: kiersten-stokes <kierstenstokes@gmail.com>
1 parent 4e91f15 commit 2a248d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

presto-main-base/src/main/java/com/facebook/presto/operator/PageBuffer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import static com.facebook.presto.operator.WorkProcessor.ProcessState.finished;
2020
import static com.facebook.presto.operator.WorkProcessor.ProcessState.ofResult;
21-
import static com.facebook.presto.operator.WorkProcessor.ProcessState.yield;
2221
import static com.google.common.base.Preconditions.checkState;
2322
import static java.util.Objects.requireNonNull;
2423

@@ -41,7 +40,7 @@ public WorkProcessor<Page> pages()
4140
return ofResult(result);
4241
}
4342

44-
return yield();
43+
return WorkProcessor.ProcessState.yield();
4544
});
4645
}
4746

0 commit comments

Comments
 (0)