Skip to content

Fix minor issues found by SonarQube#994

Merged
Avery-Dunn merged 2 commits intodevfrom
avdunn/sonarqube-small-fixes
Sep 16, 2025
Merged

Fix minor issues found by SonarQube#994
Avery-Dunn merged 2 commits intodevfrom
avdunn/sonarqube-small-fixes

Conversation

@Avery-Dunn
Copy link
Copy Markdown
Contributor

This PR fixes various small issues found during an analysis by SonarQube. It doesn't fix all of the issues identified by SonarQube, but these are all issues that should have zero risk of changing any actual behavior of the library.

A few dozen files received changes, but the majority of them just had unused imports removed. As for the other classes, they had equally minor changes:

  • AadInstanceDiscoveryProvider: removed unused parameter, and replace a String with an existing constant
  • AcquireTokenByAppProviderSupplier: avoid creating unnecessary temp String when logging a Long value
  • AcquireTokenByManagedIdentitySupplier, ClientCertificate: remove reference to an exception that is never actually thrown in a method
  • Authority, AuthorizationRequestUrlParameters, ClientCredentialFactory, TelemetryManager: use .isEmpty() to check if something is empty instead of ... == 0
  • AuthorizationResponseHandler: reference a standard enum rather than use a String
  • ManagedIdentityApplication: deprecate a builder API which was not actually doing anything
  • ManagedIdentityRequest: remove unnecessary toString() call
  • ManagedIdentityClient, ManagedIdentityResponse: remove unused logger
  • PublicClientApplication: refactor unnecessarily nested if statements to be on one line

@Avery-Dunn Avery-Dunn requested a review from a team as a code owner September 15, 2025 18:45
@Avery-Dunn Avery-Dunn merged commit 4382468 into dev Sep 16, 2025
5 checks passed
Copilot AI mentioned this pull request Feb 6, 2026
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