Apache Nutch is an extensible and scalable web crawler
Address Yetus' comments: - remove tabs in Java code (added lines) - remove @author annotations in change context
Sebastian Nagelb845812d3e24
diff --git a/src/java/org/apache/nutch/crawl/AdaptiveFetchSchedule.java b/src/java/org/apache/nutch/crawl/AdaptiveFetchSchedule.javaindex c1b51bcbd..04a3a1303 100644--- a/src/java/org/apache/nutch/crawl/AdaptiveFetchSchedule.java+++ b/src/java/org/apache/nutch/crawl/AdaptiveFetchSchedule.java@@ -74,8 +74,6 @@ import org.slf4j.LoggerFactory;* the calculated re-fetch interval for a URL matching the hostname will not be* allowed to fall outside of the corresponding range, instead of the default* range.- *- * @author Andrzej Bialecki*/public class AdaptiveFetchSchedule extends AbstractFetchSchedule {diff --git a/src/java/org/apache/nutch/crawl/CrawlDbReader.java b/src/java/org/apache/nutch/crawl/CrawlDbReader.javaindex 2754c6d76..266c819b8 100644--- a/src/java/org/apache/nutch/crawl/CrawlDbReader.java+++ b/src/java/org/apache/nutch/crawl/CrawlDbReader.java@@ -92,9 +92,6 @@ import static java.nio.charset.StandardCharsets.UTF_8;/*** Read utility for the CrawlDB.- *- * @author Andrzej Bialecki- **/public class CrawlDbReader extends AbstractChecker implements Closeable {diff --git a/src/java/org/apache/nutch/crawl/MD5Signature.java b/src/java/org/apache/nutch/crawl/MD5Signature.javaindex 11e5e50a3..3824ec41f 100644--- a/src/java/org/apache/nutch/crawl/MD5Signature.java+++ b/src/java/org/apache/nutch/crawl/MD5Signature.java@@ -26,8 +26,6 @@ import org.apache.nutch.protocol.Content;* Default implementation of a page signature. It calculates an MD5 hash of the* raw binary content of a page. In case there is no content, it calculates a* hash from the page's URL.- *- * @author Andrzej Bialecki <[email protected]>*/public class MD5Signature extends Signature {diff --git a/src/java/org/apache/nutch/crawl/TextProfileSignature.java b/src/java/org/apache/nutch/crawl/TextProfileSignature.javaindex 64dd86ba7..63583a694 100644--- a/src/java/org/apache/nutch/crawl/TextProfileSignature.java+++ b/src/java/org/apache/nutch/crawl/TextProfileSignature.java@@ -62,8 +62,6 @@ import org.apache.nutch.util.StringUtil;* spaces, in the order of decreasing frequency.</li>* </ul>* This list is then submitted to an MD5 hash calculation.- *- * @author Andrzej Bialecki <[email protected]>*/public class TextProfileSignature extends Signature {diff --git a/src/java/org/apache/nutch/fetcher/Fetcher.java b/src/java/org/apache/nutch/fetcher/Fetcher.javaindex 0f5273e0d..cffd024a0 100644--- a/src/java/org/apache/nutch/fetcher/Fetcher.java+++ b/src/java/org/apache/nutch/fetcher/Fetcher.java@@ -94,8 +94,6 @@ import org.slf4j.LoggerFactory;* ready, FetcherThread-s will spin-wait until either some items become* available, or a timeout is reached (at which point the Fetcher will abort,* assuming the task is hung).- *- * @author Andrzej Bialecki*/public class Fetcher extends NutchTool implements Tool {diff --git a/src/java/org/apache/nutch/tools/CommonCrawlFormatJackson.java b/src/java/org/apache/nutch/tools/CommonCrawlFormatJackson.javaindex ae78bb67b..78fcd322f 100644--- a/src/java/org/apache/nutch/tools/CommonCrawlFormatJackson.java+++ b/src/java/org/apache/nutch/tools/CommonCrawlFormatJackson.java@@ -104,6 +104,6 @@ public class CommonCrawlFormatJackson extends AbstractCommonCrawlFormat {@Overrideprotected String generateJson() throws IOException {this.generator.flush();- return this.out.toString(StandardCharsets.UTF_8);+ return this.out.toString(StandardCharsets.UTF_8);}}diff --git a/src/java/org/apache/nutch/util/AbstractChecker.java b/src/java/org/apache/nutch/util/AbstractChecker.javaindex c49f980f2..0160bb8a8 100644--- a/src/java/org/apache/nutch/util/AbstractChecker.java+++ b/src/java/org/apache/nutch/util/AbstractChecker.java@@ -40,8 +40,6 @@ import crawlercommons.robots.BaseRobotRules;/*** Scaffolding class for the various Checker implementations. Can process cmdline input, stdin and TCP connections.- *- * @author Jurian Broertjes*/public abstract class AbstractChecker extends Configured implements Tool {diff --git a/src/java/org/apache/nutch/util/DumpFileUtil.java b/src/java/org/apache/nutch/util/DumpFileUtil.javaindex dd968682b..d664ac571 100644--- a/src/java/org/apache/nutch/util/DumpFileUtil.java+++ b/src/java/org/apache/nutch/util/DumpFileUtil.java@@ -146,5 +146,5 @@ public class DumpFileUtil {builder.append("Total filtered count: " + mimetypeCount + "\n");}return builder.toString();- }+ }}diff --git a/src/plugin/feed/src/java/org/apache/nutch/parse/feed/FeedParser.java b/src/plugin/feed/src/java/org/apache/nutch/parse/feed/FeedParser.javaindex 94f62fcd7..a444f4312 100644--- a/src/plugin/feed/src/java/org/apache/nutch/parse/feed/FeedParser.java+++ b/src/plugin/feed/src/java/org/apache/nutch/parse/feed/FeedParser.java@@ -57,16 +57,10 @@ import com.rometools.rome.feed.synd.SyndPerson;import com.rometools.rome.io.SyndFeedInput;/**+ * A RSS/ATOM Feed{@link Parser} that rapidly parses all referenced links and+ * content present in the feed.*- * @author dogacan- * @author mattmann* @since NUTCH-444- *- * <p>- * A new RSS/ATOM Feed{@link Parser} that rapidly parses all referenced- * links and content present in the feed.- * </p>- **/public class FeedParser implements Parser {diff --git a/src/plugin/lib-regex-filter/src/test/org/apache/nutch/urlfilter/api/RegexURLFilterBaseTest.java b/src/plugin/lib-regex-filter/src/test/org/apache/nutch/urlfilter/api/RegexURLFilterBaseTest.javaindex 6a8a46a71..d8158197a 100644--- a/src/plugin/lib-regex-filter/src/test/org/apache/nutch/urlfilter/api/RegexURLFilterBaseTest.java+++ b/src/plugin/lib-regex-filter/src/test/org/apache/nutch/urlfilter/api/RegexURLFilterBaseTest.java@@ -37,8 +37,6 @@ import static org.junit.jupiter.api.Assertions.fail;/*** JUnit based test of class <code>RegexURLFilterBase</code>.- *- * @author Jérôme Charron*/public abstract class RegexURLFilterBaseTest {diff --git a/src/plugin/parse-ext/src/java/org/apache/nutch/parse/ext/ExtParser.java b/src/plugin/parse-ext/src/java/org/apache/nutch/parse/ext/ExtParser.javaindex 2d478ce03..309a3bc56 100644--- a/src/plugin/parse-ext/src/java/org/apache/nutch/parse/ext/ExtParser.java+++ b/src/plugin/parse-ext/src/java/org/apache/nutch/parse/ext/ExtParser.java@@ -42,10 +42,7 @@ import com.nimbusds.jose.util.StandardCharset;/*** A wrapper that invokes external command to do real parsing job.- *- * @author John Xing*/-public class ExtParser implements Parser {private static final Logger LOG = LoggerFactorydiff --git a/src/plugin/protocol-file/src/java/org/apache/nutch/protocol/file/File.java b/src/plugin/protocol-file/src/java/org/apache/nutch/protocol/file/File.javaindex f697f2e73..b35964275 100644--- a/src/plugin/protocol-file/src/java/org/apache/nutch/protocol/file/File.java+++ b/src/plugin/protocol-file/src/java/org/apache/nutch/protocol/file/File.java@@ -42,8 +42,6 @@ import crawlercommons.robots.BaseRobotRules;* Configurable parameters are {@code file.content.limit} and* {@code file.crawl.parent} in nutch-default.xml defined under* "file properties" section.- *- * @author John Xing*/public class File implements Protocol {diff --git a/src/plugin/protocol-file/src/java/org/apache/nutch/protocol/file/FileResponse.java b/src/plugin/protocol-file/src/java/org/apache/nutch/protocol/file/FileResponse.javaindex d4f7437c3..266aab165 100644--- a/src/plugin/protocol-file/src/java/org/apache/nutch/protocol/file/FileResponse.java+++ b/src/plugin/protocol-file/src/java/org/apache/nutch/protocol/file/FileResponse.java@@ -48,8 +48,6 @@ import org.apache.tika.Tika;* are just treated as individual files.** (4) No funcy POSIX file attributes yet. May never need?- *- * @author John Xing*/public class FileResponse {diff --git a/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/Client.java b/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/Client.javaindex a556ab4cd..f83b805de 100644--- a/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/Client.java+++ b/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/Client.java@@ -59,8 +59,6 @@ import org.apache.commons.net.ftp.FTPReply;* About exceptions: Some specific exceptions are re-thrown as one of* FtpException*.java In fact, each function throws FtpException*.java or pass* IOException.- *- * @author John Xing*/public class Client extends FTP {diff --git a/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpBasicAuthentication.java b/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpBasicAuthentication.javaindex 4bc1aa4d9..61d161749 100644--- a/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpBasicAuthentication.java+++ b/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpBasicAuthentication.java@@ -36,8 +36,6 @@ import org.slf4j.LoggerFactory;* Implementation of RFC 2617 Basic Authentication. Usernames and passwords are* stored in standard Nutch configuration files using the following properties:* http.auth.basic.<realm>.user http.auth.basic.<realm>.pass- *- * @author Matt Tencati*/public class HttpBasicAuthentication implements HttpAuthentication,Configurable {diff --git a/src/plugin/urlnormalizer-regex/src/java/org/apache/nutch/net/urlnormalizer/regex/RegexURLNormalizer.java b/src/plugin/urlnormalizer-regex/src/java/org/apache/nutch/net/urlnormalizer/regex/RegexURLNormalizer.javaindex 6c3cba09a..2aeb722b2 100644--- a/src/plugin/urlnormalizer-regex/src/java/org/apache/nutch/net/urlnormalizer/regex/RegexURLNormalizer.java+++ b/src/plugin/urlnormalizer-regex/src/java/org/apache/nutch/net/urlnormalizer/regex/RegexURLNormalizer.java@@ -61,9 +61,6 @@ import org.xml.sax.InputSource;* This class also supports different rules depending on the scope. Please see* the javadoc in {@link org.apache.nutch.net.URLNormalizers} for more details.* </p>- *- * @author Luke Baker- * @author Andrzej Bialecki*/public class RegexURLNormalizer extends Configured implements URLNormalizer {diff --git a/src/plugin/urlnormalizer-slash/src/java/org/apache/nutch/net/urlnormalizer/slash/SlashURLNormalizer.java b/src/plugin/urlnormalizer-slash/src/java/org/apache/nutch/net/urlnormalizer/slash/SlashURLNormalizer.javaindex 28a6a238e..62a6370ee 100644--- a/src/plugin/urlnormalizer-slash/src/java/org/apache/nutch/net/urlnormalizer/slash/SlashURLNormalizer.java+++ b/src/plugin/urlnormalizer-slash/src/java/org/apache/nutch/net/urlnormalizer/slash/SlashURLNormalizer.java@@ -37,7 +37,7 @@ import org.slf4j.Logger;import org.slf4j.LoggerFactory;/**- * @author [email protected]+ * Configurable normalization of trailing slashes in URLs.*/public class SlashURLNormalizer implements URLNormalizer {@@ -97,7 +97,6 @@ public class SlashURLNormalizer implements URLNormalizer {public void setConf(Configuration conf) {this.conf = conf;- // get the extensions for domain urlfilterString pluginName = "urlnormalizer-slash";Extension[] extensions = PluginRepository.get(conf).getExtensionPoint(URLNormalizer.class.getName()).getExtensions();