|
18 | 18 | */
|
19 | 19 |
|
20 | 20 | /*
|
21 |
| - * Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved. |
| 21 | + * Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved. |
22 | 22 | * Portions Copyright (c) 2017, 2021, Chris Fraire <[email protected]>.
|
23 | 23 | */
|
24 | 24 | package org.opengrok.indexer.analysis;
|
|
57 | 57 | import org.apache.lucene.document.StringField;
|
58 | 58 | import org.apache.lucene.document.TextField;
|
59 | 59 | import org.apache.lucene.util.BytesRef;
|
| 60 | +import org.jetbrains.annotations.Nullable; |
60 | 61 | import org.opengrok.indexer.analysis.FileAnalyzerFactory.Matcher;
|
61 | 62 | import org.opengrok.indexer.analysis.ada.AdaAnalyzerFactory;
|
62 | 63 | import org.opengrok.indexer.analysis.archive.BZip2AnalyzerFactory;
|
@@ -663,7 +664,7 @@ private static void populateDocumentHistory(Document doc, File file) {
|
663 | 664 | * @throws java.io.IOException If an error occurs while creating the output
|
664 | 665 | */
|
665 | 666 | public static void writeXref(AnalyzerFactory factory, Reader in,
|
666 |
| - Writer out, Definitions defs, |
| 667 | + Writer out, @Nullable Definitions defs, |
667 | 668 | Annotation annotation, Project project, File file)
|
668 | 669 | throws IOException {
|
669 | 670 |
|
@@ -704,7 +705,7 @@ public static void writeXref(AnalyzerFactory factory, Reader in,
|
704 | 705 | */
|
705 | 706 | public static void writeDumpedXref(String contextPath,
|
706 | 707 | AnalyzerFactory factory, Reader in, Writer out,
|
707 |
| - Definitions defs, Annotation annotation, Project project, File file) throws IOException { |
| 708 | + @Nullable Definitions defs, Annotation annotation, Project project, File file) throws IOException { |
708 | 709 |
|
709 | 710 | File xrefTemp = File.createTempFile("ogxref", ".html");
|
710 | 711 | try {
|
|
0 commit comments