Skip to content

Commit abcd87a

Browse files
committed
Fix checkstyle
1 parent 8660edd commit abcd87a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/extensions/VersionedRecordExtension.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ private boolean isInitialVersion(AttributeValue existingVersionValue, DynamoDbEx
181181
Integer.class);
182182

183183
return isNullAttributeValue(existingVersionValue)
184-
|| (versionStartAtFromAnnotation.isPresent() && getExistingVersion(existingVersionValue) == versionStartAtFromAnnotation.get())
184+
|| (versionStartAtFromAnnotation.isPresent()
185+
&& getExistingVersion(existingVersionValue) == versionStartAtFromAnnotation.get())
185186
|| getExistingVersion(existingVersionValue) == this.startAt;
186187
}
187188

@@ -238,8 +239,8 @@ private int getExistingVersion(AttributeValue existingVersionValue) {
238239

239240
private AttributeValue incrementVersion(int version, DynamoDbExtensionContext.BeforeWrite context) {
240241
Optional<Integer> versionIncrementByFromAnnotation = context.tableMetadata()
241-
.customMetadataObject(VersionAttribute.INCREMENT_BY_METADATA_KEY,
242-
Integer.class);
242+
.customMetadataObject(VersionAttribute.INCREMENT_BY_METADATA_KEY,
243+
Integer.class);
243244
if (versionIncrementByFromAnnotation.isPresent()) {
244245
return AttributeValue.fromN(Integer.toString(version + versionIncrementByFromAnnotation.get()));
245246
}

0 commit comments

Comments
 (0)