aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--container-search/src/main/java/com/yahoo/search/Result.java2
-rw-r--r--processing/src/main/java/com/yahoo/processing/Response.java2
2 files changed, 4 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
*/
diff --git a/processing/src/main/java/com/yahoo/processing/Response.java b/processing/src/main/java/com/yahoo/processing/Response.java
index 59e6c3d22ab..485513cd0cb 100644
--- a/processing/src/main/java/com/yahoo/processing/Response.java
+++ b/processing/src/main/java/com/yahoo/processing/Response.java
@@ -30,6 +30,8 @@ import java.util.concurrent.TimeoutException;
* Processors producing Responses should not create subclasses but should instead
* create additional instances/subclasses of Data. Such Processors should always create Response instances by calling
* execution.process(request), which will return an empty Response if there are no further processors in the chain.
+ * <p>
+ * Do not cache this as it may hold references to objects that should be garbage collected.
*
* @author bratseth
*/