Changeset 2761


Ignore:
Timestamp:
05/08/07 12:36:31 (13 years ago)
Author:
curtis
Message:

Rename and clarify purpose of readerClasses and writerClasses static fields.

Location:
trunk/loci/formats
Files:
2 edited

Legend:

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

    r2760 r2761  
    4040  // -- Static fields -- 
    4141 
    42   /** List of reader classes. */ 
    43   private static ClassList readerClasses; 
     42  /** Default list of reader classes, for use with noargs constructor. */ 
     43  private static ClassList defaultClasses; 
    4444 
    4545  // -- Static helper methods -- 
    4646 
    4747  private static ClassList getDefaultReaderClasses() { 
    48     if (readerClasses == null) { 
     48    if (defaultClasses == null) { 
    4949      // load built-in reader classes from readers.txt file 
    5050      try { 
    51         readerClasses = new ClassList("readers.txt", IFormatReader.class); 
     51        defaultClasses = new ClassList("readers.txt", IFormatReader.class); 
    5252      } 
    5353      catch (IOException exc) { 
    5454        exc.printStackTrace(); 
    55         readerClasses = new ClassList(IFormatReader.class); 
     55        defaultClasses = new ClassList(IFormatReader.class); 
    5656      } 
    5757    } 
    58     return readerClasses; 
     58    return defaultClasses; 
    5959  } 
    6060 
  • trunk/loci/formats/ImageWriter.java

    r2754 r2761  
    4141  // -- Static fields -- 
    4242 
    43   /** List of writer classes. */ 
    44   private static ClassList writerClasses; 
     43  /** Default list of writer classes, for use with noargs constructor. */ 
     44  private static ClassList defaultClasses; 
    4545 
    4646  // -- Static helper methods -- 
    4747 
    4848  private static ClassList getDefaultWriterClasses() { 
    49     if (writerClasses == null) { 
     49    if (defaultClasses == null) { 
    5050      // load built-in writer classes from writers.txt file 
    5151      try { 
    52         writerClasses = new ClassList("writers.txt", IFormatWriter.class); 
     52        defaultClasses = new ClassList("writers.txt", IFormatWriter.class); 
    5353      } 
    5454      catch (IOException exc) { 
    5555        exc.printStackTrace(); 
    56         writerClasses = new ClassList(IFormatWriter.class); 
    57       } 
    58     } 
    59     return writerClasses; 
     56        defaultClasses = new ClassList(IFormatWriter.class); 
     57      } 
     58    } 
     59    return defaultClasses; 
    6060  } 
    6161 
Note: See TracChangeset for help on using the changeset viewer.