File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed
alloydb-jdbc-connector/src
main/java/com/google/cloud/alloydb
test/java/com/google/cloud/alloydb Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,8 @@ private static void validateProperties(Properties props) {
115115 final String instanceNameStr = props .getProperty (ALLOYDB_INSTANCE_NAME , "" );
116116 Preconditions .checkArgument (
117117 InstanceName .isParsableFrom (instanceNameStr ),
118- String .format (
119- "'%s' must have format: projects/<PROJECT>/locations/<REGION>/clusters/<CLUSTER>/instances/<INSTANCE>" ,
120- ALLOYDB_INSTANCE_NAME ));
118+ "'%s' must have format: projects/<PROJECT>/locations/<REGION>/clusters/<CLUSTER>/instances/<INSTANCE>" ,
119+ ALLOYDB_INSTANCE_NAME );
121120 }
122121
123122 private ConnectionConfig (
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ class RefreshCalculator {
2929 // time to complete.
3030 static final Duration DEFAULT_REFRESH_BUFFER = Duration .ofMinutes (4 );
3131
32+ @ SuppressWarnings ("JavaDurationGetSecondsToToSeconds" )
3233 long calculateSecondsUntilNextRefresh (Instant now , Instant expiration ) {
3334 Duration timeUntilExp = Duration .between (now , expiration );
3435
Original file line number Diff line number Diff line change 2929import org .bouncycastle .operator .OperatorCreationException ;
3030import org .junit .Test ;
3131
32+ @ SuppressWarnings ("TimeInStaticInitializer" )
3233public class LazyConnectionInfoCacheTest {
3334
3435 private static final Instant ONE_HOUR_AGO =
Original file line number Diff line number Diff line change 3737import org .junit .Before ;
3838import org .junit .Test ;
3939
40+ @ SuppressWarnings ("TimeInStaticInitializer" )
4041public class RefreshAheadConnectionInfoCacheTest {
4142
4243 private static final String TEST_INSTANCE_IP = "10.0.0.1" ;
Original file line number Diff line number Diff line change 5959 <github .global.server>github</github .global.server>
6060 <site .installationModule>alloydb-connector-parent</site .installationModule>
6161 <project .javadoc.protobufBaseURL>https://googleapis.dev/java/google-api-grpc/latest</project .javadoc.protobufBaseURL>
62- <error-prone .version>2.31 .0</error-prone .version>
62+ <error-prone .version>2.41 .0</error-prone .version>
6363 <error-prone-annotations .version>2.41.0</error-prone-annotations .version>
6464 <bouncycastle .version>1.81</bouncycastle .version>
6565 </properties >
179179
180180 <profiles >
181181 <profile >
182- <id >java9 </id >
182+ <id >java17 </id >
183183 <activation >
184- <jdk >[9 ,)</jdk >
184+ <jdk >[17 ,)</jdk >
185185 </activation >
186186 <build >
187187 <plugins >
194194 <fork >true</fork >
195195 <compilerArgs >
196196 <arg >-XDcompilePolicy=simple</arg >
197+ <arg >--should-stop=ifError=FLOW</arg >
197198 <arg >-Xplugin:ErrorProne</arg >
198199 <arg >-Xlint:-options</arg >
199200 <arg >-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg >
You can’t perform that action at this time.
0 commit comments