Skip to content

Commit a55040e

Browse files
committed
Apply refactor and adjust codestyle
Signed-off-by: Matheus Cruz <[email protected]>
1 parent acd4272 commit a55040e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIExecutor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public CompletableFuture<WorkflowModel> apply(
6565
workflowContext
6666
.definition()
6767
.resourceLoader()
68-
.load(resource, this::readMinimalOpenAPI, workflowContext, taskContext, input));
68+
.load(resource, this::readUnifiedOpenAPI, workflowContext, taskContext, input));
6969

7070
fillHttpBuilder(workflowContext.definition().application(), operationDefinition);
7171
// One executor per operation, even if the document is the same
@@ -145,7 +145,7 @@ private void param(
145145
}
146146
}
147147

148-
private UnifiedOpenAPI readMinimalOpenAPI(ExternalResourceHandler handler) {
148+
private UnifiedOpenAPI readUnifiedOpenAPI(ExternalResourceHandler handler) {
149149
ObjectMapper objectMapper = WorkflowFormat.fromFileName(handler.name()).mapper();
150150
try (InputStream is = handler.open()) {
151151
return objectMapper.readValue(is, UnifiedOpenAPI.class);

impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
import java.util.Objects;
1919
import java.util.Optional;
2020

21-
public class OpenAPIProcessor {
21+
class OpenAPIProcessor {
2222

2323
private final String operationId;
2424

25-
public OpenAPIProcessor(String operationId) {
25+
OpenAPIProcessor(String operationId) {
2626
this.operationId = Objects.requireNonNull(operationId);
2727
}
2828

impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OperationDefinition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class OperationDefinition {
2828
private final String path;
2929

3030
OperationDefinition(
31-
UnifiedOpenAPI openAPI, UnifiedOpenAPI.Operation operation, String path, String method) {
31+
UnifiedOpenAPI openAPI, UnifiedOpenAPI.Operation operation, String path, String method) {
3232

3333
this.openAPI = Objects.requireNonNull(openAPI, "openAPI cannot be null");
3434
this.operation = Objects.requireNonNull(operation, "operation cannot be null");

0 commit comments

Comments
 (0)