Ticket #94 (closed task: fixed)

Opened 13 years ago

Last modified 13 years ago

Eliminate IFormatHandler's ubiquitous "String id" parameter

Reported by: curtis Owned by: melissa
Priority: critical Milestone:
Component: bio-formats Severity:
Keywords: Cc:
Blocked By: Blocking:

Description

Currently, an id parameter must be passed to nearly every method within Bio-Formats. We already save the current ID in an internal currentId variable; it would be better to eliminate the id parameter from all the methods and instead have a setId(String) method for changing it. Calling setId would basically call initFile with that id, so it would be more intuitive to control when initialization occurs.

We need to decide whether to deprecate all the old signatures, or merely remove them. I am leaning toward deprecation for a limited time, with eventual removal after a number of months.

Change History

comment:1 Changed 13 years ago by melissa

  • Status changed from new to closed
  • Resolution set to fixed

Done in r2583. Old signatures have been deprecated for the time being; we should decide when to remove them.

Note: See TracTickets for help on using tickets.