Changeset 3396


Ignore:
Timestamp:
11/21/07 13:24:38 (12 years ago)
Author:
curtis
Message:

Use isInstance rather than equals for class matching test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/FormatTools.java

    r3395 r3396  
    475475    if (underlying != null) { 
    476476      for (int i=0; i<underlying.length; i++) { 
    477         if (underlying[i].getClass().equals(c)) return underlying[i]; 
     477        if (underlying[i].getClass().isInstance(c)) return underlying[i]; 
    478478      } 
    479479      for (int i=0; i<underlying.length; i++) { 
Note: See TracChangeset for help on using the changeset viewer.