Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-33142

Equals compares the same objects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Resolution: Incorporated
    • Affects Version/s: 12.0
    • Fix Version/s: 12.0
    • Component/s: Sitestats
    • Labels:
    • Previous Issue Keys:
      GIT2-4271
    • Previous GIT issue:

      Description

      Hi

      I've found a following issue in sitestats/sitestats-impl/src/java/org/sakaiproject/sitestats/impl/event/EntityBrokerEventRegistry.java

      271                         EventLocaleKey o = (EventLocaleKey) obj;
      272                         if(o.getEventId().equals(getEventId())
      273                                         && o.getLocale().equals(o.getLocale())) {
      274                                 return true;
      

      In Line 273, o.getLocale().equals(o.getLocale())) should be o.getLocale().equals(getLocale()))? This might be trivial, bug wanted to report just in case. Thanks!

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    Unassigned
                    Reporter:
                    lifove lifove (Inactive)
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    1 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration