Changeset 4125


Ignore:
Timestamp:
Feb 4, 2008, 8:29:03 PM (15 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #918: Adding multiple new DataFileTypes? to a platform or variant only saves the first one added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/data/FileTypeIndex.java

    r4084 r4125  
    9191    FileTypeIndex other = (FileTypeIndex) o;
    9292    // Same file type
    93     if (this.fileType.getId() != other.fileType.getId()) return false;
    94     // Same or no variant
    95     if (this.variant == null && other.variant == null) return true;
    96     if (this.variant != null && this.variant.equals(other.variant)) return true;
     93    if (this.fileType.equals(other.fileType))
     94    {
     95      // Same or no variant
     96      if ((this.variant == other.variant) ||
     97        (this.variant != null && this.variant.equals(other.variant))) return true;
     98    }
    9799    return false;
    98100  }
Note: See TracChangeset for help on using the changeset viewer.