diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2017-04-27 10:59:19 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2017-04-27 10:59:19 +0200 |
commit | a383bca19847662fe361c1e416d720556813338f (patch) | |
tree | 90255e197484e926103d83774dd0515b36c4608b /container-search/src/main/java/com/yahoo/search/query/context | |
parent | 2c69a5846580c161befcfc6e01d02d41099a52ea (diff) |
Override clone
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/query/context')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/query/context/QueryContext.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/context/QueryContext.java b/container-search/src/main/java/com/yahoo/search/query/context/QueryContext.java index d6fc9adeac8..20f768fadcb 100644 --- a/container-search/src/main/java/com/yahoo/search/query/context/QueryContext.java +++ b/container-search/src/main/java/com/yahoo/search/query/context/QueryContext.java @@ -15,8 +15,7 @@ import java.util.Iterator; * A proxy to the Execution.trace() which exists for legacy reasons. * Calls to this is forwarded to owningQuery.getModel().getExecution().trace(). * - * @since 4.2 - * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a> + * @author Steinar Knutsen * @author bratseth */ public class QueryContext implements Cloneable { @@ -109,4 +108,14 @@ public class QueryContext implements Cloneable { /** Returns the execution trace this delegates to */ public Execution.Trace getTrace() { return owner.getModel().getExecution().trace(); } + @Override + public QueryContext clone() { + try { + return (QueryContext)super.clone(); + } + catch (CloneNotSupportedException e) { + throw new RuntimeException(e); + } + } + } |