Skip to content

Commit 28a441a

Browse files
author
Dennis Labordus
committed
Fixed SOnar issues.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 79eec53 commit 28a441a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/src/main/java/org/lfenergy/compas/scl/validator/rest/v1/SclValidatorServerEndpoint.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import javax.websocket.*;
2121
import javax.websocket.server.PathParam;
2222
import javax.websocket.server.ServerEndpoint;
23-
import java.io.IOException;
2423

2524
import static org.lfenergy.compas.scl.validator.rest.SclResourceConstants.TYPE_PATH_PARAM;
2625

@@ -52,7 +51,7 @@ public void onMessage(Session session, SclValidateRequest request, @PathParam(TY
5251
}
5352

5453
@OnError
55-
public void onError(Session session, @PathParam(TYPE_PATH_PARAM) String type, Throwable throwable) throws IOException {
54+
public void onError(Session session, @PathParam(TYPE_PATH_PARAM) String type, Throwable throwable) {
5655
LOGGER.warn("Error with session {} for type {}.", session.getId(), type, throwable);
5756
}
5857

app/src/main/java/org/lfenergy/compas/scl/validator/rest/v1/event/SclValidatorEventHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import javax.enterprise.context.ApplicationScoped;
1212
import javax.inject.Inject;
13-
import java.io.IOException;
1413

1514
/**
1615
* Event Handler used to execute the validation asynchronized.
@@ -25,7 +24,7 @@ public SclValidatorEventHandler(SclValidatorService sclValidatorService) {
2524
}
2625

2726
@ConsumeEvent(value = "validate-ws", blocking = true)
28-
public void validateWebsocketsEvent(SclValidatorEventRequest request) throws IOException {
27+
public void validateWebsocketsEvent(SclValidatorEventRequest request) {
2928
var response = new SclValidateResponse();
3029
response.setValidationErrorList(sclValidatorService.validate(request.getType(), request.getSclData()));
3130

0 commit comments

Comments
 (0)