commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Created: (COMPRESS-106) ZipFile.OFFSET_COMPARATOR.new Comparator() {...}.equals(Object o) should be deleted
Date Wed, 21 Apr 2010 17:13:49 GMT
ZipFile.OFFSET_COMPARATOR.new Comparator() {...}.equals(Object o) should be deleted
-----------------------------------------------------------------------------------

                 Key: COMPRESS-106
                 URL: https://issues.apache.org/jira/browse/COMPRESS-106
             Project: Commons Compress
          Issue Type: Improvement
            Reporter: Sebb


The method ZipFile.OFFSET_COMPARATOR.new Comparator() {...}.equals(Object o) should be deleted,
as it does nothing useful.

The contents are exactly the same as Object.equals().

If the method is kept, then the class should also override hashCode() for consistency.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message