From c3d86a6a5ce9cf1fdb6ab087d8e87138bf168132 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:14:02 -0700 Subject: [PATCH] fix(codegen): checkstyle issue in DocumentBareBonesClientGenerator (#6455) --- .../typescript/codegen/DocumentBareBonesClientGenerator.java | 3 ++- lib/lib-dynamodb/src/DynamoDBDocumentClient.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java index 840f8ec9444b..2f48dce15e84 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java @@ -186,7 +186,8 @@ private void generateClientConstructor() { writer.write(""" if (this.config?.cacheMiddleware) { throw new Error( - "@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false." + "@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the" + + " DynamoDBDocumentClient. This option must be set to false." ); } """); diff --git a/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts b/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts index 8d01b3abeb2e..2073fdfa10ac 100644 --- a/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts +++ b/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts @@ -146,7 +146,8 @@ export class DynamoDBDocumentClient extends __Client< this.middlewareStack = client.middlewareStack; if (this.config?.cacheMiddleware) { throw new Error( - "@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false." + "@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the" + + " DynamoDBDocumentClient. This option must be set to false." ); } }