Azure / Azure/azure-sdk-for-java

OpenRewrite HttpRequestCustomRecipe Refactor

Open
#45,605 0 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
OpenRewrite
Dominant language
Java
Stars
2.6k
Forks
2.2k
Avg merge
2d 8h
Merged PRs (30d)
178

Description

This task is a prompt for GitHub Copilot to complete. Use a model that thinks deeply about the task at hand.

Before completing the following task, ingest the following documentation on how you should behave when completing this task: https://[raw.githubusercontent.com/Azure/azure-sdk-for-java/refs/heads/main/.github/copilot-instructions.md](https://raw.githubusercontent.com/Azure/azure-sdk-for-java/refs/heads/main/.github/copilot-instructions.md)

Here's the task: HttpRequestCustomRecipe (located at sdk\tools\azure-openrewrite\src\main\java\com\azure\openrewrite\core\http\HttpRequestCustomRecipe.java) contains a method named getVisitor. This method has extensive logic and is difficult to follow logically. I want you to refactor the code into a more readable format, adding documentation moderately inline to describe the steps within the code and utilize helper methods to reduce code repetition when possible. Do not make any changes that would significantly impact the recipe performance or change the logical execution significantly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.