gatk-3.8/public/java/test/org/broadinstitute/sting/gatk/refdata
Khalid Shakir e57cd78bba Killed two more resource leakers that ignored requests to close wrapped file pointers, and added Unit Tests for each.
This bug will happen in all adapter/wrapper classes that are passed a resource, and then in their close method they ignore requests to close the wrapped resource, causing a leak when the adapter is the only one left with a reference to the resource.

Ex:

public Wrapper getNewWrapper(File path) {
  FileStream myStream = new FileStream(path); // This stream must be eventually closed.
  return new Wrapper(myStream);
}

public void close(Wrapper wrapper) {
  wrapper.close(); // If wrapper.close() does nothing, NO ONE else has a reference to close myStream.
}
2012-05-21 15:41:56 -04:00
..
tracks Fix for dynamic type determination for bgzip files 2011-09-21 15:39:19 -04:00
utils Killed two more resource leakers that ignored requests to close wrapped file pointers, and added Unit Tests for each. 2012-05-21 15:41:56 -04:00
ReadMetaDataTrackerUnitTest.java Reorganized the codebase beneath top-level public and private directories, 2011-06-28 06:55:19 -04:00
RefMetaDataTrackerUnitTest.java Merge with master 2011-11-19 09:56:06 -05:00