Skip to content

Commit 18e0199

Browse files
committed
fix var name
1 parent e8a8ec7 commit 18e0199

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ String getQueueArn(String queueUrl) {
108108

109109
void setTopicPublishingPolicy(String topicArn) {
110110
logger.info("Set policy for topic, {}", topicArn);
111-
String SNS_POLICY =
111+
String snsPolicy =
112112
"{"
113113
+ " \"Statement\": ["
114114
+ " {"
@@ -119,12 +119,12 @@ void setTopicPublishingPolicy(String topicArn) {
119119
+ " }]"
120120
+ "}";
121121
snsClient.setTopicAttributes(
122-
new SetTopicAttributesRequest(topicArn, "Policy", String.format(SNS_POLICY, topicArn)));
122+
new SetTopicAttributesRequest(topicArn, "Policy", String.format(snsPolicy, topicArn)));
123123
}
124124

125125
void setQueuePublishingPolicy(String queueUrl, String queueArn) {
126126
logger.info("Set policy for queue {}", queueArn);
127-
String SQS_POLICY =
127+
String sqsPolicy =
128128
"{"
129129
+ " \"Statement\": ["
130130
+ " {"
@@ -135,7 +135,7 @@ void setQueuePublishingPolicy(String queueUrl, String queueArn) {
135135
+ " }]"
136136
+ "}";
137137
sqsClient.setQueueAttributes(
138-
queueUrl, Collections.singletonMap("Policy", String.format(SQS_POLICY, queueArn)));
138+
queueUrl, Collections.singletonMap("Policy", String.format(sqsPolicy, queueArn)));
139139
}
140140

141141
void createBucket(String bucketName) {

0 commit comments

Comments
 (0)