Skip to content

Replace inefficient new String() constructors in GetterIT.testSSOAuthExistingUserRelogin #859

Description

@ismisepaul

Summary

The code-quality bot (CodeQL on #816) flags two "Inefficient String constructor" instances in src/it/java/dbProcs/GetterIT.java, inside testSSOAuthExistingUserRelogin():

  • String userName = new String("SSOReloginUser Lastname");String userName = "SSOReloginUser Lastname";
  • String ssoName = new String("ssoreloginuser@example.com");String ssoName = "ssoreloginuser@example.com";

new String("literal") creates a redundant object; assign the literal directly. No behavior change, no new imports.

Severity

Trivial — test-only, micro-efficiency. Good first issue.

Acceptance criteria

  • Both new String("...") calls in testSSOAuthExistingUserRelogin() replaced with direct literal assignment.
  • GetterIT still passes; code-quality alerts cleared.

Context

Surfaced while reviewing the code-quality bot output on #816. Out of scope for the connection-pooling work; filed as a standalone follow-up. Not a blocker for #816.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions