Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 3.0.0 M1
    • Component/s: Core
    • Labels:
      None

      Description

      Here is org.springframework.security.util.InMemoryResource.equals method code:

      public boolean equals(Object res) {
      if (res instanceof InMemoryResource)

      { return false; }

      return Arrays.equals(source, ((InMemoryResource)res).source);
      }

      Obviously, this should be:

      public boolean equals(Object res) {
      if (!(res instanceof InMemoryResource)) { return false; }

      return Arrays.equals(source, ((InMemoryResource)res).source);
      }

        Activity

        Hide
        Luke Taylor added a comment -

        Thanks for spotting this. Fixed in trunk.

        Show
        Luke Taylor added a comment - Thanks for spotting this. Fixed in trunk.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            David Gageot
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: