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

Commit 43149c7

Browse files
chore: generate libraries at Wed Oct 8 08:52:47 UTC 2025
1 parent 309c23b commit 43149c7

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,15 @@ public class ConnectionProperties {
293293
"grpc_interceptor_provider",
294294
"The class name of a "
295295
+ GrpcInterceptorProvider.class.getName()
296-
+ " implementation that should be used to provide interceptors for the underlying Spanner client. "
297-
+ "This is a guarded property that can only be set if the Java System Property "
296+
+ " implementation that should be used to provide interceptors for the underlying"
297+
+ " Spanner client. This is a guarded property that can only be set if the Java"
298+
+ " System Property "
298299
+ ENABLE_GRPC_INTERCEPTOR_PROVIDER_SYSTEM_PROPERTY
299-
+ " has been set to true. This property should only be set to true on systems where an untrusted user cannot modify the connection URL, "
300-
+ "as using this property will dynamically invoke the constructor of the class specified. This means that any user that can modify "
301-
+ "the connection URL, can also dynamically invoke code on the host where the application is running.",
300+
+ " has been set to true. This property should only be set to true on systems where"
301+
+ " an untrusted user cannot modify the connection URL, as using this property will"
302+
+ " dynamically invoke the constructor of the class specified. This means that any"
303+
+ " user that can modify the connection URL, can also dynamically invoke code on the"
304+
+ " host where the application is running.",
302305
null,
303306
StringValueConverter.INSTANCE,
304307
Context.STARTUP);

google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/GrpcInterceptorProviderTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ public void testGrpcInterceptorProviderRequiresSystemProperty() {
108108
exception
109109
.getMessage()
110110
.contains(
111-
"grpc_interceptor_provider can only be used if the system property ENABLE_GRPC_INTERCEPTOR_PROVIDER has been set to true. "
112-
+ "Start the application with the JVM command line option -DENABLE_GRPC_INTERCEPTOR_PROVIDER=true"));
111+
"grpc_interceptor_provider can only be used if the system property"
112+
+ " ENABLE_GRPC_INTERCEPTOR_PROVIDER has been set to true. Start the"
113+
+ " application with the JVM command line option"
114+
+ " -DENABLE_GRPC_INTERCEPTOR_PROVIDER=true"));
113115
assertFalse(INTERCEPTOR_CALLED.get());
114116
}
115117
}

0 commit comments

Comments
 (0)