Skip to content

Replace ArrayList with List<T> in CompositionAdorner for type safety #10839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

0xfa11b4c
Copy link

@0xfa11b4c 0xfa11b4c commented May 9, 2025

Description

Replaced ArrayList with List<T> in CompositionAdorner and AttributeRange.

This removes the need for casting and makes the code cleaner and safer.

Customer Impact

Easier to read and maintain. Helpful for future contributors.

Regression

No.

Testing

  • Local build passed
  • Only refactored types, no logic changes

Risk

Very low — no functional changes, just internal improvements.

Microsoft Reviewers: Open in CodeFlow

@0xfa11b4c 0xfa11b4c requested a review from a team as a code owner May 9, 2025 16:05
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels May 9, 2025
@0xfa11b4c
Copy link
Author

@dotnet-policy-service agree

@h3xds1nz
Copy link
Member

h3xds1nz commented May 9, 2025

Basically duplicate of #10673

@0xfa11b4c 0xfa11b4c closed this May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants