Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Fix Javadoc Warnings

Jerome Charronb38bc12a662f
diff --git a/src/java/org/apache/nutch/clustering/OnlineClustererFactory.java b/src/java/org/apache/nutch/clustering/OnlineClustererFactory.java
index 23bbc9b14..e9ba68ca6 100644
--- a/src/java/org/apache/nutch/clustering/OnlineClustererFactory.java
+++ b/src/java/org/apache/nutch/clustering/OnlineClustererFactory.java
@@ -60,7 +60,7 @@ public class OnlineClustererFactory {
/**
* @return Returns the online clustering extension specified
- * in nutch configuration (key name in this field: {@link #CONFIG_FIELD_NAME}).
+ * in nutch configuration (key name is <code>extension.clustering.extension-name</code>).
* If the name is empty (no preference), the first available clustering extension is
* returned.
*/
diff --git a/src/java/org/apache/nutch/parse/ParsePluginsReader.java b/src/java/org/apache/nutch/parse/ParsePluginsReader.java
index 3f7177408..af05b212b 100644
--- a/src/java/org/apache/nutch/parse/ParsePluginsReader.java
+++ b/src/java/org/apache/nutch/parse/ParsePluginsReader.java
@@ -46,7 +46,7 @@ import org.apache.nutch.util.NutchConfiguration;
* @author mattmann
* @version 1.0
*/
-public class ParsePluginsReader {
+class ParsePluginsReader {
/* our log stream */
public static final Logger LOG =
@@ -66,9 +66,9 @@ public class ParsePluginsReader {
/**
* Reads the <code>parse-plugins.xml</code> file and returns the
- * {@link ParsePluginList} defined by it.
+ * {@link #ParsePluginList} defined by it.
*
- * @return A {@link ParsePluginList} 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/ParserFactory.java b/src/java/org/apache/nutch/parse/ParserFactory.java
index 0c877f449..22ec02541 100644
--- a/src/java/org/apache/nutch/parse/ParserFactory.java
+++ b/src/java/org/apache/nutch/parse/ParserFactory.java
@@ -74,7 +74,7 @@ public final class ParserFactory {
/**
* Function returns an array of {@link Parser}s for a given content type.
*
- * The function consults the internal {@link ParsePluginList} for the
+ * The function consults the internal list of parse plugins for the
* ParserFactory to determine the list of pluginIds, then gets the
* appropriate extension points to instantiate as {@link Parser}s.
*
@@ -149,12 +149,12 @@ public final class ParserFactory {
* instantiate the Parser itself , then this function will cache that Parser
* in the internal <code>PARSER_CACHE</code>.
*
- * @param extId The string extension ID (e.g.,
+ * @param id The string extension ID (e.g.,
* "org.apache.nutch.parse.rss.RSSParser",
* "org.apache.nutch.parse.rtf.RTFParseFactory") of the {@link Parser}
* implementation to return.
* @return A {@link Parser} implementation specified by the parameter
- * <code>extId</code>.
+ * <code>id</code>.
* @throws ParserNotFound If the Parser is not found (i.e., registered with
* the extension point), or if the there a
* {@link PluginRuntimeException} instantiating the {@link Parser}.
diff --git a/src/java/org/apache/nutch/scoring/ScoringFilter.java b/src/java/org/apache/nutch/scoring/ScoringFilter.java
index a488a7d8b..179638cd1 100644
--- a/src/java/org/apache/nutch/scoring/ScoringFilter.java
+++ b/src/java/org/apache/nutch/scoring/ScoringFilter.java
@@ -131,7 +131,7 @@ public interface ScoringFilter extends Configurable, Pluggable {
* @param parse parsing result. NOTE: changes made to this instance are not persisted.
* @param inlinks current inlinks from LinkDb. NOTE: changes made to this instance are
* not persisted.
- * @param initBoost initial boost value for the Lucene document.
+ * @param initScore initial boost value for the Lucene document.
* @return boost value for the Lucene document. This value is passed as an argument
* to the next scoring filter in chain. NOTE: implementations may also express
* other scoring strategies by modifying Lucene document directly.
diff --git a/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/DummyX509TrustManager.java b/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/DummyX509TrustManager.java
index caac12f49..9b0e63042 100644
--- a/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/DummyX509TrustManager.java
+++ b/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/DummyX509TrustManager.java
@@ -38,14 +38,14 @@ public class DummyX509TrustManager implements X509TrustManager
}
/**
- * @see javax.net.ssl.X509TrustManager#isClientTrusted(X509Certificate[])
+ * @see javax.net.ssl.X509TrustManager#checkClientTrusted(X509Certificate[], String)
*/
public boolean isClientTrusted(X509Certificate[] certificates) {
return true;
}
/**
- * @see javax.net.ssl.X509TrustManager#isServerTrusted(X509Certificate[])
+ * @see javax.net.ssl.X509TrustManager#checkServerTrusted(X509Certificate[], String)
*/
public boolean isServerTrusted(X509Certificate[] certificates) {
return true;
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 ed1394817..7faa3de40 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
@@ -63,7 +63,7 @@ public class OPICScoringFilter implements ScoringFilter {
datum.setScore(scoreInjected);
}
- /** Use {@param datum#getScore()}. */
+ /** Use {@link CrawlDatum#getScore()}. */
public float generatorSortValue(UTF8 url, CrawlDatum datum, float initSort) throws ScoringFilterException {
return datum.getScore();
}