Skip to content

Commit 98cdff8

Browse files
committed
Remove unused imports
1 parent 8667da9 commit 98cdff8

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

gxawsserverless/src/main/java/com/genexus/cloud/serverless/aws/LambdaHandler.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ public LambdaHandler() throws Exception {
4545
logger = LogManager.initialize(".", LambdaHandler.class);
4646
LambdaHandler.jerseyApplication = ResourceConfig.forApplication(LambdaHelper.initialize());
4747
if (jerseyApplication.getClasses().size() == 0) {
48-
String errMsg = "No endpoints found for this application";
49-
logger.error(errMsg);
50-
throw new Exception(errMsg);
48+
logger.error("No HTTP endpoints found for this application");
5149
}
5250
LambdaHandler.handler = JerseyLambdaContainerHandler.getAwsProxyHandler(LambdaHandler.jerseyApplication);
5351
}

gxawsserverless/src/main/java/com/genexus/cloud/serverless/aws/handler/LambdaHttpApiHandler.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,14 @@
55
import com.amazonaws.serverless.proxy.model.HttpApiV2ProxyRequest;
66
import com.amazonaws.services.lambda.runtime.Context;
77
import com.amazonaws.services.lambda.runtime.RequestHandler;
8-
import com.genexus.ApplicationContext;
98
import com.genexus.cloud.serverless.aws.LambdaHandler;
109
import com.genexus.diagnostics.core.ILogger;
11-
import com.genexus.specific.java.Connect;
1210
import com.genexus.specific.java.LogManager;
13-
import com.genexus.util.IniFile;
1411
import org.glassfish.jersey.server.ResourceConfig;
15-
16-
import javax.ws.rs.core.Application;
1712
import java.util.Map;
1813

1914
public class LambdaHttpApiHandler implements RequestHandler<HttpApiV2ProxyRequest, AwsProxyResponse> {
2015
private static final String BASE_REST_PATH = "/rest/";
21-
private static final String GX_APPLICATION_CLASS = "GXApplication";
2216
public static JerseyLambdaContainerHandler<HttpApiV2ProxyRequest, AwsProxyResponse> handler = null;
2317
private static ILogger logger = null;
2418
private static ResourceConfig jerseyApplication = null;
@@ -29,9 +23,7 @@ public LambdaHttpApiHandler() throws Exception {
2923
logger = LogManager.initialize(".", LambdaHandler.class);
3024
LambdaHttpApiHandler.jerseyApplication = ResourceConfig.forApplication(LambdaHelper.initialize());
3125
if (jerseyApplication.getClasses().size() == 0) {
32-
String errMsg = "No endpoints found for this application";
33-
logger.error(errMsg);
34-
throw new Exception(errMsg);
26+
logger.error("No HTTP endpoints found for this application");
3527
}
3628
LambdaHttpApiHandler.handler = JerseyLambdaContainerHandler.getHttpApiV2ProxyHandler(LambdaHttpApiHandler.jerseyApplication);
3729
}

0 commit comments

Comments
 (0)