Skip to content

Commit b268aff

Browse files
committed
fix: spring-javaformat:apply
Signed-off-by: YuJie Wan <[email protected]>
1 parent bd6afbb commit b268aff

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

spring-ai-client-chat/src/main/java/org/springframework/ai/chat/client/DefaultChatClient.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,9 +1006,7 @@ private BaseAdvisorChain buildAdvisorChain() {
10061006
this.advisors.add(ChatModelCallAdvisor.builder().chatModel(this.chatModel).build());
10071007
this.advisors.add(ChatModelStreamAdvisor.builder().chatModel(this.chatModel).build());
10081008

1009-
return DefaultAroundAdvisorChain.builder(this.observationRegistry)
1010-
.pushAll(this.advisors)
1011-
.build();
1009+
return DefaultAroundAdvisorChain.builder(this.observationRegistry).pushAll(this.advisors).build();
10121010
}
10131011

10141012
}

spring-ai-client-chat/src/main/java/org/springframework/ai/chat/client/advisor/DefaultAroundAdvisorChain.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public class DefaultAroundAdvisorChain implements BaseAdvisorChain {
6868

6969
private final ObservationRegistry observationRegistry;
7070

71-
DefaultAroundAdvisorChain(ObservationRegistry observationRegistry,
72-
Deque<CallAdvisor> callAdvisors, Deque<StreamAdvisor> streamAdvisors) {
71+
DefaultAroundAdvisorChain(ObservationRegistry observationRegistry, Deque<CallAdvisor> callAdvisors,
72+
Deque<StreamAdvisor> streamAdvisors) {
7373

7474
Assert.notNull(observationRegistry, "the observationRegistry must be non-null");
7575
Assert.notNull(callAdvisors, "the callAdvisors must be non-null");
@@ -215,8 +215,7 @@ private void reOrder() {
215215
}
216216

217217
public DefaultAroundAdvisorChain build() {
218-
return new DefaultAroundAdvisorChain(this.observationRegistry, this.callAdvisors,
219-
this.streamAdvisors);
218+
return new DefaultAroundAdvisorChain(this.observationRegistry, this.callAdvisors, this.streamAdvisors);
220219
}
221220

222221
}

0 commit comments

Comments
 (0)