Skip to content

Commit c258180

Browse files
committed
move deprecation warning to methods
1 parent 54f155f commit c258180

File tree

1 file changed

+2
-1
lines changed
  • instrumentation/aws-sdk/aws-sdk-1.11/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/awssdk/v1_11

1 file changed

+2
-1
lines changed

instrumentation/aws-sdk/aws-sdk-1.11/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/awssdk/v1_11/S3ClientTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import org.junit.jupiter.params.provider.Arguments;
4343
import org.junit.jupiter.params.provider.MethodSource;
4444

45-
@SuppressWarnings("deprecation") // AmazonS3Client constructor is deprecated
4645
class S3ClientTest extends AbstractS3ClientTest {
4746
@RegisterExtension
4847
static final InstrumentationExtension testing = AgentInstrumentationExtension.create();
@@ -82,6 +81,7 @@ private static Stream<Arguments> provideS3Arguments() {
8281

8382
@ParameterizedTest
8483
@MethodSource("provideS3Arguments")
84+
@SuppressWarnings("deprecation") // AmazonS3Client constructor is deprecated
8585
void testRequestHandlerIsHookedUpWithConstructor(boolean addHandler, int size) throws Exception {
8686
String accessKey = "asdf";
8787
String secretKey = "qwerty";
@@ -100,6 +100,7 @@ void testRequestHandlerIsHookedUpWithConstructor(boolean addHandler, int size) t
100100
}
101101

102102
@Test
103+
@SuppressWarnings("deprecation") // AmazonS3Client constructor is deprecated
103104
void testNaughtyRequestHandlerDoesntBreakTheTrace() {
104105
AmazonS3Client client = new AmazonS3Client(credentialsProvider);
105106
client.addRequestHandler(

0 commit comments

Comments
 (0)