Skip to content

Commit

Permalink
Fix javadoc a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 8, 2018
1 parent 857076e commit b7af708
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion reader/src/main/java/org/jline/reader/Completer.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
public interface Completer
{
/**
* Populates <i>candidates</i> with a list of possible completions for the <i>buffer</i>.
* Populates <i>candidates</i> with a list of possible completions for the <i>command line</i>.
*
* The list of candidates will be sorted and filtered by the LineReader, so that
* the list of candidates displayed to the user will usually be smaller than
Expand Down
4 changes: 4 additions & 0 deletions reader/src/main/java/org/jline/reader/LineReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ enum Option {
DELAY_LINE_WRAP,
AUTO_PARAM_SLASH(true),
AUTO_REMOVE_SLASH(true),
/** When hitting the <tab> key at the beginning of the line, insert a tabulation
* instead of completing. This is mainly useful when {@link #BRACKETED_PASTE} is
* disabled, so that copy/paste of indented text does not trigger completion.
*/
INSERT_TAB(true),
MOUSE,
DISABLE_HIGHLIGHTER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ public Collection<Completer> getCompleters() {
/**
* Perform a completion operation across all aggregated completers.
*
* The effect is similar to the following code:
* <blockquote><pre>{@code completers.forEach(c -> c.complete(reader, line, candidates));}</pre></blockquote>
*
* @see Completer#complete(LineReader, ParsedLine, List)
*/
public void complete(LineReader reader, final ParsedLine line, final List<Candidate> candidates) {
Objects.requireNonNull(line);
Objects.requireNonNull(candidates);

for (Completer completer : completers) {
completer.complete(reader, line, candidates);
}
completers.forEach(c -> c.complete(reader, line, candidates));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
* @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a>
* @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
* @since 2.3
* @deprecated use org.jline.builtins.Completers$FileNameCompleter instead
* @see org.jline.builtins.Completers$FileNameCompleter
*/
@Deprecated
public class FileNameCompleter implements Completer
{

Expand Down

0 comments on commit b7af708

Please sign in to comment.