Skip to content

Commit

Permalink
Issue #5086 Fix javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Bartel <janb@webtide.com>
  • Loading branch information
janbartel committed Dec 1, 2020
1 parent 115a72d commit 90e48ba
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public boolean test(Path p)
* MetaData
*
* Metadata about a file: Last modified time, file size and
* last file status (ADDED, CHANGED, DELETED)
* last file status (ADDED, CHANGED, DELETED, STABLE)
*/
static class MetaData
{
Expand Down Expand Up @@ -320,7 +320,7 @@ public void setScanInterval(int scanInterval)
schedule();
}

public void setScanDirs(List<File> dirs) throws IOException
public void setScanDirs(List<File> dirs)
{
if (isRunning())
throw new IllegalStateException("Scanner started");
Expand All @@ -341,9 +341,8 @@ public void setScanDirs(List<File> dirs) throws IOException
* Add a file to be scanned. The file must not be null, and must exist.
*
* @param p the Path of the file to scan.
* @throws IOException
*/
public void addFile(Path p) throws IOException
public void addFile(Path p)
{
if (isRunning())
throw new IllegalStateException("Scanner started");
Expand All @@ -353,7 +352,7 @@ public void addFile(Path p) throws IOException

File f = p.toFile();
if (!f.exists() || f.isDirectory())
throw new IllegalStateException("Not file or doesn't exist: " + f.getCanonicalPath());
throw new IllegalStateException("Not file or doesn't exist: " + p);

_scannables.putIfAbsent(p, null);
}
Expand All @@ -363,7 +362,6 @@ public void addFile(Path p) throws IOException
*
* @param p the directory to scan.
* @return an IncludeExcludeSet to which the caller can add PathMatcher patterns to match
* @throws IOException
*/
public IncludeExcludeSet<PathMatcher, Path> addDirectory(Path p)
{
Expand Down Expand Up @@ -820,6 +818,8 @@ private void reportBulkChanges(Set<String> filenames)

/**
* Call ScanCycleListeners with start of scan
*
* @param cycle scan count
*/
private void reportScanStart(int cycle)
{
Expand All @@ -839,6 +839,8 @@ private void reportScanStart(int cycle)

/**
* Call ScanCycleListeners with end of scan.
*
* @param cycle scan count
*/
private void reportScanEnd(int cycle)
{
Expand Down

0 comments on commit 90e48ba

Please sign in to comment.