1111import static io .opentelemetry .semconv .incubating .CloudIncubatingAttributes .CLOUD_PROVIDER ;
1212import static io .opentelemetry .semconv .incubating .ServiceIncubatingAttributes .SERVICE_INSTANCE_ID ;
1313import static io .opentelemetry .semconv .incubating .ServiceIncubatingAttributes .SERVICE_NAMESPACE ;
14+ import static java .nio .charset .StandardCharsets .UTF_8 ;
1415import static org .assertj .core .api .Assertions .entry ;
1516
16- import com .google .common .base .Charsets ;
1717import com .google .common .io .Files ;
1818import io .opentelemetry .api .common .Attributes ;
1919import 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