Skip to content

Commit 81b586e

Browse files
author
Vladimir Kotal
authored
fix some Javadoc warnings (#2627)
1 parent 2c919ef commit 81b586e

35 files changed

+166
-79
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public Definitions doCtags(String file) throws IOException,
392392
*
393393
* @param bufferTags tags file output
394394
* @return definitions parsed from buffer
395-
* @throws java.lang.InterruptedException
395+
* @throws java.lang.InterruptedException interrupted
396396
*/
397397
public Definitions testCtagsParser(String bufferTags)
398398
throws InterruptedException {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public static String generateId(Scope scope) {
183183
* {@link Definitions#getTags(int)} indicates that a function or method
184184
* is defined to starting at the {@link JFlexStackingLexer#getLineNumber()}
185185
* of {@code lexer}.
186-
* @param scopesEnabled
186+
* @param scopesEnabled are scopes enabled ?
187187
* @param existingScope possibly a defined instance or null
188188
* @param lexer a defined, associated lexer
189189
* @param defs possibly a defined instance or null

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,37 @@ public class OGKTextField extends Field {
4444

4545
/**
4646
* Creates a new un-stored instance with {@link Reader} value.
47+
* @param name field name
48+
* @param reader reader
4749
*/
4850
public OGKTextField(String name, Reader reader) {
4951
super(name, reader, TYPE_NOT_STORED);
5052
}
5153

5254
/**
5355
* Creates a new instance with {@link Reader} value.
56+
* @param name field name
57+
* @param reader reader
58+
* @param store store
5459
*/
5560
public OGKTextField(String name, Reader reader, Store store) {
5661
super(name, reader, store == Store.YES ? TYPE_STORED : TYPE_NOT_STORED);
5762
}
5863

5964
/**
6065
* Creates a new instance with {@code String} value.
66+
* @param name field name
67+
* @param value string value
68+
* @param store store
6169
*/
6270
public OGKTextField(String name, String value, Store store) {
6371
super(name, value, store == Store.YES ? TYPE_STORED : TYPE_NOT_STORED);
6472
}
6573

6674
/**
6775
* Creates a new un-stored instance with {@link TokenStream} value.
76+
* @param name field name
77+
* @param stream stream
6878
*/
6979
public OGKTextField(String name, TokenStream stream) {
7080
super(name, stream, TYPE_NOT_STORED);

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,37 @@ public class OGKTextVecField extends Field {
4646

4747
/**
4848
* Creates a new un-stored instance with {@link Reader} value.
49+
* @param name field name
50+
* @param reader reader
4951
*/
5052
public OGKTextVecField(String name, Reader reader) {
5153
super(name, reader, TYPE_NOT_STORED);
5254
}
5355

5456
/**
5557
* Creates a new instance with {@link Reader} value.
58+
* @param name field name
59+
* @param reader reader
60+
* @param store store
5661
*/
5762
public OGKTextVecField(String name, Reader reader, Store store) {
5863
super(name, reader, store == Store.YES ? TYPE_STORED : TYPE_NOT_STORED);
5964
}
6065

6166
/**
6267
* Creates a new instance with {@code String} value.
68+
* @param name field name
69+
* @param value string value
70+
* @param store store
6371
*/
6472
public OGKTextVecField(String name, String value, Store store) {
6573
super(name, value, store == Store.YES ? TYPE_STORED : TYPE_NOT_STORED);
6674
}
6775

6876
/**
6977
* Creates a new un-stored instance with {@link TokenStream} value.
78+
* @param name field name
79+
* @param stream stream
7080
*/
7181
public OGKTextVecField(String name, TokenStream stream) {
7282
super(name, stream, TYPE_NOT_STORED);

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public class PendingToken {
4444
/**
4545
* Initializes an instance with immutable fields for the specified
4646
* arguments.
47-
* @param str
48-
* @param start
49-
* @param end
47+
* @param str string value
48+
* @param start start offset
49+
* @param end end offset
5050
*/
5151
public PendingToken(String str, int start, int end) {
5252
this.str = str;
@@ -56,7 +56,7 @@ public PendingToken(String str, int start, int end) {
5656

5757
/**
5858
* Compares this instance's immutable fields to the other.
59-
* @param o
59+
* @param o object
6060
* @return {@code true} if the objects are equal
6161
*/
6262
@Override

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/perl/PerlLexHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ interface PerlLexer extends JFlexJointLexer {
4444
* Indicates that a premature end of quoting occurred. Everything up to the
4545
* causal character has been written, and anything following will be
4646
* indicated via {@link yypushback}.
47+
* @throws IOException I/O exception
4748
*/
4849
void abortQuote() throws IOException;
4950
}

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public Object getConfigurationValue(String fieldName) {
236236
* Get value of configuration field
237237
* @param fieldName name of the field
238238
* @return object value
239-
* @throws IOException
239+
* @throws IOException I/O
240240
*/
241241
public Object getConfigurationValueException(String fieldName) throws IOException {
242242
try {
@@ -285,6 +285,7 @@ public void setConfigurationValue(String fieldName, Object value) {
285285
* Set configuration value
286286
* @param fieldName name of the field
287287
* @param value value
288+
* @throws IOException I/O exception
288289
*/
289290
public void setConfigurationValueException(String fieldName, Object value) throws IOException {
290291
try {
@@ -299,6 +300,7 @@ public void setConfigurationValueException(String fieldName, Object value) throw
299300
* Set configuration value
300301
* @param fieldName name of the field
301302
* @param value string value
303+
* @throws IOException I/O exception
302304
*/
303305
public void setConfigurationValueException(String fieldName, String value) throws IOException {
304306
try {
@@ -1009,7 +1011,7 @@ public String getBugPattern() {
10091011
* Sets the bug regex for the history listing
10101012
*
10111013
* @param bugPattern the regex to search history comments
1012-
* @throws IOException
1014+
* @throws IOException I/O
10131015
*/
10141016
public void setBugPattern(String bugPattern) throws IOException {
10151017
setConfigurationValueException("bugPattern", bugPattern);
@@ -1046,7 +1048,7 @@ public String getReviewPattern() {
10461048
* Sets the review(ARC) regex for the history listing
10471049
*
10481050
* @param reviewPattern the regex to search history comments
1049-
* @throws IOException
1051+
* @throws IOException I/O
10501052
*/
10511053
public void setReviewPattern(String reviewPattern) throws IOException {
10521054
setConfigurationValueException("reviewPattern", reviewPattern);
@@ -1339,7 +1341,7 @@ public void readConfiguration(File file) throws IOException {
13391341
* Read configuration from a file and put it into effect.
13401342
* @param file the file to read
13411343
* @param interactive true if run in interactive mode
1342-
* @throws IOException
1344+
* @throws IOException I/O
13431345
*/
13441346
public void readConfiguration(File file, boolean interactive) throws IOException {
13451347
setConfiguration(Configuration.read(file), null, interactive);

opengrok-indexer/src/main/java/org/opengrok/indexer/history/HistoryGuru.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public boolean hasHistory(File file) {
309309

310310
/**
311311
* Does the history cache contain entry for this directory ?
312-
* @param file
312+
* @param file file object
313313
* @return true if there is cache, false otherwise
314314
*/
315315
public boolean hasCacheForFile(File file) {
@@ -878,6 +878,7 @@ public void removeRepositories(Collection<String> repos) {
878878
* Set list of known repositories which match the list of directories.
879879
* @param repos list of repositories
880880
* @param dirs list of directories that might correspond to the repositories
881+
* @param interactive interactive mode flag
881882
*/
882883
public void invalidateRepositories(Collection<? extends RepositoryInfo> repos, List<String> dirs, boolean interactive) {
883884
if (repos != null && !repos.isEmpty() && dirs != null && !dirs.isEmpty()) {
@@ -910,6 +911,7 @@ public void invalidateRepositories(Collection<? extends RepositoryInfo> repos, L
910911
*
911912
* @param repos collection of repositories to invalidate.
912913
* If null or empty, the internal map of repositories will be cleared.
914+
* @param interactive interactive mode flag
913915
*/
914916
public void invalidateRepositories(Collection<? extends RepositoryInfo> repos, boolean interactive) {
915917
if (repos == null || repos.isEmpty()) {

opengrok-indexer/src/main/java/org/opengrok/indexer/history/PerforceRepository.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public boolean fileHasAnnotation(File file) {
121121
* Check if a given file is in the depot
122122
*
123123
* @param file The file to test
124+
* @param interactive interactive mode flag
124125
* @return true if the given file is in the depot, false otherwise
125126
*/
126127
public static boolean isInP4Depot(File file, boolean interactive) {

opengrok-indexer/src/main/java/org/opengrok/indexer/history/Repository.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ final void createCache(HistoryCache cache, String sinceRevision)
385385
* Check if this it the right repository type for the given file.
386386
*
387387
* @param file File to check if this is a repository for.
388+
* @param interactive is this run from interactive mode
388389
* @return true if this is the correct repository for this file/directory.
389390
*/
390391
abstract boolean isRepositoryFor(File file, boolean interactive);
@@ -401,7 +402,7 @@ public final boolean isRepositoryFor(File file) {
401402
/**
402403
* Determine parent of this repository.
403404
* @return parent
404-
* @throws java.io.IOException
405+
* @throws java.io.IOException I/O exception
405406
*/
406407
public final String determineParent() throws IOException {
407408
return determineParent(false);
@@ -415,7 +416,7 @@ public final String determineParent() throws IOException {
415416
/**
416417
* Determine branch of this repository.
417418
* @return branch
418-
* @throws java.io.IOException
419+
* @throws java.io.IOException I/O exception
419420
*/
420421
public final String determineBranch() throws IOException {
421422
return determineBranch(false);

0 commit comments

Comments
 (0)