Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-375

[FindBugs] NativeFtpFile implements equals(), but does not - hashCode()

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.6, 1.1.0
    • Component/s: Core
    • Labels:

      Description

      In fact, i can't find why it need to implement equals() in first place. If for any map - then hashCode() will also be required. For example, this.file.getCanonicalFile().hashCode()

      Anyway, could we please have a comment why do we need equals() method?

        Attachments

          Activity

            People

            • Assignee:
              niklas Niklas Therning
              Reporter:
              bsp Sergey Vladimirov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: