Author: mc Date: Thu Sep 8 10:00:39 2005 New Revision: 279583 URL: http://svn.apache.org/viewcvs?rev=279583&view=rev Log:
There was no equals() method for Block. Now defined, in terms of compareTo(). Modified: lucene/nutch/branches/mapred/src/java/org/apache/nutch/ndfs/Block.java Modified: lucene/nutch/branches/mapred/src/java/org/apache/nutch/ndfs/Block.java URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/java/org/apache/nutch/ndfs/Block.java?rev=279583&r1=279582&r2=279583&view=diff ============================================================================== --- lucene/nutch/branches/mapred/src/java/org/apache/nutch/ndfs/Block.java (original) +++ lucene/nutch/branches/mapred/src/java/org/apache/nutch/ndfs/Block.java Thu Sep 8 10:00:39 2005 @@ -119,4 +119,8 @@ return 1; } } + public boolean equals(Object o) { + Block b = (Block) o; + return (this.compareTo(b) == 0); + } }