Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-10

ZipEntry has same name as superclass

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      public class ZipEntry
      extends java.util.zip.ZipEntry

      As Findbugs says:

      [Nm] Class names shouldn't shadow simple name of superclass [NM_SAME_SIMPLE_NAME_AS_SUPERCLASS]

      This class has a simple name that is identical to that of its superclass, except that its superclass is in a different package (e.g., alpha.Foo extends beta.Foo). This can be exceptionally confusing, create lots of situations in which you have to look at import statements to resolve references and creates many opportunities to accidently define methods that do not override methods in their superclasses.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: