Skip to content

Commit 9ea2938

Browse files
committed
Fix deprecation warning
1 parent 3a556dc commit 9ea2938

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aws-resources/src/test/java/io/opentelemetry/contrib/aws/resource/BeanstalkResourceTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
import static io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CLOUD_PROVIDER;
1212
import static io.opentelemetry.semconv.incubating.ServiceIncubatingAttributes.SERVICE_INSTANCE_ID;
1313
import static io.opentelemetry.semconv.incubating.ServiceIncubatingAttributes.SERVICE_NAMESPACE;
14+
import static java.nio.charset.StandardCharsets.UTF_8;
1415
import static org.assertj.core.api.Assertions.entry;
1516

16-
import com.google.common.base.Charsets;
1717
import com.google.common.io.Files;
1818
import io.opentelemetry.api.common.Attributes;
1919
import io.opentelemetry.sdk.autoconfigure.spi.ResourceProvider;
@@ -33,7 +33,7 @@ void testCreateAttributes(@TempDir File tempFolder) throws IOException {
3333
String content =
3434
"{\"noise\": \"noise\", \"deployment_id\":4,\""
3535
+ "version_label\":\"2\",\"environment_name\":\"HttpSubscriber-env\"}";
36-
Files.write(content.getBytes(Charsets.UTF_8), file);
36+
Files.write(content.getBytes(UTF_8), file);
3737
Resource resource = BeanstalkResource.buildResource(file.getPath());
3838
Attributes attributes = resource.getAttributes();
3939
assertThat(attributes)
@@ -59,7 +59,7 @@ void testBadConfigFile(@TempDir File tempFolder) throws IOException {
5959
String content =
6060
"\"deployment_id\":4,\"version_label\":\"2\",\""
6161
+ "environment_name\":\"HttpSubscriber-env\"}";
62-
Files.write(content.getBytes(Charsets.UTF_8), file);
62+
Files.write(content.getBytes(UTF_8), file);
6363
Attributes attributes = BeanstalkResource.buildResource(file.getPath()).getAttributes();
6464
assertThat(attributes).isEmpty();
6565
}

0 commit comments

Comments
 (0)