From 90e48ba0b5d6fa58aafbcb89d333e436f5455261 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Tue, 1 Dec 2020 17:44:33 +0100 Subject: [PATCH] Issue #5086 Fix javadoc Signed-off-by: Jan Bartel --- .../main/java/org/eclipse/jetty/util/Scanner.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java b/jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java index 13cf41dcb424..e2b6dfa8e89f 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java @@ -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 { @@ -320,7 +320,7 @@ public void setScanInterval(int scanInterval) schedule(); } - public void setScanDirs(List dirs) throws IOException + public void setScanDirs(List dirs) { if (isRunning()) throw new IllegalStateException("Scanner started"); @@ -341,9 +341,8 @@ public void setScanDirs(List 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"); @@ -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); } @@ -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 addDirectory(Path p) { @@ -820,6 +818,8 @@ private void reportBulkChanges(Set filenames) /** * Call ScanCycleListeners with start of scan + * + * @param cycle scan count */ private void reportScanStart(int cycle) { @@ -839,6 +839,8 @@ private void reportScanStart(int cycle) /** * Call ScanCycleListeners with end of scan. + * + * @param cycle scan count */ private void reportScanEnd(int cycle) {