Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Fix for NUTCH-390 Javadoc warnings

Chris Mattmannaaca5dc7d8e6
diff --git a/CHANGES.txt b/CHANGES.txt
index 5bbec9521..a5d607f53 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -144,6 +144,8 @@ Unreleased changes (0.9-dev)
47. NUTCH-339 - Fetcher2: a queue-based fetcher implementation. (ab)
+48. NUTCH-390 - Javadoc warnings (mattmann)
+
Release 0.8 - 2006-07-25
diff --git a/lib/commons-logging-1.0.4.jar b/lib/commons-logging-1.0.4.jar
index b73a80fab..16a5809e2 100644
Binary files a/lib/commons-logging-1.0.4.jar and b/lib/commons-logging-1.0.4.jar differ
diff --git a/src/java/org/apache/nutch/net/URLNormalizers.java b/src/java/org/apache/nutch/net/URLNormalizers.java
index 208e96177..6adaae99a 100644
--- a/src/java/org/apache/nutch/net/URLNormalizers.java
+++ b/src/java/org/apache/nutch/net/URLNormalizers.java
@@ -55,7 +55,7 @@ import org.apache.nutch.plugin.PluginRuntimeException;
* "urlnormalizer.order.<scope_name>" property). If any of these properties are
* missing, default settings are used for the global scope.</p>
* <p>In case no normalizers are required for any given scope, a
- * {@link org.apache.nutch.net.urlnormalizer.pass.PassURLNormalizer} should be used.</p>
+ * <code>org.apache.nutch.net.urlnormalizer.pass.PassURLNormalizer</code> should be used.</p>
* <p>Each normalizer may further select among many configurations, depending on
* the scope in which it is called, because the scope name is passed as a parameter
* to each normalizer. You can also use the same normalizer for many scopes.</p>
@@ -266,10 +266,10 @@ public final class URLNormalizers {
/**
* Normalize
- * @param urlString
- * @param scope
- * @return
- * @throws MalformedURLException
+ * @param urlString The URL string to normalize.
+ * @param scope The given scope.
+ * @return A normalized String, using the given <code>scope</code>
+ * @throws MalformedURLException If the given URL string is malformed.
*/
public String normalize(String urlString, String scope)
throws MalformedURLException {
diff --git a/src/java/org/apache/nutch/plugin/PluginManifestParser.java b/src/java/org/apache/nutch/plugin/PluginManifestParser.java
index 01dd3bdc2..068125931 100644
--- a/src/java/org/apache/nutch/plugin/PluginManifestParser.java
+++ b/src/java/org/apache/nutch/plugin/PluginManifestParser.java
@@ -69,7 +69,7 @@ public class PluginManifestParser {
*
* @param pluginFolders
* folders to search plugins from
- * @return
+ * @return A {@link Map} of all found {@link PluginDescriptor}s.
*/
public Map<String, PluginDescriptor> parsePluginFolder(String[] pluginFolders) {
Map<String, PluginDescriptor> map = new HashMap<String, PluginDescriptor>();
diff --git a/src/java/org/apache/nutch/protocol/ProtocolFactory.java b/src/java/org/apache/nutch/protocol/ProtocolFactory.java
index 1cc44604c..e564e8d51 100644
--- a/src/java/org/apache/nutch/protocol/ProtocolFactory.java
+++ b/src/java/org/apache/nutch/protocol/ProtocolFactory.java
@@ -33,7 +33,7 @@ import org.apache.hadoop.conf.Configuration;
* the attribute "protocolName" with the name of the protocol that they
* implement. Configuration object is used for caching. Cache key is constructed
* from appending protocol name (eg. http) to constant
- * {@link Protocol#X_POINT_ID).
+ * {@link Protocol#X_POINT_ID}.
*/
public class ProtocolFactory {
@@ -58,7 +58,7 @@ public class ProtocolFactory {
*
* @param urlString
* Url String
- * @return
+ * @return The appropriate {@link Protocol} implementation for a given {@link URL}.
* @throws ProtocolNotFound
* when Protocol can not be found for urlString
*/
diff --git a/src/java/org/apache/nutch/scoring/ScoringFilter.java b/src/java/org/apache/nutch/scoring/ScoringFilter.java
index dace7a28d..05719695f 100644
--- a/src/java/org/apache/nutch/scoring/ScoringFilter.java
+++ b/src/java/org/apache/nutch/scoring/ScoringFilter.java
@@ -128,7 +128,7 @@ public interface ScoringFilter extends Configurable, Pluggable {
* @param url url of the page
* @param old original datum, with original score. May be null if this is a newly
* discovered page. If not null, filters should use score values from this parameter
- * as the starting values - the {@param datum} parameter may contain values that are
+ * as the starting values - the <code>datum</code> parameter may contain values that are
* no longer valid, if other updates occured between generation and this update.
* @param datum the new datum, with the original score saved at the time when
* fetchlist was generated. Filters should update this in-place, and it will be saved in
diff --git a/src/java/org/apache/nutch/segment/SegmentPart.java b/src/java/org/apache/nutch/segment/SegmentPart.java
index ddbc06371..656d6b6a2 100644
--- a/src/java/org/apache/nutch/segment/SegmentPart.java
+++ b/src/java/org/apache/nutch/segment/SegmentPart.java
@@ -52,7 +52,8 @@ public class SegmentPart {
/**
* Create SegmentPart from a FileSplit.
* @param split
- * @return
+ * @return A {@link SegmentPart} resultant from a
+ * {@link FileSplit}.
* @throws Exception
*/
public static SegmentPart get(FileSplit split) throws IOException {
diff --git a/src/java/org/apache/nutch/util/DomUtil.java b/src/java/org/apache/nutch/util/DomUtil.java
index 6eba8734b..f6026db57 100644
--- a/src/java/org/apache/nutch/util/DomUtil.java
+++ b/src/java/org/apache/nutch/util/DomUtil.java
@@ -47,7 +47,7 @@ public class DomUtil {
* Returns parsed dom tree or null if any error
*
* @param is
- * @return
+ * @return A parsed DOM tree from the given {@link InputStream}.
*/
public static Element getDom(InputStream is) {
diff --git a/src/plugin/ontology/lib/commons-logging-1.0.3.jar b/src/plugin/ontology/lib/commons-logging-1.0.3.jar
index b99c9375a..33dac794d 100644
Binary files a/src/plugin/ontology/lib/commons-logging-1.0.3.jar and b/src/plugin/ontology/lib/commons-logging-1.0.3.jar differ