Skip to content

Commit f8a8fa9

Browse files
committed
Replace isEmpty with isPresent for Optionals
1 parent d97972b commit f8a8fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/AwsMetricAttributeGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ private static void setRemoteResourceTypeAndIdentifier(SpanData span, Attributes
502502
remoteResourceIdentifier = getDbConnection(span);
503503
}
504504

505-
if (cloudformationPrimaryIdentifier.isEmpty()) {
505+
if (!cloudformationPrimaryIdentifier.isPresent()) {
506506
cloudformationPrimaryIdentifier = remoteResourceIdentifier;
507507
}
508508

0 commit comments

Comments
 (0)