aboutsummaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-02-03 15:30:03 +0100
committerGitHub <noreply@github.com>2021-02-03 15:30:03 +0100
commit523b51ef75f7cb6595251f3d06a8045027056e7f (patch)
treed34a1cc38ae560ca469529a5410ac88d86ac5d2c /container-search
parentb41996a50eea6d10c7df5738fa6eb5c46738c5d4 (diff)
parentc75fa130d455cddd60aaa13419c0ab814b279b37 (diff)
Merge pull request #16373 from vespa-engine/bratseth/caching-warning
Warn not to cache this
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/main/java/com/yahoo/search/Result.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/Result.java b/container-search/src/main/java/com/yahoo/search/Result.java
index 6a875851ca9..2e9018217bb 100644
--- a/container-search/src/main/java/com/yahoo/search/Result.java
+++ b/container-search/src/main/java/com/yahoo/search/Result.java
@@ -21,6 +21,8 @@ import java.util.Iterator;
* result items, as well as further HitGroups, making up a <i>composite</i> structure. This allows the hits of a result
* to be hierarchically organized. A Hit is polymorphic and may contain any kind of information deemed
* an approriate partial answer to the Query.
+ * <p>
+ * Do not cache this as it holds references to objects that should be garbage collected.
*
* @author bratseth
*/