Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Fix some javadoc errors and warnings

Jerome Charron9e5e87e8392d
diff --git a/src/java/org/apache/nutch/parse/ParsePluginsReader.java b/src/java/org/apache/nutch/parse/ParsePluginsReader.java
index fff92e7a9..5b577d2e4 100644
--- a/src/java/org/apache/nutch/parse/ParsePluginsReader.java
+++ b/src/java/org/apache/nutch/parse/ParsePluginsReader.java
@@ -64,9 +64,9 @@ public class ParsePluginsReader {
/**
* Reads the <code>parse-plugins.xml</code> file and returns the
- * {@link ParsePluginPreferenceList} defined by it.
+ * {@link ParsePluginList} defined by it.
*
- * @return A {@link ParsePluginPreferenceList} specified by the
+ * @return A {@link ParsePluginList} specified by the
* <code>parse-plugins.xml</code> file.
* @throws Exception
* If any parsing error occurs.
diff --git a/src/java/org/apache/nutch/parse/ParseUtil.java b/src/java/org/apache/nutch/parse/ParseUtil.java
index 2de339ae0..50053bac2 100644
--- a/src/java/org/apache/nutch/parse/ParseUtil.java
+++ b/src/java/org/apache/nutch/parse/ParseUtil.java
@@ -51,7 +51,7 @@ public class ParseUtil {
}
/**
- * Performs a parse by iterating through a List of preferred {@Parser}s
+ * Performs a parse by iterating through a List of preferred {@link Parser}s
* until a successful parse is performed and a {@link Parse} object is
* returned. If the parse is unsuccessful, a message is logged to the
* <code>WARNING</code> level, and an empty parse is returned.
diff --git a/src/java/org/apache/nutch/parse/ParserFactory.java b/src/java/org/apache/nutch/parse/ParserFactory.java
index 6a1dd123b..4ab0daf6e 100644
--- a/src/java/org/apache/nutch/parse/ParserFactory.java
+++ b/src/java/org/apache/nutch/parse/ParserFactory.java
@@ -106,13 +106,13 @@ public final class ParserFactory {
*
* The function consults the internal {@link ParsePluginList} for the
* ParserFactory to determine the list of pluginIds, then gets the
- * appropriate extension points to instantiate as {Parser}s.
+ * appropriate extension points to instantiate as {@link Parser}s.
*
* @param contentType The contentType to return the <code>Array</code>
- * of {Parser}s for.
+ * of {@link Parser}s for.
* @param url The url for the content that may allow us to get the type from
* the file suffix.
- * @return An <code>Array</code> of {@Parser}s for the given contentType.
+ * @return An <code>Array</code> of {@link Parser}s for the given contentType.
* If there were plugins mapped to a contentType via the
* <code>parse-plugins.xml</code> file, but never enabled via
* the <code>plugin.includes</code> Nutch conf, then those plugins
diff --git a/src/java/org/apache/nutch/util/StringUtil.java b/src/java/org/apache/nutch/util/StringUtil.java
index 1de78fdcc..a434c4b60 100644
--- a/src/java/org/apache/nutch/util/StringUtil.java
+++ b/src/java/org/apache/nutch/util/StringUtil.java
@@ -57,7 +57,6 @@ public class StringUtil {
* Convenience call for {@link #toHexString(byte[], String, int)}, where
* <code>sep = null; lineLen = Integer.MAX_VALUE</code>.
* @param buf
- * @return
*/
public static String toHexString(byte[] buf) {
return toHexString(buf, null, Integer.MAX_VALUE);
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 215444f13..ca29b7f8c 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
@@ -111,7 +111,8 @@ public class HttpBasicAuthentication implements HttpAuthentication, Configurable
/**
* Gets the realm attribute of the HttpBasicAuthentication object.
- * This should have been supplied to the {@link #getAuthentication(String)} static method
+ * This should have been supplied to the {@link #getAuthentication(String, Configuration)}
+ * static method
*
* @return The realm
*/