Skip to content

Commit b91f017

Browse files
committed
fix some Javadoc warnings
1 parent bf515fc commit b91f017

File tree

7 files changed

+19
-7
lines changed

7 files changed

+19
-7
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/AbstractAnalyzer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ public abstract void analyze(Document doc, StreamSource src, Writer xrefOut)
125125
/**
126126
* Subclasses must override to incorporate a determined number of lines and
127127
* lines-of-code (LOC).
128+
* @param doc Document instance
129+
* @param counts NumLinesLOC instance
128130
*/
129131
protected abstract void addNumLinesLOC(Document doc, NumLinesLOC counts);
130132

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/AnalyzerGuru.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ public static void addExtension(String extension, AnalyzerFactory factory) {
509509
* {@link #addExtension(String, AnalyzerFactory)} and
510510
* {@link #addPrefix(String, AnalyzerFactory)} merged with default language
511511
* mappings of OpenGrok's analyzers.
512+
* @return LangMap instance
512513
*/
513514
public static LangMap getLangMap() {
514515
return langMap.mergeSecondary(defaultLangMap).unmodifiable();

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/TextAnalyzer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ public Xrefer writeXref(WriteXrefArgs args) throws IOException {
9494
/**
9595
* Gets a BOM-stripped {@link Reader} (default UTF-8 charset) of the
9696
* specified {@code stream}, wrapped in a {@link ZeroReader}.
97+
* @param stream input stream
98+
* @return Reader instance
9799
*/
98100
protected Reader getReader(InputStream stream) throws IOException {
99101
// sourceRoot is read with UTF-8 as a default.

opengrok-indexer/src/main/java/org/opengrok/indexer/configuration/Configuration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,13 +1066,15 @@ public void setWebappLAF(String webappLAF) {
10661066

10671067
/**
10681068
* Gets a value indicating if the web app should run ctags as necessary.
1069+
* @return true if ctags should be run, false otherwise
10691070
*/
10701071
public boolean isWebappCtags() {
10711072
return webappCtags;
10721073
}
10731074

10741075
/**
10751076
* Sets a value indicating if the web app should run ctags as necessary.
1077+
* @param value true or false
10761078
*/
10771079
public void setWebappCtags(boolean value) {
10781080
this.webappCtags = value;

opengrok-indexer/src/main/java/org/opengrok/indexer/configuration/RuntimeEnvironment.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ public WatchDogService getWatchDog() {
187187
return watchDog;
188188
}
189189

190-
/** Gets the thread pool used for multi-project searches. */
190+
/**
191+
* Gets the thread pool used for multi-project searches.
192+
* @return ExecutorService instance
193+
*/
191194
public ExecutorService getSearchExecutor() {
192195
return lzSearchExecutor.get();
193196
}
@@ -252,6 +255,7 @@ public IndexerParallelizer getIndexerParallelizer() {
252255

253256
/**
254257
* Gets an instance associated to this environment.
258+
* @return PathAccepter instance
255259
*/
256260
public PathAccepter getPathAccepter() {
257261
return new PathAccepter(getIgnoredNames(), getIncludedNames());
@@ -1510,6 +1514,8 @@ public String getConfigurationXML() {
15101514
*
15111515
* @param host the host address to receive the configuration
15121516
* @throws IOException if an error occurs
1517+
* @throws InterruptedException on timeout
1518+
* @throws IllegalArgumentException on invalid configuration
15131519
*/
15141520
public void writeConfiguration(String host) throws IOException, InterruptedException, IllegalArgumentException {
15151521
String configXML = syncReadConfiguration(Configuration::getXMLRepresentationAsString);

opengrok-indexer/src/main/java/org/opengrok/indexer/search/context/OGKUnifiedHighlighter.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@
5050
import org.opengrok.indexer.web.Util;
5151

5252
/**
53-
* Represents a subclass of {@link UnifiedHighlighter} with customizations for
54-
* OpenGrok.
53+
* Represents a subclass of {@link UnifiedHighlighter} with customizations for OpenGrok.
5554
*/
5655
public class OGKUnifiedHighlighter extends UnifiedHighlighter {
5756

58-
private static final Logger LOGGER = LoggerFactory.getLogger(
59-
OGKUnifiedHighlighter.class);
57+
private static final Logger LOGGER = LoggerFactory.getLogger(OGKUnifiedHighlighter.class);
6058

6159
private final RuntimeEnvironment env;
6260

@@ -74,8 +72,7 @@ public class OGKUnifiedHighlighter extends UnifiedHighlighter {
7472
* @param indexAnalyzer a required instance
7573
* @throws IllegalArgumentException if any argument is null
7674
*/
77-
public OGKUnifiedHighlighter(RuntimeEnvironment env,
78-
IndexSearcher indexSearcher, Analyzer indexAnalyzer) {
75+
public OGKUnifiedHighlighter(RuntimeEnvironment env, IndexSearcher indexSearcher, Analyzer indexAnalyzer) {
7976
super(indexSearcher, indexAnalyzer);
8077

8178
if (env == null) {

opengrok-indexer/src/main/java/org/opengrok/indexer/web/Util.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,8 @@ public static String uid2url(String uid) {
849849
* {@link org.opengrok.indexer.index.Indexer#PATH_SEPARATOR} in order not
850850
* to conflict with the Lucene escape character and also so {@code path}
851851
* appears as a correctly formed URI in search results.
852+
* @param path path to fix
853+
* @return fixed path
852854
*/
853855
public static String fixPathIfWindows(String path) {
854856
if (path != null && SystemUtils.IS_OS_WINDOWS) {

0 commit comments

Comments
 (0)