rosemarYuan opened a new pull request, #799:
URL: https://github.com/apache/flink-agents/pull/799
Linked issue: #797
<!--
* Thank you very much for contributing to Flink Agents.
* Please add the relevant components in the PR title. E.g., [api],
[runtime], [java], [python], [hotfix], etc.
-->
<!-- Please link the PR to the relevant issue(s). Hotfix doesn't need this.
-->
Linked issue: #xxx
### Purpose of change
The YAML Agent quickstart doc shows bare `copyResource(...)` calls, but
`YamlWorkflowAgentExample.java` uses
`WorkflowSingleAgentExample.copyResource(...)` without a static import. Users
copying the doc snippet will get a compile error.
`ReActAgentExample` and `WorkflowMultipleAgentExample` already use `import
static` for the same method. This PR aligns `YamlWorkflowAgentExample` with
them:
| File | Change |
|---|---|
| `YamlWorkflowAgentExample.java` | Add `import static
...WorkflowSingleAgentExample.copyResource` |
| `YamlWorkflowAgentExample.java:63` |
`WorkflowSingleAgentExample.copyResource(...)` → `copyResource(...)` |
| `YamlWorkflowAgentExample.java:68` |
`WorkflowSingleAgentExample.copyResource(...)` → `copyResource(...)` |
### Tests
- mvn compile -pl examples -am -DskipTests passes
### API
No public API changes.
### Documentation
<!-- Do not remove this section. Check the proper box only. -->
- [ ] `doc-needed` <!-- Your PR changes impact docs -->
- [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-included` <!-- Your PR already contains the necessary
documentation updates -->
--
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]