Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit bd89a33

Browse files
Update google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/MutableCredentials.java
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 02a00ac commit bd89a33

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/MutableCredentials.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ public class MutableCredentials extends Credentials {
4040
List<String> scopes;
4141

4242
public MutableCredentials(ServiceAccountCredentials credentials, List<String> scopes) {
43-
this.scopes = scopes;
44-
delegate = (ServiceAccountCredentials) credentials.createScoped(scopes);
45-
}
46-
43+
public MutableCredentials(ServiceAccountCredentials credentials, List<String> scopes) {
44+
this.scopes = new java.util.ArrayList<>(scopes);
45+
delegate = (ServiceAccountCredentials) credentials.createScoped(this.scopes);
46+
}
4747
/**
4848
* Replaces the current delegate with a newly scoped credentials instance.
4949
*

0 commit comments

Comments
 (0)