use of io.syndesis.common.util.SuppressFBWarnings in project syndesis by syndesisio.
the class Application method run.
@Override
@SuppressFBWarnings("DM_EXIT")
public void run(ApplicationArguments args) {
try {
// NOPMD
System.out.println("To: " + to);
generateIntegrationProject(new File(to));
} catch (IOException e) {
// NOPMD
e.printStackTrace();
// NOPMD
System.exit(1);
}
}
use of io.syndesis.common.util.SuppressFBWarnings in project syndesis by syndesisio.
the class IntegrationHandler method setTargetStatus.
@POST
@Produces(MediaType.APPLICATION_JSON)
@Path("/{id}/deployments/{version}/targetState")
@SuppressFBWarnings("UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD")
public void setTargetStatus(@NotNull @PathParam("id") @ApiParam(required = true) String id, @NotNull @PathParam("version") @ApiParam(required = true) Integer version, TargetStateRequest request) {
String compositeId = IntegrationDeployment.compositeId(id, version);
IntegrationDeployment deployment = getDataManager().fetch(IntegrationDeployment.class, compositeId);
deployment = new IntegrationDeployment.Builder().createFrom(deployment).targetState(request.targetState).build();
getDataManager().update(deployment);
}
Aggregations