Skip to content

Commit b14e125

Browse files
committed
Replace List.of() with Collections.emptyList()
1 parent c7f22d8 commit b14e125

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-ai-core/src/main/java/org/springframework/ai/evaluation/EvaluationRequest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import org.springframework.ai.model.Content;
44

5+
import java.util.Collections;
56
import java.util.List;
67
import java.util.Objects;
78

@@ -22,7 +23,7 @@ public class EvaluationRequest {
2223
private final String responseContent;
2324

2425
public EvaluationRequest(String userText, String responseContent) {
25-
this(userText, List.of(), responseContent);
26+
this(userText, Collections.emptyList(), responseContent);
2627
}
2728

2829
public EvaluationRequest(String userText, List<Content> dataList, String responseContent) {

0 commit comments

Comments
 (0)