From 2c1175e11d56bc8d3af73c58fafb69d20855d8c5 Mon Sep 17 00:00:00 2001 From: zhumin8 Date: Mon, 2 Nov 2026 16:17:59 -0500 Subject: [PATCH] chore: reflow long string literals to fix librarian generation diff check Run google-java-format 1.25.2 (with long-string reflow, as used by 'librarian generate') on two handwritten test files whose string literals exceeded the line limit. fmt-maven-plugin does not reflow long strings, so these passed the PR lint check but fail the post-merge generation diff check on main. Fixes #14862 --- .../com/google/cloud/spanner/AbstractReadContextTest.java | 3 ++- .../com/google/cloud/storage/it/ITGrpcDirectPathTest.java | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/AbstractReadContextTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/AbstractReadContextTest.java index 1c193087ecdd..06333bef1e12 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/AbstractReadContextTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/AbstractReadContextTest.java @@ -757,7 +757,8 @@ public void onDone(boolean withBeginTransaction) { transactionIdFuture.setException( SpannerExceptionFactory.newSpannerException( ErrorCode.FAILED_PRECONDITION, - "Read-only transaction was closed before the transaction ID was returned by Cloud Spanner")); + "Read-only transaction was closed before the transaction ID was returned by" + + " Cloud Spanner")); } super.onDone(withBeginTransaction); } diff --git a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/it/ITGrpcDirectPathTest.java b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/it/ITGrpcDirectPathTest.java index f994d17e60be..bc58e312848b 100644 --- a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/it/ITGrpcDirectPathTest.java +++ b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/it/ITGrpcDirectPathTest.java @@ -39,7 +39,9 @@ public final class ITGrpcDirectPathTest { public Storage storage; @Ignore( - "Bypassed because DirectPath over Interconnect (GCI) requires a specialized hybrid network environment (Interconnect and Traffic Director configured for storage-direct) and cannot be validated in standard CI or local workstations.") + "Bypassed because DirectPath over Interconnect (GCI) requires a specialized hybrid network" + + " environment (Interconnect and Traffic Director configured for storage-direct) and" + + " cannot be validated in standard CI or local workstations.") @Test public void clientShouldWork_directPathXdsOverInterconnect() throws Exception { // Added assumeTrue to ensure the test skips gracefully if storage-direct.googleapis.com