Skip to content

Commit f9fc676

Browse files
committed
StringUtils corrected the right package
1 parent 3808e75 commit f9fc676

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/document/DefaultEnhancedDocument.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import static software.amazon.awssdk.enhanced.dynamodb.internal.document.JsonStringFormatHelper.addEscapeCharacters;
2121
import static software.amazon.awssdk.enhanced.dynamodb.internal.document.JsonStringFormatHelper.stringValue;
2222

23-
import com.amazonaws.util.StringUtils;
2423
import java.util.ArrayList;
2524
import java.util.Arrays;
2625
import java.util.HashMap;
@@ -49,8 +48,10 @@
4948
import software.amazon.awssdk.protocols.jsoncore.JsonNodeParser;
5049
import software.amazon.awssdk.services.dynamodb.model.AttributeValue;
5150
import software.amazon.awssdk.utils.Lazy;
51+
import software.amazon.awssdk.utils.StringUtils;
5252
import software.amazon.awssdk.utils.Validate;
5353

54+
5455
/**
5556
* Default implementation of {@link EnhancedDocument} used by the SDK to create Enhanced Documents. Attributes are initially saved
5657
* as a String-Object Map when documents are created using the builder. Conversion to an AttributeValueMap is done lazily when
@@ -399,7 +400,7 @@ public Builder putJson(String attributeName, String json) {
399400

400401
@Override
401402
public Builder remove(String attributeName) {
402-
Validate.isTrue(!StringUtils.isNullOrEmpty(attributeName), "Attribute name must not be null or empty");
403+
Validate.isTrue(!StringUtils.isEmpty(attributeName), "Attribute name must not be null or empty");
403404
nonAttributeValueMap.remove(attributeName);
404405
return this;
405406
}

0 commit comments

Comments
 (0)