Skip to content

Commit 05801be

Browse files
committed
Decorate SearchHist as NON_NULL
1 parent 52f818f commit 05801be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opengrok-web/src/main/java/org/opengrok/web/api/v1/controller/SearchController.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919

2020
/*
2121
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
22-
* Portions Copyright (c) 2020, Chris Fraire <[email protected]>.
22+
* Portions Copyright (c) 2019-2020, Chris Fraire <[email protected]>.
2323
*/
2424
package org.opengrok.web.api.v1.controller;
2525

26+
import com.fasterxml.jackson.annotation.JsonInclude;
2627
import org.apache.lucene.search.Query;
2728
import org.opengrok.indexer.configuration.Project;
2829
import org.opengrok.indexer.search.Hit;
@@ -214,6 +215,7 @@ public int getEndDocument() {
214215
}
215216
}
216217

218+
@JsonInclude(JsonInclude.Include.NON_NULL)
217219
private static class SearchHit {
218220

219221
private final String line;

0 commit comments

Comments
 (0)