Skip to content

Commit

Permalink
Update to Wildfly 34.0.1.Final
Browse files Browse the repository at this point in the history
  • Loading branch information
kifj committed Nov 23, 2024
1 parent ea1f88e commit cdcd5db
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 15 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.target>21</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<wildfly.version>34.0.0.Final</wildfly.version>
<wildfly.version>34.0.1.Final</wildfly.version>
<jboss.home>/opt/wildfly-${wildfly.version}</jboss.home>
<shrinkwrap-resolver.version>3.3.2</shrinkwrap-resolver.version>
<jacoco.version>0.8.12</jacoco.version>
<jacoco.append>true</jacoco.append>
<arquillian.version>1.9.1.Final</arquillian.version>
<arquillian.wildfly.version>5.1.0.Beta6</arquillian.wildfly.version>
<jkube.version>1.17.0</jkube.version>
<testcontainers.version>1.20.3</testcontainers.version>
<testcontainers.version>1.20.4</testcontainers.version>
</properties>

<distributionManagement>
Expand Down Expand Up @@ -353,7 +353,7 @@
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-ant</artifactId>
<version>6.6.1.Final</version>
<version>6.6.2.Final</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -537,7 +537,7 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.8.6.5</version>
<version>4.8.6.6</version>
</plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
Expand Down Expand Up @@ -588,7 +588,7 @@
<plugin>
<groupId>x1.maven</groupId>
<artifactId>schemaspy-maven-plugin</artifactId>
<version>2.0.2</version>
<version>2.0.3</version>
<configuration>
<host>db.x1</host>
<dbname>stocks</dbname>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/x1/stomp/boundary/QuoteResource.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package x1.stomp.boundary;

import static java.util.Arrays.asList;
import static java.util.concurrent.TimeUnit.SECONDS;
import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON;
import static jakarta.ws.rs.core.MediaType.APPLICATION_XML;
Expand Down Expand Up @@ -187,7 +186,7 @@ private Quote addLinks(UriBuilder baseUriBuilder, Quote quote) {
.build();
var share = Link.fromUriBuilder(baseUriBuilder.clone().path(ShareResource.PATH).path(quote.getShare().getKey()))
.rel("parent").build();
quote.setLinks(asList(self, share));
quote.setLinks(List.of(self, share));
return quote;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package x1.stomp.boundary;

import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;

import jakarta.inject.Inject;
Expand Down Expand Up @@ -45,7 +45,7 @@ public void filter(ContainerRequestContext requestContext, ContainerResponseCont
}

private void createMetrics(String metricID, Tag... tags) {
registry.counter(metricID, Arrays.asList(tags)).increment();
registry.counter(metricID, List.of(tags)).increment();
}

private Optional<String> getMetricID(Class<?> resourceClass, Method resourceMethod) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/x1/stomp/boundary/RootResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static org.jboss.resteasy.spi.CorsHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS;
import static org.jboss.resteasy.spi.CorsHeaders.ACCESS_CONTROL_ALLOW_ORIGIN;

import java.util.Arrays;
import java.util.List;

import jakarta.servlet.ServletContext;
import jakarta.websocket.server.PathParam;
Expand Down Expand Up @@ -59,7 +59,7 @@ public Response index() {
var subscribe = Link.fromUriBuilder(uriInfo.getBaseUriBuilder().path(ShareResource.PATH)).rel("subscribe")
.param(LinkConstants.PARAM_METHOD, HttpMethod.POST).build();

return Response.ok(new IndexResponse(Arrays.asList(self, swagger, quotes, shares, subscribe))).build();
return Response.ok(new IndexResponse(List.of(self, swagger, quotes, shares, subscribe))).build();
}

@GET
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/x1/stomp/boundary/ShareResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import static x1.stomp.boundary.LinkConstants.*;

import java.time.temporal.ChronoUnit;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
Expand Down Expand Up @@ -206,7 +205,7 @@ private Share addLinks(UriBuilder baseUriBuilder, Share share) {
.param(PARAM_METHOD, HttpMethod.DELETE).build();
var quote = Link.fromUriBuilder(baseUriBuilder.clone().path(QuoteResource.PATH).path(share.getKey())).rel("quote")
.build();
share.setLinks(Arrays.asList(self, delete, quote));
share.setLinks(List.of(self, delete, quote));
return share;
}
}
3 changes: 1 addition & 2 deletions src/test/java/x1/arquillian/Containers.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package x1.arquillian;

import java.util.Arrays;
import java.util.List;

import org.jboss.arquillian.container.spi.ContainerRegistry;
Expand Down Expand Up @@ -32,7 +31,7 @@ public final class Containers implements ArquillianTestContainers {

@Override
public List<GenericContainer<?>> instances() {
return Arrays.asList(etcd, database, wildfly);
return List.of(etcd, database, wildfly);
}

@Override
Expand Down

0 comments on commit cdcd5db

Please sign in to comment.