File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
opengrok-web/src/main/java/org/opengrok/web/api/v1/controller Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1919
2020/*
2121 * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
22- * Portions Copyright (c) 2020, Chris Fraire <cfraire@me.com>.
22+ * Portions Copyright (c) 2019- 2020, Chris Fraire <cfraire@me.com>.
2323 */
2424package org .opengrok .web .api .v1 .controller ;
2525
26+ import com .fasterxml .jackson .annotation .JsonInclude ;
2627import org .apache .lucene .search .Query ;
2728import org .opengrok .indexer .configuration .Project ;
2829import 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 ;
You can’t perform that action at this time.
0 commit comments