Skip to content

Commit e24191e

Browse files
committed
Improve comments + fix test
1 parent 4075972 commit e24191e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

core/aws-core/src/main/java/software/amazon/awssdk/awscore/endpoints/AwsEndpointAttribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public final class AwsEndpointAttribute {
3434
EndpointAttributeKey.forList("AuthSchemes");
3535

3636
/**
37-
* Business Metric values for the endpoint.
37+
* Business Metric values to be added to the user-agent for the endpoint.
3838
*/
3939
public static final EndpointAttributeKey<List<String>> METRIC_VALUES =
4040
EndpointAttributeKey.forList("MetricValues");

test/codegen-generated-classes-test/src/test/java/software/amazon/awssdk/services/EndpointMetricValuesTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import static org.assertj.core.api.Assertions.assertThat;
1919
import static org.assertj.core.api.Assertions.assertThatThrownBy;
20-
import static org.hamcrest.Matchers.containsInAnyOrder;
2120
import static org.junit.Assert.assertNotNull;
2221
import static org.junit.Assert.assertTrue;
2322
import static org.mockito.ArgumentMatchers.any;
@@ -83,7 +82,7 @@ void endpointMetricValuesAreAddedToUserAgent() {
8382

8483
String userAgent = assertAndGetUserAgentString();
8584
Matcher businessMetricMatcher = Pattern.compile("m/([^\\s]+)").matcher(userAgent);
86-
assertTrue(businessMetricMatcher.matches());
85+
assertTrue(businessMetricMatcher.find());
8786
assertNotNull(businessMetricMatcher.group(1));
8887
Set<String> metrics = new HashSet<>(Arrays.asList((businessMetricMatcher.group(1).split(","))));
8988
assertTrue(metrics.containsAll(Arrays.asList("O", "K")));

0 commit comments

Comments
 (0)