Skip to content

Remove unnecessary throws - #21182

Merged
laurit merged 1 commit into
open-telemetry:mainfrom
laurit:unnecessary-throws
Nov 3, 2026
Merged

laurit merged 1 commit into
open-telemetry:mainfrom
laurit:unnecessary-throws

Conversation

@laurit

@laurit laurit commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@laurit
laurit requested a review from a team as a code owner November 3, 2026 12:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T12:31:20.136760Z 9dee290 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Merged · refreshed 2026-11-03 12:52 UTC

Status above doesn't look right?
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

Copilot AI left a comment

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.

🟢 Approval recommended

No active review issues were identified for the removal of the redundant exception declaration from the class-loader regression test.

No open issues 🎉

What changed in this PR

This PR removes an unnecessary checked-exception declaration from the internal class-loader regression test without changing its behavior.

Changes:

  • Removes throws ClassNotFoundException from noDuplicateClassDefinition(); the class-loading call remains inside AssertJ’s exception assertion.
File Description
instrumentation/​internal/​internal-class-loader/​javaagent-integration-tests/​src/​test/​java/​io/​opentelemetry/​javaagent/​instrumentation/​internal/​classloader/​RegressionTest.java Removes the redundant exception declaration from the test method.

Review effort: Balanced

@laurit
laurit merged commit 2ba9b6e into open-telemetry:main Nov 3, 2026
68 checks passed
@laurit
laurit deleted the unnecessary-throws branch November 3, 2026 12:51
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.

3 participants