Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[dotnet] [bidi] Remove unnecessary command type info#16454

Merged
nvborisenko merged 1 commit intoSeleniumHQ:trunkfrom
nvborisenko:bidi-remove-command-res-type
Oct 17, 2025
Merged

[dotnet] [bidi] Remove unnecessary command type info#16454
nvborisenko merged 1 commit intoSeleniumHQ:trunkfrom
nvborisenko:bidi-remove-command-res-type

Conversation

@nvborisenko
Copy link
Member

@nvborisenko nvborisenko commented Oct 17, 2025

User description

πŸ’₯ What does this PR do?

Clean command type

πŸ”„ Types of changes

  • Cleanup (formatting, renaming)

PR Type

Enhancement


Description

  • Remove unnecessary ResultType property from Command class

  • Simplify constructor by removing resultType parameter

  • Update generic Command<TParameters, TResult> to match new signature

  • Reduce code complexity and improve maintainability


Diagram Walkthrough

flowchart LR
  A["Command class<br/>with ResultType property"] -- "Remove ResultType<br/>and constructor param" --> B["Simplified Command class<br/>with only Method and Id"]
  C["Command&lt;TParameters, TResult&gt;<br/>passes typeof(TResult)"] -- "Update to match<br/>new signature" --> D["Command&lt;TParameters, TResult&gt;<br/>simplified constructor call"]
Loading

File Walkthrough

Relevant files
Cleanup
Command.cs
Remove ResultType property and simplify Command classΒ  Β  Β  Β 

dotnet/src/webdriver/BiDi/Communication/Command.cs

  • Removed resultType parameter from Command constructor
  • Deleted ResultType property and its [JsonIgnore] attribute
  • Updated Command base class call to remove
    typeof(TResult) argument
  • Streamlined class design by removing unused type information
+2/-6Β  Β  Β 

@qodo-code-review
Copy link
Contributor

PR Compliance Guide πŸ”

Below is a summary of compliance checks for this PR:

Security Compliance
🟒
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
βšͺ
🎫 No ticket provided
- [ ] Create ticket/issue <!-- /create_ticket --create_ticket=true -->

</details></td></tr>
Codebase Duplication Compliance
βšͺ
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
βšͺ
No custom compliance provided

Follow the guide to enable custom compliance check.

Compliance status legend 🟒 - Fully Compliant
🟑 - Partial Compliant
πŸ”΄ - Not Compliant
βšͺ - Requires Further Human Verification
🏷️ - Compliance label

@qodo-code-review
Copy link
Contributor

PR Code Suggestions ✨

No code suggestions found for the PR.

@nvborisenko nvborisenko merged commit e71fa0a into SeleniumHQ:trunk Oct 17, 2025
13 checks passed
@nvborisenko nvborisenko deleted the bidi-remove-command-res-type branch October 17, 2025 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants