Skip to content

Commit 21efcdd

Browse files
authored
Java V2 Removed dup line of code (#7302)
* removed dup line of code * updated POM
1 parent 772dd8e commit 21efcdd

File tree

2 files changed

+15
-29
lines changed

2 files changed

+15
-29
lines changed

javav2/usecases/resilient_service/pom.xml

+15-28
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,19 @@
3838
<dependency>
3939
<groupId>software.amazon.awssdk</groupId>
4040
<artifactId>bom</artifactId>
41-
<version>2.21.20</version>
41+
<version>2.29.45</version>
4242
<type>pom</type>
4343
<scope>import</scope>
4444
</dependency>
4545
</dependencies>
4646
</dependencyManagement>
4747
<dependencies>
48+
<dependency>
49+
<groupId>org.junit.jupiter</groupId>
50+
<artifactId>junit-jupiter</artifactId>
51+
<version>5.11.4</version>
52+
<scope>test</scope>
53+
</dependency>
4854
<dependency>
4955
<groupId>software.amazon.awssdk</groupId>
5056
<artifactId>dynamodb</artifactId>
@@ -63,11 +69,7 @@
6369
<groupId>software.amazon.awssdk</groupId>
6470
<artifactId>dynamodb-enhanced</artifactId>
6571
</dependency>
66-
<dependency>
67-
<groupId>software.amazon.awssdk</groupId>
68-
<artifactId>autoscaling</artifactId>
69-
</dependency>
70-
<dependency>
72+
<dependency>
7173
<groupId>commons-io</groupId>
7274
<artifactId>commons-io</artifactId>
7375
<version>2.13.0</version>
@@ -115,37 +117,22 @@
115117
<artifactId>jackson-databind</artifactId>
116118
<version>2.14.2</version>
117119
</dependency>
118-
<dependency>
119-
<groupId>org.junit.jupiter</groupId>
120-
<artifactId>junit-jupiter-api</artifactId>
121-
<version>5.9.2</version>
122-
<scope>test</scope>
123-
</dependency>
124120
<dependency>
125121
<groupId>software.amazon.awssdk</groupId>
126122
<artifactId>kms</artifactId>
127123
</dependency>
128124
<dependency>
129-
<groupId>org.junit.jupiter</groupId>
130-
<artifactId>junit-jupiter-engine</artifactId>
131-
<version>5.9.2</version>
132-
<scope>test</scope>
133-
</dependency>
134-
<dependency>
135-
<groupId>org.junit.platform</groupId>
136-
<artifactId>junit-platform-commons</artifactId>
137-
<version>1.9.2</version>
125+
<groupId>org.slf4j</groupId>
126+
<artifactId>slf4j-log4j12</artifactId>
127+
<version>2.0.5</version>
138128
</dependency>
139129
<dependency>
140-
<groupId>org.junit.platform</groupId>
141-
<artifactId>junit-platform-launcher</artifactId>
142-
<version>1.9.2</version>
143-
<scope>test</scope>
130+
<groupId>software.amazon.awssdk</groupId>
131+
<artifactId>sso</artifactId>
144132
</dependency>
145133
<dependency>
146-
<groupId>org.slf4j</groupId>
147-
<artifactId>slf4j-log4j12</artifactId>
148-
<version>2.0.5</version>
134+
<groupId>software.amazon.awssdk</groupId>
135+
<artifactId>ssooidc</artifactId>
149136
</dependency>
150137
</dependencies>
151138
</project>

javav2/usecases/resilient_service/src/main/java/com/example/resilient/LoadBalancer.java

-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ public String createLoadBalancer(List<Subnet> subnetIds, String targetGroupARN,
217217
.defaultActions(action)
218218
.port(port)
219219
.protocol(protocol)
220-
.defaultActions(action)
221220
.build();
222221

223222
getLoadBalancerClient().createListener(listenerRequest);

0 commit comments

Comments
 (0)