Ignore:
Timestamp:
2005-04-06T10:12:43+12:00 (19 years ago)
Author:
kjdon
Message:

changed the equals method to look at codes rather than using compareTo which looks at names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/Language.java

    r8243 r9561  
    7676     */
    7777    public boolean equals(Object object) {
    78     return (compareTo(object) == 0);
     78    //return (compareTo(object) == 0);
     79    // two langs are equal if their codes are equal
     80    if (object instanceof Language) {
     81        return getCode().equals(((Language)object).getCode());
     82    }
     83    return false;
    7984    }
    8085
Note: See TracChangeset for help on using the changeset viewer.