Skip to content

Commit 44fb466

Browse files
committed
run spring-javaformat
Signed-off-by: jitokim <[email protected]>
1 parent de82979 commit 44fb466

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

models/spring-ai-anthropic/src/main/java/org/springframework/ai/anthropic/api/AnthropicApi.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,9 @@ public AnthropicApi(String baseUrl, String anthropicApiKey, String anthropicVers
139139
this.webClient = webClientBuilder.baseUrl(baseUrl)
140140
.defaultHeaders(jsonContentHeaders)
141141
.defaultStatusHandler(HttpStatusCode::isError,
142-
resp -> resp.bodyToMono(String.class).flatMap(
143-
it -> Mono.error(
144-
new RuntimeException("Response exception, Status: [" + resp.statusCode() + "], Body:[" + it + "]")
145-
)
146-
)
147-
)
142+
resp -> resp.bodyToMono(String.class)
143+
.flatMap(it -> Mono.error(new RuntimeException(
144+
"Response exception, Status: [" + resp.statusCode() + "], Body:[" + it + "]"))))
148145
.build();
149146
}
150147

models/spring-ai-anthropic/src/test/java/org/springframework/ai/anthropic/api/AnthropicApiIT.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ void chatCompletionStreamError() {
8383

8484
assertThat(response).isNotNull();
8585

86-
assertThatThrownBy(() -> response.collectList().block())
87-
.isInstanceOf(RuntimeException.class)
88-
.hasMessageStartingWith("Response exception, Status: [");
86+
assertThatThrownBy(() -> response.collectList().block()).isInstanceOf(RuntimeException.class)
87+
.hasMessageStartingWith("Response exception, Status: [");
8988
}
9089

9190
}

0 commit comments

Comments
 (0)