Skip to content

Commit

Permalink
Fixes #4270 - Cleanup various bits (#4272)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem authored Nov 25, 2024
1 parent 2d498ed commit ac38f06
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public class PiranhaDeploymentExceptionTransformer implements DeploymentExceptio

@Override
public Throwable transform(Throwable throwable) {
@SuppressWarnings("unchecked")
List<Throwable> throwableList = ExceptionUtils.getThrowableList(throwable);
if (throwableList.size() < 1)
return throwable;
Expand Down
2 changes: 1 addition & 1 deletion feature/isolatedwebapp/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
exports cloud.piranha.feature.isolatedwebapp;
opens cloud.piranha.feature.isolatedwebapp;
requires cloud.piranha.feature.impl;
requires cloud.piranha.http.webapp;
requires transitive cloud.piranha.http.webapp;
requires cloud.piranha.micro.builder;
requires cloud.piranha.micro.loader;
requires shrinkwrap.api;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import cloud.piranha.http.api.HttpServerProcessor;
import cloud.piranha.http.webapp.HttpWebApplicationServer;
import java.io.File;
import java.lang.System.Logger.Level;
import java.util.ArrayList;

/**
Expand Down Expand Up @@ -107,6 +108,10 @@ public HttpWebApplicationServer getHttpWebApplicationServer() {

@Override
public void init() {
if (LOGGER.isLoggable(Level.DEBUG)) {
LOGGER.log(Level.DEBUG, "Initializing WebAppsFeature");
}

if (webApplicationServer == null) {
webApplicationServer = new HttpWebApplicationServer();
}
Expand Down
4 changes: 2 additions & 2 deletions http/crac/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@

exports cloud.piranha.http.crac;
opens cloud.piranha.http.crac;
requires cloud.piranha.http.api;
requires org.crac;
requires transitive cloud.piranha.http.api;
requires transitive org.crac;
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public void channelReadComplete(ChannelHandlerContext context) {
@Override
protected void channelRead0(ChannelHandlerContext context, FullHttpRequest object) {
NettyHttpServerRequest nettyRequest = new NettyHttpServerRequest(context, object, secure);
@SuppressWarnings("deprecation")
FullHttpResponse response = new DefaultFullHttpResponse(HTTP_1_1, OK, true);
NettyHttpServerResponse nettyResponse = new NettyHttpServerResponse(response);
httpServerProcessor.process(nettyRequest, nettyResponse);
Expand Down
2 changes: 1 addition & 1 deletion http/virtual/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@

exports cloud.piranha.http.virtual;
opens cloud.piranha.http.virtual;
requires cloud.piranha.http.api;
requires transitive cloud.piranha.http.api;
requires cloud.piranha.http.impl;
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public void writeStatusLine() throws IOException {
httpServerResponse.writeStatusLine();
}

@SuppressWarnings("removal")
@Override
public void writeHeaders() throws IOException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class HttpWebApplicationResponse extends DefaultWebApplicationResponse {
/**
* Stores the wrapped HttpServerResponse.
*/
private final HttpServerResponse wrapped;
protected final HttpServerResponse wrapped;

/**
* Constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ protected String createArtifactPath(
* @return the URL.
* @throws IOException when an I/O error occurs.
*/
@SuppressWarnings("deprecation")
protected URL createMavenCentralArtifactUrl(String groupId, String artifactId,
String version, String type) throws IOException {
return new URL("https://repo1.maven.org/maven2/"
Expand Down
5 changes: 0 additions & 5 deletions test/micro/snoop/src/test/java/snoop/SnoopIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@
*/
public class SnoopIT {

/**
* Stores the process.
*/
static private Process process;

/**
* Stores the port
*/
Expand Down

0 comments on commit ac38f06

Please sign in to comment.