Skip to content

feat: multiple status support#96

Merged
kewynakshlley merged 2 commits intomainfrom
feat/multiple-status
Apr 10, 2026
Merged

feat: multiple status support#96
kewynakshlley merged 2 commits intomainfrom
feat/multiple-status

Conversation

@kewynakshlley
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/main/java/com/resend/services/automations/model/ListAutomationRunsParams.java">

<violation number="1" location="src/main/java/com/resend/services/automations/model/ListAutomationRunsParams.java:121">
P1: Appending to the existing builder list can mutate previously built params instances due to shared list aliasing.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

if (this.status == null) {
this.status = new ArrayList<>();
}
this.status.addAll(Arrays.asList(status));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Appending to the existing builder list can mutate previously built params instances due to shared list aliasing.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/main/java/com/resend/services/automations/model/ListAutomationRunsParams.java, line 121:

<comment>Appending to the existing builder list can mutate previously built params instances due to shared list aliasing.</comment>

<file context>
@@ -109,24 +109,30 @@ public static class Builder {
+            if (this.status == null) {
+                this.status = new ArrayList<>();
+            }
+            this.status.addAll(Arrays.asList(status));
             return this;
         }
</file context>

@kewynakshlley kewynakshlley merged commit 36ec1d3 into main Apr 10, 2026
4 checks passed
@kewynakshlley kewynakshlley deleted the feat/multiple-status branch April 10, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants