summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/handler
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2019-08-29 09:52:43 +0200
committerHarald Musum <musum@verizonmedia.com>2019-08-29 09:52:43 +0200
commit408ae127916b740cfff1620afdce0bc12ae632e9 (patch)
tree565f5dd2a9eaf995115ed66ce3a17d53c274ab18 /container-search/src/main/java/com/yahoo/search/handler
parent640f1272a1800551f10b96321c82e75c41c6e54d (diff)
Remove use of Nullable and NotNull annotations
Different implementations and using OSGi makes it really hard to use these annotations and the value of using them is IMHO not very high.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/handler')
-rw-r--r--container-search/src/main/java/com/yahoo/search/handler/SearchHandler.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/handler/SearchHandler.java b/container-search/src/main/java/com/yahoo/search/handler/SearchHandler.java
index 84db07d20da..eef4cb72e9b 100644
--- a/container-search/src/main/java/com/yahoo/search/handler/SearchHandler.java
+++ b/container-search/src/main/java/com/yahoo/search/handler/SearchHandler.java
@@ -35,7 +35,6 @@ import com.yahoo.search.Query;
import com.yahoo.search.Result;
import com.yahoo.search.Searcher;
import com.yahoo.search.config.IndexInfoConfig;
-import com.yahoo.search.query.profile.QueryProfileRegistry;
import com.yahoo.search.query.profile.compiled.CompiledQueryProfile;
import com.yahoo.search.query.profile.compiled.CompiledQueryProfileRegistry;
import com.yahoo.search.query.profile.config.QueryProfileConfigurer;
@@ -50,7 +49,7 @@ import com.yahoo.statistics.Handle;
import com.yahoo.statistics.Statistics;
import com.yahoo.statistics.Value;
import com.yahoo.vespa.configdefinition.SpecialtokensConfig;
-import edu.umd.cs.findbugs.annotations.NonNull;
+
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
@@ -308,7 +307,6 @@ public class SearchHandler extends LoggingRequestHandler {
return result.hits().getErrorHit() == null ? 0 : 1;
}
- @NonNull
private Renderer<Result> toRendererCopy(ComponentSpecification format) {
Renderer<Result> renderer = executionFactory.rendererRegistry().getRenderer(format);
renderer = perRenderingCopy(renderer);
@@ -374,7 +372,6 @@ public class SearchHandler extends LoggingRequestHandler {
return perRenderingCopy(renderer);
}
- @NonNull
private Renderer<Result> perRenderingCopy(Renderer<Result> renderer) {
Renderer<Result> copy = renderer.clone();
copy.init();