You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by cu...@apache.org on 2005/10/25 18:57:57 UTC
svn commit: r328414 -
/lucene/nutch/branches/mapred/src/java/org/apache/nutch/crawl/ParseOutputFormat.java
Author: cutting
Date: Tue Oct 25 09:57:51 2005
New Revision: 328414
URL: http://svn.apache.org/viewcvs?rev=328414&view=rev
Log:
Fix a type error for JDK 1.4.
Modified:
lucene/nutch/branches/mapred/src/java/org/apache/nutch/crawl/ParseOutputFormat.java
Modified: lucene/nutch/branches/mapred/src/java/org/apache/nutch/crawl/ParseOutputFormat.java
URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/java/org/apache/nutch/crawl/ParseOutputFormat.java?rev=328414&r1=328413&r2=328414&view=diff
==============================================================================
--- lucene/nutch/branches/mapred/src/java/org/apache/nutch/crawl/ParseOutputFormat.java (original)
+++ lucene/nutch/branches/mapred/src/java/org/apache/nutch/crawl/ParseOutputFormat.java Tue Oct 25 09:57:51 2005
@@ -66,7 +66,8 @@
Outlink[] links = parse.getData().getOutlinks();
// compute OPIC score contribution
- float score = Float.valueOf(parse.getData().get(Fetcher.SCORE_KEY));
+ float score =
+ Float.parseFloat(parse.getData().get(Fetcher.SCORE_KEY));
score /= links.length;
for (int i = 0; i < links.length; i++) {