Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6jDW7zqoKDMTRrCyq
20 lines
1.4 KiB
Plaintext
20 lines
1.4 KiB
Plaintext
# javac -Xlint:deprecation on the Spring AI 2.0 ChatMemory setup, compiled against Spring AI 2.1.0
|
|
|
|
$ javac -Xlint:deprecation -cp <2.1.0 classpath> src/broken/LegacyChatMemory.java
|
|
LegacyChatMemory.java:12: warning: [removal] ChatMemory in org.springframework.ai.chat.memory has been deprecated and marked for removal
|
|
ChatMemory memory = MessageWindowChatMemory.builder()
|
|
^
|
|
LegacyChatMemory.java:13: warning: [removal] InMemoryChatMemoryRepository in org.springframework.ai.chat.memory has been deprecated and marked for removal
|
|
.chatMemoryRepository(new InMemoryChatMemoryRepository())
|
|
^
|
|
LegacyChatMemory.java:12: warning: [removal] MessageWindowChatMemory in org.springframework.ai.chat.memory has been deprecated and marked for removal
|
|
ChatMemory memory = MessageWindowChatMemory.builder()
|
|
^
|
|
LegacyChatMemory.java:17: warning: [removal] MessageChatMemoryAdvisor in org.springframework.ai.chat.client.advisor has been deprecated and marked for removal
|
|
.defaultAdvisors(MessageChatMemoryAdvisor.builder(memory).build())
|
|
^
|
|
LegacyChatMemory.java:20: warning: [removal] ChatMemory in org.springframework.ai.chat.memory has been deprecated and marked for removal
|
|
.advisors(a -> a.param(ChatMemory.CONVERSATION_ID, conversationId))
|
|
^
|
|
5 warnings
|