Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2372 Fixing the errors in documentation

Omkar2089561985f17998d
diff --git a/src/java/org/apache/nutch/crawl/FetchSchedule.java b/src/java/org/apache/nutch/crawl/FetchSchedule.java
index 10ee185a4..1d4961f43 100755
--- a/src/java/org/apache/nutch/crawl/FetchSchedule.java
+++ b/src/java/org/apache/nutch/crawl/FetchSchedule.java
@@ -81,7 +81,7 @@ public interface FetchSchedule extends Configurable {
*
* @param modifiedTime
* last time the content was modified. This information comes from
- * the protocol implementations, or is set to < 0 if not available.
+ * the protocol implementations, or is set to &lt; 0 if not available.
* Most FetchSchedule implementations should update the value in @see
* CrawlDatum to this value.
*
@@ -166,7 +166,7 @@ public interface FetchSchedule extends Configurable {
* selection process based on scores. The default implementation checks
* <code>fetchTime</code>, if it is higher than the curTime it returns false,
* and true otherwise. It will also check that fetchTime is not too remote
- * (more than <code>maxInterval</code), in which case it lowers the interval
+ * (more than <code>maxInterval</code>), in which case it lowers the interval
* and returns true.
*
* @param url
diff --git a/src/java/org/apache/nutch/crawl/Generator.java b/src/java/org/apache/nutch/crawl/Generator.java
index 60ce7ab4c..677cd2ffb 100644
--- a/src/java/org/apache/nutch/crawl/Generator.java
+++ b/src/java/org/apache/nutch/crawl/Generator.java
@@ -172,7 +172,7 @@ public class Generator extends NutchTool implements Tool {
public void close() {
}
- /** Select & invert subset due for fetch. */
+ /** Select and invert subset due for fetch. */
public void map(Text key, CrawlDatum value,
OutputCollector<FloatWritable, SelectorEntry> output, Reporter reporter)
throws IOException {
diff --git a/src/java/org/apache/nutch/crawl/Injector.java b/src/java/org/apache/nutch/crawl/Injector.java
index 5d84c2a79..6420e0fa0 100644
--- a/src/java/org/apache/nutch/crawl/Injector.java
+++ b/src/java/org/apache/nutch/crawl/Injector.java
@@ -61,7 +61,6 @@ import java.util.Random;
* CrawlDb. Useful for bootstrapping a Nutch crawl. The URL files contain one
* URL per line, optionally followed by custom metadata separated by tabs with
* the metadata key separated from the corresponding value by '='.
- * </p>
* <p>
* Note, that some metadata keys are reserved:
* <dl>
@@ -73,14 +72,12 @@ import java.util.Random;
* <dd>allows to set a custom fetch interval for a specific URL that is not
* changed by AdaptiveFetchSchedule</dd>
* </dl>
- * </p>
* <p>
* Example:
*
* <pre>
* http://www.nutch.org/ \t nutch.score=10 \t nutch.fetchInterval=2592000 \t userType=open_source
* </pre>
- * </p>
**/
public class Injector extends NutchTool implements Tool {
private static final Logger LOG = LoggerFactory
@@ -278,13 +275,13 @@ public class Injector extends NutchTool implements Tool {
* Merge the input records as per rules below :
*
* <pre>
- * 1. If there is ONLY new injected record ==> emit injected record
- * 2. If there is ONLY old record ==> emit existing record
+ * 1. If there is ONLY new injected record ==&gt; emit injected record
+ * 2. If there is ONLY old record ==&gt; emit existing record
* 3. If BOTH new and old records are present:
- * (a) If 'overwrite' is true ==> emit injected record
+ * (a) If 'overwrite' is true ==&gt; emit injected record
* (b) If 'overwrite' is false :
- * (i) If 'update' is false ==> emit existing record
- * (ii) If 'update' is true ==> update existing record and emit it
+ * (i) If 'update' is false ==&gt; emit existing record
+ * (ii) If 'update' is true ==&gt; update existing record and emit it
* </pre>
*
* For more details @see NUTCH-1405
diff --git a/src/java/org/apache/nutch/hostdb/ReadHostDb.java b/src/java/org/apache/nutch/hostdb/ReadHostDb.java
index 17e135a87..54649e46e 100644
--- a/src/java/org/apache/nutch/hostdb/ReadHostDb.java
+++ b/src/java/org/apache/nutch/hostdb/ReadHostDb.java
@@ -55,7 +55,7 @@ import org.apache.commons.jexl2.JexlEngine;
import org.apache.commons.jexl2.MapContext;
/**
- * @see http://commons.apache.org/proper/commons-jexl/reference/syntax.html
+ * @see <a href='http://commons.apache.org/proper/commons-jexl/reference/syntax.html'>Commons</a>
*/
public class ReadHostDb extends Configured implements Tool {
diff --git a/src/java/org/apache/nutch/hostdb/UpdateHostDbMapper.java b/src/java/org/apache/nutch/hostdb/UpdateHostDbMapper.java
index 593bd1554..69df4d17f 100644
--- a/src/java/org/apache/nutch/hostdb/UpdateHostDbMapper.java
+++ b/src/java/org/apache/nutch/hostdb/UpdateHostDbMapper.java
@@ -65,8 +65,7 @@ public class UpdateHostDbMapper
public void close() {}
/**
- * @param JobConf
- * @return void
+ * @param job
*/
public void configure(JobConf job) {
readingCrawlDb = job.getBoolean("hostdb.reading.crawldb", false);
@@ -82,7 +81,7 @@ public class UpdateHostDbMapper
/**
* Filters and or normalizes the input URL
*
- * @param String
+ * @param url
* @return String
*/
protected String filterNormalize(String url) {
@@ -110,11 +109,10 @@ public class UpdateHostDbMapper
* Mapper ingesting records from the HostDB, CrawlDB and plaintext host
* scores file. Statistics and scores are passed on.
*
- * @param Text key
- * @param Writable value
- * @param OutputCollector<Text,NutchWritable> output
- * @param Reporter reporter
- * @return void
+ * @param key
+ * @param value
+ * @param output
+ * @param reporter
*/
public void map(Text key, Writable value,
OutputCollector<Text,NutchWritable> output, Reporter reporter)
diff --git a/src/java/org/apache/nutch/hostdb/UpdateHostDbReducer.java b/src/java/org/apache/nutch/hostdb/UpdateHostDbReducer.java
index 3cd38fab4..6ebe3d34f 100644
--- a/src/java/org/apache/nutch/hostdb/UpdateHostDbReducer.java
+++ b/src/java/org/apache/nutch/hostdb/UpdateHostDbReducer.java
@@ -75,7 +75,7 @@ public class UpdateHostDbReducer
/**
* Configures the thread pool and prestarts all resolver threads.
*
- * @param JobConf
+ * @param job
*/
public void configure(JobConf job) {
purgeFailedHostsThreshold = job.getInt(UpdateHostDb.HOSTDB_PURGE_FAILED_HOSTS_THRESHOLD, -1);
@@ -359,7 +359,7 @@ public class UpdateHostDbReducer
/**
* Determines whether a record should be checked.
*
- * @param HostDatum
+ * @param datum
* @return boolean
*/
protected boolean shouldCheck(HostDatum datum) {
@@ -385,7 +385,7 @@ public class UpdateHostDbReducer
/**
* Determines whether a record is eligible for recheck.
*
- * @param HostDatum
+ * @param datum
* @return boolean
*/
protected boolean isEligibleForCheck(HostDatum datum) {
diff --git a/src/java/org/apache/nutch/net/URLNormalizers.java b/src/java/org/apache/nutch/net/URLNormalizers.java
index 6541f9ddc..e8740e9e1 100644
--- a/src/java/org/apache/nutch/net/URLNormalizers.java
+++ b/src/java/org/apache/nutch/net/URLNormalizers.java
@@ -56,8 +56,8 @@ import org.apache.nutch.util.ObjectCache;
* <p>
* You can define a set of contexts (or scopes) in which normalizers may be
* called. Each scope can have its own list of normalizers (defined in
- * "urlnormalizer.scope.<scope_name>" property) and its own order (defined in
- * "urlnormalizer.order.<scope_name>" property). If any of these properties are
+ * "urlnormalizer.scope.&lt;scope_name&gt;" property) and its own order (defined in
+ * "urlnormalizer.order.&lt;scope_name&gt;" property). If any of these properties are
* missing, default settings are used for the global scope.
* </p>
* <p>
diff --git a/src/java/org/apache/nutch/parse/ParseResult.java b/src/java/org/apache/nutch/parse/ParseResult.java
index 0e3b239ce..15b46ac42 100644
--- a/src/java/org/apache/nutch/parse/ParseResult.java
+++ b/src/java/org/apache/nutch/parse/ParseResult.java
@@ -150,7 +150,7 @@ public class ParseResult implements Iterable<Map.Entry<Text, Parse>> {
/**
* Remove all results where status is not successful (as determined by
- * </code>ParseStatus#isSuccess()</code>). Note that effects of this operation
+ * <code>ParseStatus#isSuccess()</code>). Note that effects of this operation
* cannot be reversed.
*/
public void filter() {
diff --git a/src/java/org/apache/nutch/parse/ParserChecker.java b/src/java/org/apache/nutch/parse/ParserChecker.java
index dbfa5264c..6b1d764dc 100644
--- a/src/java/org/apache/nutch/parse/ParserChecker.java
+++ b/src/java/org/apache/nutch/parse/ParserChecker.java
@@ -58,7 +58,7 @@ import org.apache.nutch.util.StringUtil;
* <li><tt>Outlinks</tt>: associated with the URL</li>
* <li><tt>Content Metadata</tt>: such as <i>X-AspNet-Version</i>, <i>Date</i>,
* <i>Content-length</i>, <i>servedBy</i>, <i>Content-Type</i>,
- * <i>Cache-Control</>, etc.</li>
+ * <i>Cache-Control</i>, etc.</li>
* <li><tt>Parse Metadata</tt>: such as <i>CharEncodingForConversion</i>,
* <i>OriginalCharEncoding</i>, <i>language</i>, etc.</li>
* <li><tt>ParseText</tt>: The page parse text which varies in length depdnecing
diff --git a/src/java/org/apache/nutch/plugin/PluginRepository.java b/src/java/org/apache/nutch/plugin/PluginRepository.java
index 6ef3147b7..50daa57fd 100644
--- a/src/java/org/apache/nutch/plugin/PluginRepository.java
+++ b/src/java/org/apache/nutch/plugin/PluginRepository.java
@@ -63,7 +63,7 @@ public class PluginRepository {
.getLogger(MethodHandles.lookup().lookupClass());
/**
- * @throws PluginRuntimeException
+ * @throws RuntimeException
* @see java.lang.Object#Object()
*/
public PluginRepository(Configuration conf) throws RuntimeException {
diff --git a/src/java/org/apache/nutch/segment/SegmentMerger.java b/src/java/org/apache/nutch/segment/SegmentMerger.java
index 4894c20fd..6a44ba61c 100644
--- a/src/java/org/apache/nutch/segment/SegmentMerger.java
+++ b/src/java/org/apache/nutch/segment/SegmentMerger.java
@@ -73,9 +73,7 @@ import org.apache.nutch.util.NutchJob;
/**
* This tool takes several segments and merges their data together. Only the
* latest versions of data is retained.
- * <p>
* Optionally, you can apply current URLFilters to remove prohibited URL-s.
- * </p>
* <p>
* Also, it's possible to slice the resulting segment into chunks of fixed size.
* </p>
@@ -103,7 +101,6 @@ import org.apache.nutch.util.NutchJob;
* However, this is NOT the same as de-duplication, which in addition removes
* identical content found at different URL-s. In other words, running
* DeleteDuplicates is still necessary.
- * </p>
* <p>
* For some types of data (especially ParseText) it's not possible to determine
* which version is really older. Therefore the tool always uses segment names
@@ -121,7 +118,6 @@ import org.apache.nutch.util.NutchJob;
* afresh. This tool doesn't use existing indexes in any way, so if you plan to
* merge segments you don't have to index them prior to merging.
*
- *
* @author Andrzej Bialecki
*/
public class SegmentMerger extends Configured implements Tool,
diff --git a/src/java/org/apache/nutch/segment/SegmentPart.java b/src/java/org/apache/nutch/segment/SegmentPart.java
index 84247e405..82f215b5b 100644
--- a/src/java/org/apache/nutch/segment/SegmentPart.java
+++ b/src/java/org/apache/nutch/segment/SegmentPart.java
@@ -53,7 +53,7 @@ public class SegmentPart {
*
* @param split
* @return A {@link SegmentPart} resultant from a {@link FileSplit}.
- * @throws Exception
+ * @throws IOException
*/
public static SegmentPart get(FileSplit split) throws IOException {
return get(split.getPath().toString());
diff --git a/src/java/org/apache/nutch/service/impl/ConfManagerImpl.java b/src/java/org/apache/nutch/service/impl/ConfManagerImpl.java
index 0c08ce4c9..d75df2e4d 100644
--- a/src/java/org/apache/nutch/service/impl/ConfManagerImpl.java
+++ b/src/java/org/apache/nutch/service/impl/ConfManagerImpl.java
@@ -86,7 +86,7 @@ public class ConfManagerImpl implements ConfManager {
/**
* Created a new configuration based on the values provided.
- * @param NutchConfig
+ * @param nutchConfig
* @return String - confId
*/
public String create(NutchConfig nutchConfig) {
diff --git a/src/java/org/apache/nutch/tools/AbstractCommonCrawlFormat.java b/src/java/org/apache/nutch/tools/AbstractCommonCrawlFormat.java
index b99a40fa4..21fa23ad5 100644
--- a/src/java/org/apache/nutch/tools/AbstractCommonCrawlFormat.java
+++ b/src/java/org/apache/nutch/tools/AbstractCommonCrawlFormat.java
@@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory;
import com.ibm.icu.text.SimpleDateFormat;
/**
- * Abstract class that implements {@see CommonCrawlFormat} interface.
+ * Abstract class that implements { @see org.apache.nutch.tools.CommonCrawlFormat } interface.
*
*/
public abstract class AbstractCommonCrawlFormat implements CommonCrawlFormat {
diff --git a/src/java/org/apache/nutch/tools/CommonCrawlDataDumper.java b/src/java/org/apache/nutch/tools/CommonCrawlDataDumper.java
index 872e7cf5d..533715686 100644
--- a/src/java/org/apache/nutch/tools/CommonCrawlDataDumper.java
+++ b/src/java/org/apache/nutch/tools/CommonCrawlDataDumper.java
@@ -99,12 +99,12 @@ import com.ibm.icu.text.SimpleDateFormat;
* the response body truncated for readability. This document must be encoded
* using CBOR and should be compressed with gzip after encoding. The timestamped
* URL key for these records' keys follows the same layout as the media file
- * directory structure, with underscores in place of directory separators. </li>
+ * directory structure, with underscores in place of directory separators.
* </p>
* <p>
* Thus, the timestamped url key for the record is provided below followed by an
* example record:
- * <p/>
+ * </p>
* <pre>
* {@code
* com_somepage_33a3e36bbef59c2a5242c2ccee59239ab30d51f3_1411623696000
@@ -154,13 +154,11 @@ import com.ibm.icu.text.SimpleDateFormat;
* }
* }
* </pre>
- * <p/>
* <p>
* Upon successful completion the tool displays a very convenient JSON snippet
* detailing the mimetype classifications and the counts of documents which fall
* into those classifications. An example is as follows:
* </p>
- * <p/>
* <pre>
* {@code
* INFO: File Types:
diff --git a/src/java/org/apache/nutch/tools/CommonCrawlFormat.java b/src/java/org/apache/nutch/tools/CommonCrawlFormat.java
index 0834d9546..3eb19b43f 100644
--- a/src/java/org/apache/nutch/tools/CommonCrawlFormat.java
+++ b/src/java/org/apache/nutch/tools/CommonCrawlFormat.java
@@ -35,9 +35,7 @@ import java.util.List;
public interface CommonCrawlFormat extends Closeable {
/**
- *
- * @param mapAll If {@code true} maps all metdata on the JSON structure.
- * @return the JSON data
+ * @throws IOException
*/
//public String getJsonData(boolean mapAll) throws IOException;
public String getJsonData() throws IOException;
diff --git a/src/java/org/apache/nutch/tools/CommonCrawlFormatFactory.java b/src/java/org/apache/nutch/tools/CommonCrawlFormatFactory.java
index 881416877..72b24f58a 100644
--- a/src/java/org/apache/nutch/tools/CommonCrawlFormatFactory.java
+++ b/src/java/org/apache/nutch/tools/CommonCrawlFormatFactory.java
@@ -24,20 +24,20 @@ import org.apache.nutch.metadata.Metadata;
import org.apache.nutch.protocol.Content;
/**
- * Factory class that creates new {@see CommonCrawlFormat} objects (a.k.a. formatter) that map crawled files to CommonCrawl format.
+ * Factory class that creates new {@link org.apache.nutch.tools.CommonCrawlFormat CommonCrawlFormat} objects (a.k.a. formatter) that map crawled files to CommonCrawl format.
*
*/
public class CommonCrawlFormatFactory {
/**
- * Returns a new instance of a {@see CommonCrawlFormat} object specifying the type of formatter.
+ * Returns a new instance of a {@link org.apache.nutch.tools.CommonCrawlFormat CommonCrawlFormat} object specifying the type of formatter.
* @param formatType the type of formatter to be created.
* @param url the url.
* @param content the content.
* @param metadata the metadata.
* @param nutchConf the configuration.
* @param config the CommonCrawl output configuration.
- * @return the new {@see CommonCrawlFormat} object.
+ * @return the new {@link org.apache.nutch.tools.CommonCrawlFormat CommonCrawlFormat} object.
* @throws IOException If any I/O error occurs.
* @deprecated
*/
diff --git a/src/java/org/apache/nutch/tools/CommonCrawlFormatSimple.java b/src/java/org/apache/nutch/tools/CommonCrawlFormatSimple.java
index a1aaa4473..9e934d37a 100644
--- a/src/java/org/apache/nutch/tools/CommonCrawlFormatSimple.java
+++ b/src/java/org/apache/nutch/tools/CommonCrawlFormatSimple.java
@@ -24,7 +24,8 @@ import org.apache.nutch.metadata.Metadata;
import org.apache.nutch.protocol.Content;
/**
- * This class provides methods to map crawled data on JSON using a {@see StringBuilder} object.
+ * This class provides methods to map crawled data on JSON using a StringBuilder object.
+ * @see <a href='https://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html'>StringBuilder</a>
*
*/
public class CommonCrawlFormatSimple extends AbstractCommonCrawlFormat {
diff --git a/src/java/org/apache/nutch/tools/FileDumper.java b/src/java/org/apache/nutch/tools/FileDumper.java
index 94c37f578..53e6be47a 100644
--- a/src/java/org/apache/nutch/tools/FileDumper.java
+++ b/src/java/org/apache/nutch/tools/FileDumper.java
@@ -58,10 +58,8 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
- * <p>
* The file dumper tool enables one to reverse generate the raw content from
* Nutch segment data directories.
- * </p>
* <p>
* The tool has a number of immediate uses:
* <ol>
@@ -71,12 +69,10 @@ import org.slf4j.LoggerFactory;
* metadata, this can be handy for providing a provenance trail for your crawl
* data.</li>
* </ol>
- * </p>
* <p>
* Upon successful completion the tool displays a very convenient JSON snippet
* detailing the mimetype classifications and the counts of documents which fall
* into those classifications. An example is as follows:
- * </p>
*
* <pre>
* {@code
@@ -109,7 +105,7 @@ import org.slf4j.LoggerFactory;
* In the case above, the tool would have been run with the <b>-mimeType
* image/png image/jpeg image/vnd.microsoft.icon video/quicktime image/gif</b>
* flag and corresponding values activated.
- *
+ * </p>
*/
public class FileDumper {
diff --git a/src/java/org/apache/nutch/tools/arc/ArcRecordReader.java b/src/java/org/apache/nutch/tools/arc/ArcRecordReader.java
index 03f1f3790..9b5398b1b 100644
--- a/src/java/org/apache/nutch/tools/arc/ArcRecordReader.java
+++ b/src/java/org/apache/nutch/tools/arc/ArcRecordReader.java
@@ -35,23 +35,22 @@ import org.apache.hadoop.util.ReflectionUtils;
import org.apache.hadoop.util.StringUtils;
/**
- * <p>
* The <code>ArchRecordReader</code> class provides a record reader which reads
* records from arc files.
- * </p>
- *
* <p>
* Arc files are essentially tars of gzips. Each record in an arc file is a
* compressed gzip. Multiple records are concatenated together to form a
- * complete arc. For more information on the arc file format see {@link http
- * ://www.archive.org/web/researcher/ArcFileFormat.php } .
+ * complete arc.</p>
+ * <p>For more information on the arc file format
+ * @see <a href='http://www.archive.org/web/researcher/ArcFileFormat.php'>ArcFileFormat</a>.
* </p>
*
* <p>
* Arc files are used by the internet archive and grub projects.
* </p>
*
- * see {@link http://www.archive.org/ } see {@link http://www.grub.org/ }
+ * @see <a href='http://www.archive.org/'>archive.org</a>
+ * @see <a href='http://www.grub.org/'>grub.org</a>
*/
public class ArcRecordReader implements RecordReader<Text, BytesWritable> {
diff --git a/src/java/org/apache/nutch/util/EncodingDetector.java b/src/java/org/apache/nutch/util/EncodingDetector.java
index 87b26cb48..ba3620529 100644
--- a/src/java/org/apache/nutch/util/EncodingDetector.java
+++ b/src/java/org/apache/nutch/util/EncodingDetector.java
@@ -49,7 +49,6 @@ import com.ibm.icu.text.CharsetMatch;
* <li>Taking a set of clues and making a "best guess" as to the "real"
* encoding.</li>
* </ol>
- * </p>
*
* <p>
* A caller will often have some extra information about what the encoding might
@@ -60,7 +59,7 @@ import com.ibm.icu.text.CharsetMatch;
* <li>Run step (1) to generate a set of auto-detected clues;</li>
* <li>Combine these clues with the caller-dependent "extra clues" available;</li>
* <li>Run step (2) to guess what the most probable answer is.</li>
- * </p>
+ * </ul>
*/
public class EncodingDetector {
@@ -319,7 +318,7 @@ public class EncodingDetector {
/**
* Parse the character encoding from the specified content type header. If the
* content type is null, or there is no explicit character encoding,
- * <code>null</code> is returned. <br />
+ * <code>null</code> is returned. <br>
* This method was copied from org.apache.catalina.util.RequestUtil, which is
* licensed under the Apache License, Version 2.0 (the "License").
*
diff --git a/src/java/org/apache/nutch/util/LockUtil.java b/src/java/org/apache/nutch/util/LockUtil.java
index f453ac130..5cfd2e386 100644
--- a/src/java/org/apache/nutch/util/LockUtil.java
+++ b/src/java/org/apache/nutch/util/LockUtil.java
@@ -64,7 +64,7 @@ public class LockUtil {
* Create a lock file.
*
* @param conf
- * configuration to find the {@link FileSystem} {@link lockFile}
+ * configuration to find the {@link org.apache.hadoop.fs.FileSystem FileSystem} lockFile
* belongs to
* @param lockFile
* name of the lock file
@@ -109,7 +109,7 @@ public class LockUtil {
* this method simply removes any file with a given name.
*
* @param conf
- * configuration to find the {@link FileSystem} {@link lockFile}
+ * configuration to find the {@link org.apache.hadoop.fs.FileSystem FileSystem} lockFile
* belongs to
* @param lockFile
* lock file name
diff --git a/src/java/org/apache/nutch/util/MimeUtil.java b/src/java/org/apache/nutch/util/MimeUtil.java
index c1d111de0..7e8fe7d3f 100644
--- a/src/java/org/apache/nutch/util/MimeUtil.java
+++ b/src/java/org/apache/nutch/util/MimeUtil.java
@@ -227,8 +227,8 @@ public final class MimeUtil {
* method.
*
* @param url
- * A string representation of the document {@link URL} to sense the
- * {@link MimeType} for.
+ * A string representation of the document URL to sense the
+ * {@link org.apache.tika.mime.MimeType MimeType} for.
* @return An appropriate {@link MimeType}, identified from the given Document
* url in string form.
*/
diff --git a/src/java/org/apache/nutch/util/PrefixStringMatcher.java b/src/java/org/apache/nutch/util/PrefixStringMatcher.java
index e323b6753..6ca48c8b7 100644
--- a/src/java/org/apache/nutch/util/PrefixStringMatcher.java
+++ b/src/java/org/apache/nutch/util/PrefixStringMatcher.java
@@ -70,8 +70,8 @@ public class PrefixStringMatcher extends TrieStringMatcher {
}
/**
- * Returns the shortest prefix of <code>input<code> that is matched,
- * or <code>null<code> if no match exists.
+ * Returns the shortest prefix of <code>input</code> that is matched,
+ * or <code>null</code> if no match exists.
*/
public String shortestMatch(String input) {
TrieNode node = root;
@@ -86,8 +86,8 @@ public class PrefixStringMatcher extends TrieStringMatcher {
}
/**
- * Returns the longest prefix of <code>input<code> that is matched,
- * or <code>null<code> if no match exists.
+ * Returns the longest prefix of <code>input</code> that is matched,
+ * or <code>null</code> if no match exists.
*/
public String longestMatch(String input) {
TrieNode node = root;
diff --git a/src/java/org/apache/nutch/util/SuffixStringMatcher.java b/src/java/org/apache/nutch/util/SuffixStringMatcher.java
index a967c0177..6e070b935 100644
--- a/src/java/org/apache/nutch/util/SuffixStringMatcher.java
+++ b/src/java/org/apache/nutch/util/SuffixStringMatcher.java
@@ -65,8 +65,8 @@ public class SuffixStringMatcher extends TrieStringMatcher {
}
/**
- * Returns the shortest suffix of <code>input<code> that is matched,
- * or <code>null<code> if no match exists.
+ * Returns the shortest suffix of <code>input</code> that is matched,
+ * or <code>null</code> if no match exists.
*/
public String shortestMatch(String input) {
TrieNode node = root;
@@ -81,8 +81,8 @@ public class SuffixStringMatcher extends TrieStringMatcher {
}
/**
- * Returns the longest suffix of <code>input<code> that is matched,
- * or <code>null<code> if no match exists.
+ * Returns the longest suffix of <code>input</code> that is matched,
+ * or <code>null</code> if no match exists.
*/
public String longestMatch(String input) {
TrieNode node = root;
diff --git a/src/java/org/apache/nutch/util/TableUtil.java b/src/java/org/apache/nutch/util/TableUtil.java
index 68ded699f..e6ccbbc47 100644
--- a/src/java/org/apache/nutch/util/TableUtil.java
+++ b/src/java/org/apache/nutch/util/TableUtil.java
@@ -33,7 +33,7 @@ public class TableUtil {
* E.g. "http://bar.foo.com:8983/to/index.html?a=b" becomes
* "com.foo.bar:8983:http/to/index.html?a=b".
*
- * @param url
+ * @param urlString
* url to be reversed
* @return Reversed url
* @throws MalformedURLException
@@ -111,7 +111,7 @@ public class TableUtil {
/**
* Given a reversed url, returns the reversed host E.g
- * "com.foo.bar:http:8983/to/index.html?a=b" -> "com.foo.bar"
+ * "com.foo.bar:http:8983/to/index.html?a=b" -&gt; "com.foo.bar"
*
* @param reversedUrl
* Reversed url
diff --git a/src/java/org/apache/nutch/util/TimingUtil.java b/src/java/org/apache/nutch/util/TimingUtil.java
index c4af35683..77b09d986 100644
--- a/src/java/org/apache/nutch/util/TimingUtil.java
+++ b/src/java/org/apache/nutch/util/TimingUtil.java
@@ -29,7 +29,7 @@ public class TimingUtil {
* @param end
* The end of the time period
* @return a string of the form "XhYmZs" when the elapsed time is X hours, Y
- * minutes and Z seconds or null if start > end.
+ * minutes and Z seconds or null if start &gt; end.
*/
public static String elapsedTime(long start, long end) {
if (start > end) {
diff --git a/src/java/org/apache/nutch/util/TrieStringMatcher.java b/src/java/org/apache/nutch/util/TrieStringMatcher.java
index 32e604787..95086fe19 100644
--- a/src/java/org/apache/nutch/util/TrieStringMatcher.java
+++ b/src/java/org/apache/nutch/util/TrieStringMatcher.java
@@ -186,15 +186,15 @@ public abstract class TrieStringMatcher {
public abstract boolean matches(String input);
/**
- * Returns the shortest substring of <code>input<code> that is
- * matched by a pattern in the trie, or <code>null<code> if no match
+ * Returns the shortest substring of <code>input</code> that is
+ * matched by a pattern in the trie, or <code>null</code> if no match
* exists.
*/
public abstract String shortestMatch(String input);
/**
- * Returns the longest substring of <code>input<code> that is
- * matched by a pattern in the trie, or <code>null<code> if no match
+ * Returns the longest substring of <code>input</code> that is
+ * matched by a pattern in the trie, or <code>null</code> if no match
* exists.
*/
public abstract String longestMatch(String input);
diff --git a/src/java/org/apache/nutch/util/URLUtil.java b/src/java/org/apache/nutch/util/URLUtil.java
index 3e696cb49..08f5236b2 100644
--- a/src/java/org/apache/nutch/util/URLUtil.java
+++ b/src/java/org/apache/nutch/util/URLUtil.java
@@ -248,61 +248,42 @@ public class URLUtil {
}
/**
- * <p>
* Given two urls, a src and a destination of a redirect, it returns the
* representative url.
* <p>
- *
- * <p>
* This method implements an extended version of the algorithm used by the
* Yahoo! Slurp crawler described here:<br>
- * <a href=
- * "http://help.yahoo.com/l/nz/yahooxtra/search/webcrawler/slurp-11.html"> How
+ * <a href="http://help.yahoo.com/l/nz/yahooxtra/search/webcrawler/slurp-11.html"> How
* does the Yahoo! webcrawler handle redirects?</a> <br>
* <br>
- * <ol>
+ * <ul>
* <li>Choose target url if either url is malformed.</li>
* <li>If different domains the keep the destination whether or not the
* redirect is temp or perm</li>
- * <ul>
- * <li>a.com -> b.com*</li>
- * </ul>
+ * <li>a.com -&gt; b.com*</li>
* <li>If the redirect is permanent and the source is root, keep the source.</li>
- * <ul>
- * <li>*a.com -> a.com?y=1 || *a.com -> a.com/xyz/index.html</li>
- * </ul>
+ * <li>*a.com -&gt; a.com?y=1 || *a.com -&gt; a.com/xyz/index.html</li>
* <li>If the redirect is permanent and the source is not root and the
* destination is root, keep the destination</li>
- * <ul>
- * <li>a.com/xyz/index.html -> a.com*</li>
- * </ul>
+ * <li>a.com/xyz/index.html -&gt; a.com*</li>
* <li>If the redirect is permanent and neither the source nor the destination
* is root, then keep the destination</li>
- * <ul>
- * <li>a.com/xyz/index.html -> a.com/abc/page.html*</li>
- * </ul>
+ * <li>a.com/xyz/index.html -&gt; a.com/abc/page.html*</li>
* <li>If the redirect is temporary and source is root and destination is not
* root, then keep the source</li>
- * <ul>
- * <li>*a.com -> a.com/xyz/index.html</li>
- * </ul>
+ * <li>*a.com -&gt; a.com/xyz/index.html</li>
* <li>If the redirect is temporary and source is not root and destination is
* root, then keep the destination</li>
- * <ul>
- * <li>a.com/xyz/index.html -> a.com*</li>
- * </ul>
+ * <li>a.com/xyz/index.html -&gt; a.com*</li>
* <li>If the redirect is temporary and neither the source or the destination
* is root, then keep the shortest url. First check for the shortest host, and
* if both are equal then check by path. Path is first by length then by the
* number of / path separators.</li>
- * <ul>
- * <li>a.com/xyz/index.html -> a.com/abc/page.html*</li>
- * <li>*www.a.com/xyz/index.html -> www.news.a.com/xyz/index.html</li>
- * </ul>
+ * <li>a.com/xyz/index.html -&gt; a.com/abc/page.html*</li>
+ * <li>*www.a.com/xyz/index.html -&gt; www.news.a.com/xyz/index.html</li>
* <li>If the redirect is temporary and both the source and the destination
* are root, then keep the shortest sub-domain</li>
- * <ul>
- * <li>*www.a.com -> www.news.a.com</li>
+ * <li>*www.a.com -&gt; www.news.a.com</li>
* </ul>
* <br>
* While not in this logic there is a further piece of representative url
diff --git a/src/plugin/feed/src/java/org/apache/nutch/indexer/feed/FeedIndexingFilter.java b/src/plugin/feed/src/java/org/apache/nutch/indexer/feed/FeedIndexingFilter.java
index 94b440a89..76a171834 100644
--- a/src/plugin/feed/src/java/org/apache/nutch/indexer/feed/FeedIndexingFilter.java
+++ b/src/plugin/feed/src/java/org/apache/nutch/indexer/feed/FeedIndexingFilter.java
@@ -64,7 +64,7 @@ public class FeedIndexingFilter implements IndexingFilter {
* <li>FEED</li>
* </ul>
*
- * And sends them to the {@link Indexer} for indexing within the Nutch index.
+ * And sends them to the {@link org.apache.nutch.indexer Indexer} for indexing within the Nutch index.
*
*/
public NutchDocument filter(NutchDocument doc, Parse parse, Text url,
diff --git a/src/plugin/index-anchor/src/java/org/apache/nutch/indexer/anchor/AnchorIndexingFilter.java b/src/plugin/index-anchor/src/java/org/apache/nutch/indexer/anchor/AnchorIndexingFilter.java
index 4bee1748c..2b280d5b8 100644
--- a/src/plugin/index-anchor/src/java/org/apache/nutch/indexer/anchor/AnchorIndexingFilter.java
+++ b/src/plugin/index-anchor/src/java/org/apache/nutch/indexer/anchor/AnchorIndexingFilter.java
@@ -34,7 +34,7 @@ import org.slf4j.LoggerFactory;
* Indexing filter that offers an option to either index all inbound anchor text
* for a document or deduplicate anchors. Deduplication does have it's con's,
*
- * @see {@code anchorIndexingFilter.deduplicate} in nutch-default.xml.
+ * See {@code anchorIndexingFilter.deduplicate} in nutch-default.xml.
*/
public class AnchorIndexingFilter implements IndexingFilter {
diff --git a/src/plugin/index-geoip/src/java/org/apache/nutch/indexer/geoip/GeoIPIndexingFilter.java b/src/plugin/index-geoip/src/java/org/apache/nutch/indexer/geoip/GeoIPIndexingFilter.java
index 6b7144317..19e1f74ad 100644
--- a/src/plugin/index-geoip/src/java/org/apache/nutch/indexer/geoip/GeoIPIndexingFilter.java
+++ b/src/plugin/index-geoip/src/java/org/apache/nutch/indexer/geoip/GeoIPIndexingFilter.java
@@ -35,10 +35,8 @@ import com.maxmind.geoip2.DatabaseReader;
import com.maxmind.geoip2.WebServiceClient;
/**
- * <p>
* This plugin implements an indexing filter which takes advantage of the <a
* href="https://github.com/maxmind/GeoIP2-java">GeoIP2-java API</a>.
- * </p>
* <p>
* The third party library distribution provides an API for the GeoIP2 <a
* href="http://dev.maxmind.com/geoip/geoip2/web-services">Precision web
@@ -64,7 +62,6 @@ import com.maxmind.geoip2.WebServiceClient;
* <li>Radius</li>
* <li>User Type</li>
* </ol>
- * </p>
*
* <p>
* Some of the services are documented at the <a
diff --git a/src/plugin/index-links/src/java/org/apache/nutch/indexer/links/LinksIndexingFilter.java b/src/plugin/index-links/src/java/org/apache/nutch/indexer/links/LinksIndexingFilter.java
index 76471cba0..2b522301f 100644
--- a/src/plugin/index-links/src/java/org/apache/nutch/indexer/links/LinksIndexingFilter.java
+++ b/src/plugin/index-links/src/java/org/apache/nutch/indexer/links/LinksIndexingFilter.java
@@ -45,25 +45,25 @@ import java.util.Set;
* as the URL being indexed use the following settings in your configuration
* file:
*
- * <property>
- * <name>index.links.outlinks.host.ignore</name>
- * <value>true</value>
- * </property>
+ * &lt;property&gt;
+ * &lt;name&gt;index.links.outlinks.host.ignore&lt;/name&gt;
+ * &lt;value&gt;true&lt;/value&gt;
+ * &lt;/property&gt;
*
* The same configuration is available for inlinks:
*
- * <property>
- * <name>index.links.inlinks.host.ignore</name>
- * <value>true</value>
- * </property>
+ * &lt;property&gt;
+ * &lt;name&gt;index.links.inlinks.host.ignore&lt;/name&gt;
+ * &lt;value&gt;true&lt;/value&gt;
+ * &lt;/property&gt;
*
* To store only the host portion of each inlink URL or outlink URL add the
* following to your configuration file.
*
- * <property>
- * <name>index.links.hosts.only</name>
- * <value>false</value>
- * </property>
+ * &lt;property&gt;
+ * &lt;name&gt;index.links.hosts.only&lt;/name&gt;
+ * &lt;value&gt;false&lt;/value&gt;
+ * &lt;/property&gt;
*
*/
public class LinksIndexingFilter implements IndexingFilter {
diff --git a/src/plugin/index-metadata/src/java/org/apache/nutch/indexer/metadata/MetadataIndexer.java b/src/plugin/index-metadata/src/java/org/apache/nutch/indexer/metadata/MetadataIndexer.java
index 3db3333db..edb8b152a 100644
--- a/src/plugin/index-metadata/src/java/org/apache/nutch/indexer/metadata/MetadataIndexer.java
+++ b/src/plugin/index-metadata/src/java/org/apache/nutch/indexer/metadata/MetadataIndexer.java
@@ -35,7 +35,7 @@ import org.apache.nutch.parse.Parse;
* Indexer which can be configured to extract metadata from the crawldb, parse
* metadata or content metadata. You can specify the properties "index.db.md",
* "index.parse.md" or "index.content.md" who's values are comma-delimited
- * <value>key1,key2,key3</value>.
+ * Example : key1,key2,key3.
*/
public class MetadataIndexer implements IndexingFilter {
private Configuration conf;
diff --git a/src/plugin/index-replace/src/java/org/apache/nutch/indexer/replace/ReplaceIndexer.java b/src/plugin/index-replace/src/java/org/apache/nutch/indexer/replace/ReplaceIndexer.java
index 701760314..cb178b2f1 100644
--- a/src/plugin/index-replace/src/java/org/apache/nutch/indexer/replace/ReplaceIndexer.java
+++ b/src/plugin/index-replace/src/java/org/apache/nutch/indexer/replace/ReplaceIndexer.java
@@ -44,10 +44,10 @@ import org.apache.nutch.parse.Parse;
* <code>plugin.includes</code>. Example:
*
* <pre>
- * &lt;property>
- * &lt;name>plugin.includes&lt;/name>
- * &lt;value>protocol-(http)|urlfilter-regex|parse-(html|tika|metatags)|index-(basic|anchor|metadata|replace)|urlnormalizer-(pass|regex|basic)|indexer-solr&lt;/value>
- * &lt;/property>
+ * &lt;property&gt;
+ * &lt;name&gt;plugin.includes&lt;/name&gt;
+ * &lt;value&gt;protocol-(http)|urlfilter-regex|parse-(html|tika|metatags)|index-(basic|anchor|metadata|replace)|urlnormalizer-(pass|regex|basic)|indexer-solr&lt;/value&gt;
+ * &lt;/property&gt;
* </pre>
*
* And then add the <code>index.replace.regexp</code> property to
@@ -59,13 +59,13 @@ import org.apache.nutch.parse.Parse;
* </pre>
*
* <pre>
- * &lt;property>
- * &lt;name>index.replace.regexp&lt;/name>
- * &lt;value>
+ * &lt;property&gt;
+ * &lt;name&gt;index.replace.regexp&lt;/name&gt;
+ * &lt;value&gt;
* hostmatch=.*\\.com
* title=/search/replace/2
- * &lt;/value>
- * &lt;/property>
+ * &lt;/value&gt;
+ * &lt;/property&gt;
* </pre>
*
* <code>hostmatch=</code> and <code>urlmatch=</code> lines indicate the match
diff --git a/src/plugin/indexer-dummy/src/java/org/apache/nutch/indexwriter/dummy/DummyIndexWriter.java b/src/plugin/indexer-dummy/src/java/org/apache/nutch/indexwriter/dummy/DummyIndexWriter.java
index 093070709..b50ce3f94 100644
--- a/src/plugin/indexer-dummy/src/java/org/apache/nutch/indexwriter/dummy/DummyIndexWriter.java
+++ b/src/plugin/indexer-dummy/src/java/org/apache/nutch/indexwriter/dummy/DummyIndexWriter.java
@@ -31,7 +31,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
- * DummyIndexWriter. This pluggable indexer writes <action>\t<url>\n lines to a
+ * DummyIndexWriter. This pluggable indexer writes &lt;action&gt;\t&lt;url&gt;\n lines to a
* plain text file for debugging purposes. Possible actions are delete, update
* and add.
*/
diff --git a/src/plugin/indexer-solr/src/java/org/apache/nutch/indexwriter/solr/SolrUtils.java b/src/plugin/indexer-solr/src/java/org/apache/nutch/indexwriter/solr/SolrUtils.java
index d732b955f..2219093c2 100644
--- a/src/plugin/indexer-solr/src/java/org/apache/nutch/indexwriter/solr/SolrUtils.java
+++ b/src/plugin/indexer-solr/src/java/org/apache/nutch/indexwriter/solr/SolrUtils.java
@@ -37,7 +37,7 @@ public class SolrUtils {
/**
*
*
- * @param JobConf
+ * @param job
* @return SolrClient
*/
public static ArrayList<SolrClient> getSolrClients(JobConf job) throws MalformedURLException {
diff --git a/src/plugin/language-identifier/src/java/org/apache/nutch/analysis/lang/HTMLLanguageParser.java b/src/plugin/language-identifier/src/java/org/apache/nutch/analysis/lang/HTMLLanguageParser.java
index 133164b5f..2957d3fd9 100644
--- a/src/plugin/language-identifier/src/java/org/apache/nutch/analysis/lang/HTMLLanguageParser.java
+++ b/src/plugin/language-identifier/src/java/org/apache/nutch/analysis/lang/HTMLLanguageParser.java
@@ -78,12 +78,13 @@ public class HTMLLanguageParser implements HtmlParseFilter {
/**
* Scan the HTML document looking at possible indications of content language<br>
+ * <ul>
* <li>1. html lang attribute
* (http://www.w3.org/TR/REC-html40/struct/dirlang.html#h-8.1) <li>2. meta
* dc.language
* (http://dublincore.org/documents/2000/07/16/usageguide/qualified
* -html.shtml#language) <li>3. meta http-equiv (content-language)
- * (http://www.w3.org/TR/REC-html40/struct/global.html#h-7.4.4.2) <br>
+ * (http://www.w3.org/TR/REC-html40/struct/global.html#h-7.4.4.2) <br></ul>
*/
public ParseResult filter(Content content, ParseResult parseResult,
HTMLMetaTags metaTags, DocumentFragment doc) {
diff --git a/src/plugin/lib-htmlunit/src/java/org/apache/nutch/protocol/htmlunit/HtmlUnitWebDriver.java b/src/plugin/lib-htmlunit/src/java/org/apache/nutch/protocol/htmlunit/HtmlUnitWebDriver.java
index cc0096cf7..d66ecbf2e 100644
--- a/src/plugin/lib-htmlunit/src/java/org/apache/nutch/protocol/htmlunit/HtmlUnitWebDriver.java
+++ b/src/plugin/lib-htmlunit/src/java/org/apache/nutch/protocol/htmlunit/HtmlUnitWebDriver.java
@@ -130,7 +130,7 @@ public class HtmlUnitWebDriver extends HtmlUnitDriver {
/**
* Function for obtaining the HTML BODY using the selected
- * {@link org.openqa.selenium.WebDriver}.
+ * <a href='https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/WebDriver.html'>selenium webdriver</a>
* There are a number of configuration properties within
* <code>nutch-site.xml</code> which determine whether to
* take screenshots of the rendered pages and persist them
diff --git a/src/plugin/lib-regex-filter/src/java/org/apache/nutch/urlfilter/api/RegexURLFilterBase.java b/src/plugin/lib-regex-filter/src/java/org/apache/nutch/urlfilter/api/RegexURLFilterBase.java
index ca3ea0f42..154f9e1a1 100644
--- a/src/plugin/lib-regex-filter/src/java/org/apache/nutch/urlfilter/api/RegexURLFilterBase.java
+++ b/src/plugin/lib-regex-filter/src/java/org/apache/nutch/urlfilter/api/RegexURLFilterBase.java
@@ -51,10 +51,10 @@ import org.apache.nutch.util.URLUtil;
* </p>
*
* <p>
- * The format of this file is made of many rules (one per line):<br/>
+ * The format of this file is made of many rules (one per line):<br>
* <code>
* [+-]&lt;regex&gt;
- * </code><br/>
+ * </code><br>
* where plus (<code>+</code>)means go ahead and index it and minus (
* <code>-</code>)means no.
* </p>
diff --git a/src/plugin/lib-selenium/src/java/org/apache/nutch/protocol/selenium/HttpWebClient.java b/src/plugin/lib-selenium/src/java/org/apache/nutch/protocol/selenium/HttpWebClient.java
index 0c4f4975a..6e137f9bf 100644
--- a/src/plugin/lib-selenium/src/java/org/apache/nutch/protocol/selenium/HttpWebClient.java
+++ b/src/plugin/lib-selenium/src/java/org/apache/nutch/protocol/selenium/HttpWebClient.java
@@ -177,7 +177,7 @@ public class HttpWebClient {
/**
* Function for obtaining the HTML BODY using the selected
- * {@link org.openqa.selenium.WebDriver}.
+ * <a href='https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/WebDriver.html'>selenium webdriver</a>
* There are a number of configuration properties within
* <code>nutch-site.xml</code> which determine whether to
* take screenshots of the rendered pages and persist them
diff --git a/src/plugin/mimetype-filter/src/java/org/apache/nutch/indexer/filter/MimeTypeIndexingFilter.java b/src/plugin/mimetype-filter/src/java/org/apache/nutch/indexer/filter/MimeTypeIndexingFilter.java
index e8aa41be3..84260b8c3 100644
--- a/src/plugin/mimetype-filter/src/java/org/apache/nutch/indexer/filter/MimeTypeIndexingFilter.java
+++ b/src/plugin/mimetype-filter/src/java/org/apache/nutch/indexer/filter/MimeTypeIndexingFilter.java
@@ -207,7 +207,8 @@ public class MimeTypeIndexingFilter implements IndexingFilter {
/**
* Main method for invoking this tool
*
- * @throws IOException, IndexingException
+ * @throws IOException
+ * @throws IndexingException
*/
public static void main(String[] args) throws IOException, IndexingException {
Option helpOpt = new Option("h", "help", false, "show this help message");
diff --git a/src/plugin/parse-zip/src/java/org/apache/nutch/parse/zip/ZipTextExtractor.java b/src/plugin/parse-zip/src/java/org/apache/nutch/parse/zip/ZipTextExtractor.java
index 6ad42e630..cc5336a63 100644
--- a/src/plugin/parse-zip/src/java/org/apache/nutch/parse/zip/ZipTextExtractor.java
+++ b/src/plugin/parse-zip/src/java/org/apache/nutch/parse/zip/ZipTextExtractor.java
@@ -46,7 +46,7 @@ import org.apache.tika.Tika;
/**
*
- * @author Rohit Kulkarni & Ashish Vaidya
+ * @author Rohit Kulkarni and Ashish Vaidya
*/
public class ZipTextExtractor {
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.java
index da25d87bc..4939b61bf 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
@@ -57,7 +57,7 @@ import org.apache.commons.net.ftp.FTPConnectionClosedException;
* servers out there, when partial downloading is enforced by closing data
* channel socket on our client side, the server side immediately closes control
* channel (socket). Our codes deal with such a bad behavior. (4) LIST is used
- * to obtain remote file attributes if possible. MDTM & SIZE would be nice, but
+ * to obtain remote file attributes if possible. MDTM and SIZE would be nice, but
* not as ubiquitously implemented as LIST. (5) Avoid using ABOR in single
* thread? Do not use it at all.
*
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.java
index c5f3e3157..9fd0a10ba 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
@@ -39,7 +39,7 @@ import org.apache.hadoop.conf.Configurable;
/**
* 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
+ * http.auth.basic.&lt;realm&gt;.user http.auth.basic.&lt;realm&gt;.pass
*
* @author Matt Tencati
*/
@@ -130,7 +130,7 @@ public class HttpBasicAuthentication implements HttpAuthentication,
* Gets the Basic credentials generated by this HttpBasicAuthentication object
*
* @return Credentials in the form of
- * <code>Authorization: Basic &lt;Base64 encoded userid:password&gt;
+ * <code>Authorization: Basic &lt;Base64 encoded userid:password&gt;</code>
*
*/
public List<String> getCredentials() {
diff --git a/src/plugin/scoring-opic/src/java/org/apache/nutch/scoring/opic/OPICScoringFilter.java b/src/plugin/scoring-opic/src/java/org/apache/nutch/scoring/opic/OPICScoringFilter.java
index ec2e053b2..dad40de29 100644
--- a/src/plugin/scoring-opic/src/java/org/apache/nutch/scoring/opic/OPICScoringFilter.java
+++ b/src/plugin/scoring-opic/src/java/org/apache/nutch/scoring/opic/OPICScoringFilter.java
@@ -42,10 +42,9 @@ import org.apache.nutch.scoring.ScoringFilterException;
/**
* This plugin implements a variant of an Online Page Importance Computation
- * (OPIC) score, described in this paper: <a
- * href="http://www2003.org/cdrom/papers/refereed/p007/p7-abiteboul.html"/>
+ * (OPIC) score, described in this <a href="http://www2003.org/cdrom/papers/refereed/p007/p7-abiteboul.html">paper</a>:
* Abiteboul, Serge and Preda, Mihai and Cobena, Gregory (2003), Adaptive
- * On-Line Page Importance Computation </a>.
+ * On-Line Page Importance Computation.
*
* @author Andrzej Bialecki
*/
diff --git a/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneTokenizer.java b/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneTokenizer.java
index acb987c16..e55f45b1a 100644
--- a/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneTokenizer.java
+++ b/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneTokenizer.java
@@ -61,7 +61,7 @@ public class LuceneTokenizer {
* Creates a tokenizer based on param values
* @param content - The text to tokenize
* @param tokenizer - the type of tokenizer to use CLASSIC or DEFAULT
- * @param stopSet - Provide a set of user defined stop words
+ * @param stopWords - Provide a set of user defined stop words
* @param addToDefault - If set to true, the stopSet words will be added to the Lucene default stop set.
* If false, then only the user provided words will be used as the stop set
* @param stemFilterType
diff --git a/src/plugin/subcollection/src/java/org/apache/nutch/collection/CollectionManager.java b/src/plugin/subcollection/src/java/org/apache/nutch/collection/CollectionManager.java
index 9fc08a166..ff475bc57 100644
--- a/src/plugin/subcollection/src/java/org/apache/nutch/collection/CollectionManager.java
+++ b/src/plugin/subcollection/src/java/org/apache/nutch/collection/CollectionManager.java
@@ -203,7 +203,7 @@ public class CollectionManager extends Configured {
/**
* Save collections into file
*
- * @throws Exception
+ * @throws IOException
*/
public void save() throws IOException {
try {
diff --git a/src/plugin/subcollection/src/java/org/apache/nutch/indexer/subcollection/SubcollectionIndexingFilter.java b/src/plugin/subcollection/src/java/org/apache/nutch/indexer/subcollection/SubcollectionIndexingFilter.java
index df12e4f07..6bad96443 100644
--- a/src/plugin/subcollection/src/java/org/apache/nutch/indexer/subcollection/SubcollectionIndexingFilter.java
+++ b/src/plugin/subcollection/src/java/org/apache/nutch/indexer/subcollection/SubcollectionIndexingFilter.java
@@ -51,8 +51,7 @@ public class SubcollectionIndexingFilter extends Configured implements
}
/**
- * @param Configuration
- * conf
+ * @param conf
*/
public void setConf(Configuration conf) {
this.conf = conf;
diff --git a/src/plugin/urlfilter-domain/src/java/org/apache/nutch/urlfilter/domain/DomainURLFilter.java b/src/plugin/urlfilter-domain/src/java/org/apache/nutch/urlfilter/domain/DomainURLFilter.java
index 1e2a6cc97..9e2e2e7d8 100644
--- a/src/plugin/urlfilter-domain/src/java/org/apache/nutch/urlfilter/domain/DomainURLFilter.java
+++ b/src/plugin/urlfilter-domain/src/java/org/apache/nutch/urlfilter/domain/DomainURLFilter.java
@@ -64,12 +64,12 @@ import org.apache.nutch.util.domain.DomainSuffix;
* overridden using the:
*
* <ul>
- * <ol>
+ * <li>
* property "urlfilter.domain.file" in ./conf/nutch-*.xml, and
- * </ol>
- * <ol>
+ * </li>
+ * <li>
* attribute "file" in plugin.xml of this plugin
- * </ol>
+ * </li>
* </ul>
*
* the attribute "file" has higher precedence if defined.
@@ -110,8 +110,6 @@ public class DomainURLFilter implements URLFilter {
*
* @param domainFile
* The domain file, overrides domain-urlfilter.text default.
- *
- * @throws IOException
*/
public DomainURLFilter(String domainFile) {
this.domainFile = domainFile;
diff --git a/src/plugin/urlfilter-domainblacklist/src/java/org/apache/nutch/urlfilter/domainblacklist/DomainBlacklistURLFilter.java b/src/plugin/urlfilter-domainblacklist/src/java/org/apache/nutch/urlfilter/domainblacklist/DomainBlacklistURLFilter.java
index 81f7c661f..452f6d493 100644
--- a/src/plugin/urlfilter-domainblacklist/src/java/org/apache/nutch/urlfilter/domainblacklist/DomainBlacklistURLFilter.java
+++ b/src/plugin/urlfilter-domainblacklist/src/java/org/apache/nutch/urlfilter/domainblacklist/DomainBlacklistURLFilter.java
@@ -64,12 +64,12 @@ import org.apache.nutch.util.domain.DomainSuffix;
* but can be overridden using the:
*
* <ul>
- * <ol>
+ * <li>
* property "urlfilter.domainblacklist.file" in ./conf/nutch-*.xml, and
- * </ol>
- * <ol>
+ * </li>
+ * <li>
* attribute "file" in plugin.xml of this plugin
- * </ol>
+ * </li>
* </ul>
*
* the attribute "file" has higher precedence if defined.
@@ -110,8 +110,6 @@ public class DomainBlacklistURLFilter implements URLFilter {
*
* @param domainFile
* The domain file, overrides domainblacklist-urlfilter.text default.
- *
- * @throws IOException
*/
public DomainBlacklistURLFilter(String domainFile) {
this.domainFile = domainFile;
diff --git a/src/plugin/urlfilter-suffix/src/java/org/apache/nutch/urlfilter/suffix/SuffixURLFilter.java b/src/plugin/urlfilter-suffix/src/java/org/apache/nutch/urlfilter/suffix/SuffixURLFilter.java
index 0cc594439..83e68be2a 100644
--- a/src/plugin/urlfilter-suffix/src/java/org/apache/nutch/urlfilter/suffix/SuffixURLFilter.java
+++ b/src/plugin/urlfilter-suffix/src/java/org/apache/nutch/urlfilter/suffix/SuffixURLFilter.java
@@ -81,7 +81,7 @@ import java.net.MalformedURLException;
* expressions, it only accepts literal suffixes. I.e. a suffix "+*.jpg" is most
* probably wrong, you should use "+.jpg" instead.
* </p>
- * <h4>Example 1</h4>
+ * <h3>Example 1</h3>
* <p>
* The configuration shown below will accept all URLs with '.html' or '.htm'
* suffixes (case-sensitive - '.HTML' or '.HTM' will be rejected), and prohibit
@@ -99,7 +99,6 @@ import java.net.MalformedURLException;
* .htm
* </pre>
*
- * </p>
* <h4>Example 2</h4>
* <p>
* The configuration shown below will accept all URLs except common graphical
@@ -119,9 +118,7 @@ import java.net.MalformedURLException;
* .jpeg
* .bmp
* </pre>
- *
- * </p>
- *
+ *
* @author Andrzej Bialecki
*/
public class SuffixURLFilter implements URLFilter {
diff --git a/src/plugin/urlmeta/src/java/org/apache/nutch/indexer/urlmeta/URLMetaIndexingFilter.java b/src/plugin/urlmeta/src/java/org/apache/nutch/indexer/urlmeta/URLMetaIndexingFilter.java
index 5e5e7aad0..fcd32556c 100644
--- a/src/plugin/urlmeta/src/java/org/apache/nutch/indexer/urlmeta/URLMetaIndexingFilter.java
+++ b/src/plugin/urlmeta/src/java/org/apache/nutch/indexer/urlmeta/URLMetaIndexingFilter.java
@@ -54,14 +54,14 @@ import org.apache.nutch.parse.Parse;
* want them to be propagated and indexed, that is.
*
* 1. As of Nutch 1.2, the property "plugin.includes" looks as follows:
- * <value>protocol-http|urlfilter-regex|parse-(text|html|js|tika|rss)|index
+ * &lt;value&gt;protocol-http|urlfilter-regex|parse-(text|html|js|tika|rss)|index
* -(basic|anchor)|query-(basic|site|url)|response-(json|xml)|summary-basic
- * |scoring-opic|urlnormalizer-(pass|regex|basic)</value> You must change
+ * |scoring-opic|urlnormalizer-(pass|regex|basic)&lt;/value&gt; You must change
* "index-(basic|anchor)" to "index-(basic|anchor|urlmeta)", in order to call
* this plugin.
*
* 2. You must also specify the property "urlmeta.tags", who's values are
- * comma-delimited <value>key1, key2, key3</value>
+ * comma-delimited &lt;value&gt;key1, key2, key3&lt;/value&gt;
*
* TODO: It may be ideal to offer two separate properties, to specify what gets
* indexed versus merely propagated.
diff --git a/src/plugin/urlmeta/src/java/org/apache/nutch/scoring/urlmeta/URLMetaScoringFilter.java b/src/plugin/urlmeta/src/java/org/apache/nutch/scoring/urlmeta/URLMetaScoringFilter.java
index ebc238e2a..543edfd2d 100644
--- a/src/plugin/urlmeta/src/java/org/apache/nutch/scoring/urlmeta/URLMetaScoringFilter.java
+++ b/src/plugin/urlmeta/src/java/org/apache/nutch/scoring/urlmeta/URLMetaScoringFilter.java
@@ -40,7 +40,7 @@ import org.apache.nutch.scoring.ScoringFilterException;
/**
* For documentation:
*
- * @see URLMetaIndexingFilter
+ * {@link org.apache.nutch.scoring.urlmeta}
*/
public class URLMetaScoringFilter extends Configured implements ScoringFilter {
diff --git a/src/plugin/urlnormalizer-querystring/src/java/org/apache/nutch/net/urlnormalizer/querystring/QuerystringURLNormalizer.java b/src/plugin/urlnormalizer-querystring/src/java/org/apache/nutch/net/urlnormalizer/querystring/QuerystringURLNormalizer.java
index 19e5bba3a..2e1e6da1d 100644
--- a/src/plugin/urlnormalizer-querystring/src/java/org/apache/nutch/net/urlnormalizer/querystring/QuerystringURLNormalizer.java
+++ b/src/plugin/urlnormalizer-querystring/src/java/org/apache/nutch/net/urlnormalizer/querystring/QuerystringURLNormalizer.java
@@ -36,7 +36,7 @@ import org.apache.nutch.util.URLUtil;
/**
* URL normalizer plugin for normalizing query strings but sorting query string
* parameters. Not sorting query strings can lead to large amounts of duplicate
- * URL's such as ?a=x&b=y vs b=y&a=x.
+ * URL's such as ?a=x&amp;b=y vs b=y&amp;a=x.
*
*/
public class QuerystringURLNormalizer implements URLNormalizer {