This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new f3e6c92 Update NCConversation.java
f3e6c92 is described below
commit f3e6c9238b40f93a43293b197d3f0cae38849044
Author: Aaron Radzinski <[email protected]>
AuthorDate: Wed Sep 23 19:16:57 2020 -0700
Update NCConversation.java
---
nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCConversation.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCConversation.java
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCConversation.java
index 88af51f..10f4e7e 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCConversation.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCConversation.java
@@ -95,8 +95,8 @@ public interface NCConversation {
* Note that this data will expire the same way as other elements in the
conversation (i.e. tokens and
* previously matched intents).
* <p>
- * Note that you should obtain the user data container on every intent
callback invocation to make
- * sure that expiration policy takes an effect. Do not cache the returned
object elsewhere.
+ * Note that you should not cache or clone the data from this container
because it won't be properly expired
+ * in that case. You can, however, cache the return reference itself, if
required.
*
* @return Mutable and thread-safe user data container.
*/