Changeset 6304


Ignore:
Timestamp:
05/13/10 12:28:55 (10 years ago)
Author:
curtis
Message:

Minor tweaks.

Location:
trunk/components/bio-formats/src/loci/formats
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/FormatReader.java

    r6301 r6304  
    136136   * Most subclasses should override this method to perform 
    137137   * initialization operations such as parsing metadata. 
     138   * 
     139   * @throws FormatException if a parsing error occurs processing the file. 
     140   * @throws IOException if an I/O error occurs processing the file 
    138141   */ 
    139142  protected void initFile(String id) throws FormatException, IOException { 
     
    163166  protected boolean isUsedFile(String file) { 
    164167    String[] usedFiles = getUsedFiles(); 
    165     for (int i=0; i<usedFiles.length; i++) { 
    166       if (usedFiles[i].equals(file) || 
    167         usedFiles[i].equals(new Location(file).getAbsolutePath())) 
    168       { 
    169         return true; 
    170       } 
     168    for (String used : usedFiles) { 
     169      if (used.equals(file)) return true; 
     170      String path = new Location(file).getAbsolutePath(); 
     171      if (used.equals(path)) return true; 
    171172    } 
    172173    return false; 
  • trunk/components/bio-formats/src/loci/formats/tools/ImageInfo.java

    r6289 r6304  
    478478        sb.append(", 8-bit LUT: "); 
    479479        sb.append(table8.length); 
    480         sb.append("x "); 
     480        sb.append(" x "); 
    481481        sb.append(table8[0] == null ? "null" : "" + table8[0].length); 
    482482      } 
     
    484484        sb.append(", 16-bit LUT: "); 
    485485        sb.append(table16.length); 
    486         sb.append("x "); 
     486        sb.append(" x "); 
    487487        sb.append(table16[0] == null ? "null" : "" + table16[0].length); 
    488488      } 
Note: See TracChangeset for help on using the changeset viewer.