Skip to content

Commit 2f80959

Browse files
committed
spotless
1 parent a47458d commit 2f80959

4 files changed

Lines changed: 10 additions & 13 deletions

File tree

examples/java/src/main/java/org/apache/beam/examples/complete/datatokenization/utils/SchemasUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ public static String getGcsFileAsString(String filePath) {
140140
result = FileSystems.match(filePath);
141141
checkArgument(
142142
result.status() == MatchResult.Status.OK && !result.metadata().isEmpty(),
143-
"Failed to match any files with the pattern: %s", filePath);
143+
"Failed to match any files with the pattern: %s",
144+
filePath);
144145

145146
List<ResourceId> rId =
146147
result.metadata().stream()

runners/direct-java/src/main/java/org/apache/beam/runners/direct/SplittableProcessElementsEvaluatorFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ class SplittableProcessElementsEvaluatorFactory<
6565
public DoFnLifecycleManager load(final AppliedPTransform<?, ?, ?> application) {
6666
checkArgument(
6767
ProcessElements.class.isInstance(application.getTransform()),
68-
"No know extraction of the fn from %s", application);
68+
"No know extraction of the fn from %s",
69+
application);
6970
final ProcessElements<
7071
InputT, OutputT, RestrictionT, PositionT, WatermarkEstimatorStateT>
7172
transform =

sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3472,26 +3472,22 @@ && getStorageApiTriggeringFrequency(bqOptions) != null) {
34723472
}
34733473
}
34743474
} else { // PCollection is bounded
3475-
String error =
3476-
String.format(
3477-
" is only applicable to an unbounded PCollection, but the input PCollection is %s.",
3478-
input.isBounded());
34793475
checkArgument(
34803476
getTriggeringFrequency() == null,
3481-
"Triggering frequency is only applicable to an unbounded PCollection");
3477+
"Triggering frequency is only applicable to an unbounded PCollection.");
34823478
checkArgument(
3483-
!getAutoSharding(), "Auto-sharding is only applicable to an unbounded PCollection");
3479+
!getAutoSharding(), "Auto-sharding is only applicable to an unbounded PCollection.");
34843480
checkArgument(
34853481
getNumFileShards() == 0,
3486-
"Number of file shards is only applicable to an unbounded PCollectoin");
3482+
"Number of file shards is only applicable to an unbounded PCollection.");
34873483

34883484
if (getStorageApiTriggeringFrequency(bqOptions) != null) {
34893485
LOG.warn(
3490-
"Setting the triggering frequency is only applicable to an unbounded PCollection");
3486+
"Setting the triggering frequency is only applicable to an unbounded PCollection.");
34913487
}
34923488
if (getStorageApiNumStreams(bqOptions) != 0) {
34933489
LOG.warn(
3494-
"Setting the number of Storage API streams is only applicable to an unbounded PCollection");
3490+
"Setting the number of Storage API streams is only applicable to an unbounded PCollection.");
34953491
}
34963492
}
34973493

sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIOWriteTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2717,8 +2717,7 @@ public void testWriteValidateFailsWithBatchAutoSharding() {
27172717
p.enableAbandonedNodeEnforcement(false);
27182718

27192719
thrown.expect(IllegalArgumentException.class);
2720-
thrown.expectMessage(
2721-
"Auto-sharding is only applicable to an unbounded PCollection, but the input PCollection is BOUNDED.");
2720+
thrown.expectMessage("Auto-sharding is only applicable to an unbounded PCollection.");
27222721
p.apply(Create.empty(INPUT_RECORD_CODER))
27232722
.apply(
27242723
BigQueryIO.<InputRecord>write()

0 commit comments

Comments
 (0)