From a34dcd3524db1917a2a4bc4629d1475e11d3e7f1 Mon Sep 17 00:00:00 2001 From: Jackie Han Date: Fri, 22 Dec 2023 11:12:45 -0800 Subject: [PATCH] spotless check clean up Signed-off-by: Jackie Han --- .../flowframework/model/WorkflowState.java | 6 +-- .../FlowFrameworkRestTestCase.java | 48 +++++++++---------- .../resources/template/agent-framework.json | 2 +- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/main/java/org/opensearch/flowframework/model/WorkflowState.java b/src/main/java/org/opensearch/flowframework/model/WorkflowState.java index 56f5d4e2d..e962f5758 100644 --- a/src/main/java/org/opensearch/flowframework/model/WorkflowState.java +++ b/src/main/java/org/opensearch/flowframework/model/WorkflowState.java @@ -404,9 +404,9 @@ public static WorkflowState parse(XContentParser parser) throws IOException { */ public static WorkflowState parse(String json) throws IOException { XContentParser parser = JsonXContent.jsonXContent.createParser( - NamedXContentRegistry.EMPTY, - LoggingDeprecationHandler.INSTANCE, - json + NamedXContentRegistry.EMPTY, + LoggingDeprecationHandler.INSTANCE, + json ); ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.nextToken(), parser); return parse(parser); diff --git a/src/test/java/org/opensearch/flowframework/FlowFrameworkRestTestCase.java b/src/test/java/org/opensearch/flowframework/FlowFrameworkRestTestCase.java index c4ff4eba5..f20f47e33 100644 --- a/src/test/java/org/opensearch/flowframework/FlowFrameworkRestTestCase.java +++ b/src/test/java/org/opensearch/flowframework/FlowFrameworkRestTestCase.java @@ -376,12 +376,12 @@ protected Response provisionWorkflow(String workflowId) throws Exception { */ protected Response deprovisionWorkflow(String workflowId) throws Exception { return TestHelpers.makeRequest( - client(), - "POST", - String.format(Locale.ROOT, "%s/%s/%s", WORKFLOW_URI, workflowId, "_deprovision"), - ImmutableMap.of(), - "", - null + client(), + "POST", + String.format(Locale.ROOT, "%s/%s/%s", WORKFLOW_URI, workflowId, "_deprovision"), + ImmutableMap.of(), + "", + null ); } @@ -393,12 +393,12 @@ protected Response deprovisionWorkflow(String workflowId) throws Exception { */ protected Response deleteWorkflow(String workflowId) throws Exception { return TestHelpers.makeRequest( - client(), - "POST", - String.format(Locale.ROOT, "%s/%s", WORKFLOW_URI, workflowId), - ImmutableMap.of(), - "", - null + client(), + "POST", + String.format(Locale.ROOT, "%s/%s", WORKFLOW_URI, workflowId), + ImmutableMap.of(), + "", + null ); } @@ -456,24 +456,24 @@ protected SearchResponse searchWorkflows(String query) throws Exception { protected SearchResponse searchWorkflowState(String query) throws Exception { Response restSearchResponse = TestHelpers.makeRequest( - client(), - "GET", - String.format(Locale.ROOT, "%s/state/_search", WORKFLOW_URI), - ImmutableMap.of(), - query, - null + client(), + "GET", + String.format(Locale.ROOT, "%s/state/_search", WORKFLOW_URI), + ImmutableMap.of(), + query, + null ); assertEquals(RestStatus.OK, TestHelpers.restStatus(restSearchResponse)); // Parse entity content into SearchResponse MediaType mediaType = MediaType.fromMediaType(restSearchResponse.getEntity().getContentType()); try ( - XContentParser parser = mediaType.xContent() - .createParser( - NamedXContentRegistry.EMPTY, - DeprecationHandler.THROW_UNSUPPORTED_OPERATION, - restSearchResponse.getEntity().getContent() - ) + XContentParser parser = mediaType.xContent() + .createParser( + NamedXContentRegistry.EMPTY, + DeprecationHandler.THROW_UNSUPPORTED_OPERATION, + restSearchResponse.getEntity().getContent() + ) ) { return SearchResponse.fromXContent(parser); } diff --git a/src/test/resources/template/agent-framework.json b/src/test/resources/template/agent-framework.json index 224db271c..713214638 100644 --- a/src/test/resources/template/agent-framework.json +++ b/src/test/resources/template/agent-framework.json @@ -198,4 +198,4 @@ ] } } -} \ No newline at end of file +}